So this is just a quick note about sending mail once you've deployed the application to the live server,
unless you have mail hogge installed on that server, mail is not going to go anywhere.
And that's because here in the send mail go file, which is in the command web folder, under this function,
send message, we've hardcoded, coded our server, host our server port, all those things.
And if you actually want to send live mail, you're going to have to change those values.
Now you can if you wish, and it's appropriate for your circumstances, actually hard, cold, that
hard coded information right.
In this function, it's probably a better idea just to add a couple of command line parameters and you're
probably going to need the mail host the mail port, whether or not it uses SSL, that sort of thing,
all the things necessary to send email using whatever your email server is.
Now, I'm not going to do that just because well, I don't have any idea what your mail server, your
outgoing mail server might be.
I tend to use mail gun, dot com or just because it's a really good service and it's very, very inexpensive.
I can send 10000 messages a month for less than five dollars.
But whatever your settings might be, you can either hardcoded them in here or I think a better approach
would be to just add some command line flags to your application and pick up that information at the
point that you start your application.
That's entirely up to you.