As e-mails sent from my website usually go into Junk, I wanted to edit php.ini file to fix it, but it is not allowed by my hosting provider. They offered their own solution for this:
The solution we can offer you is to use SMTP for your mailservice.
You can do that by setting any script you are using to SMTP service
with the below details:Incoming mailserver: mail.website.com
Outgoing mailserver: mail.website.com
Username: email account set with your domain
Password: your email account password.
I do have couple of .php scripts that send e-mails, but I don’t know how to edit SMTP details in them. So how would I do that?
Thank You ))
You should try to use PHPMailer for sending the mails. You will get it here at:
http://phpmailer.worxware.com/
Advanced setup configuration for SMTP can be configured from the script itself if you are using PHPMailer. Detailed guide can be found here:
http://www.web-development-blog.com/archives/send-e-mail-messages-via-smtp-with-phpmailer-and-gmail/