I asked the question below and after trying several ways to send email through localhost I got it with PHPMailer:
How to send localhost email using the PHP mail function?
However, I did it through the example for Gmail that is inside the PHPMailer's 'examples' folder.
I would like to know the following, if I build a small website using PHPMailer when I go to host I will have to upload the PHPMailer classes is not it?
I know this is a fairly obvious question, but my concern is whether I can take advantage of the Gmail configured code.
Just change the server and tals?
//Set the hostname of the mail server
$mail->Host = 'smtp.gmail.com';
//Set the SMTP port number - 587 for authenticated TLS, a.k.a.
RFC4409 SMTP submission $mail->Port = 587;
On these lines will I put the server where I will host my site?