Hello I am trying to get a website up and running. It is currently hosted on AWS, so I do not have my own smtp server running at this moment. So after reading a few articles, I have understood that we could used gmail as a smtp server.
I wanted to double check if what I read was right, I am going to use smart job board software, can I plug in the values provided by gmail and use that as an smtp server??
You can user PHPMailer class for this job. And you can easily configure the smtp.
An example of configuration
Authentication is required I believe, but I don't see why not. I won't do the research for you, but there are a couple things to look into:
I successfully use the GMail SMTP server.
We do have a corporate GMail account, though I don't think that matters. A personal GMail account should suffice.
I do not have a PHP sample however the following configuration for ASP.Net should provide adequate guidance:
If someone has a suitable PHP sample, feel free to edit my answer or post your own.
Yes, Google allows connections through their SMTP and allows you to send emails from your GMail account.
There are a lot of PHP mail scripts that you can use. Some of the most popular SMTP senders are: PHPMailer (with an useful tutorial) and SWIFTMailer (and their tutorial).
The data you need to connect and send emails from their servers are your GMail account, your
password
, theirSMTP server
(in this casesmtp.gmail.com
) and port (in this case465
) also you have to make sure that emails are being sent over SSL.A quick example of sending an email like that with PHPMailer: