Login     Sign up
sending through SMTP
Pierre (@planetefrancaise)
Join date: Jan 2nd 2011
Community posts: 32
View Profile
Send Message

To:Falcone
Falcone I think you wrote that, on an other forum, for an other website.Will doing that on my server make the emails on jcow script go through SMTP server or do I need to install the smtp mod? Since I have more than one site on my server, will that change mess up my other site emails?
Once you set up your e-mail account(s) in cPanel, set up PHP Config (cPanel > Software/Services) to use PHP5 (Single php.ini) > Save changes. Generate a default php.ini file within ~/public_html ("Install php.ini master file"), rename it if necessary to php.ini and find the sendmail_path line. Modify it to look something like this:
Code:

sendmail_path = "/usr/sbin/sendmail -t -i [email protected]"

Note that [email protected] is the e-mail address that you created in cPanel (modify to suit your scenario). There is no space between the -f flag and the e-mail address. Save the modified php.ini file and try sending mail through the website.
Thanks

162 months ago