Jump to content

setting up php.ini for mail


alocay

Recommended Posts

I was trying to do a simple form that would e-mail me any message typed into one of the text areas. Although, it doesn't seem to be sending me the e-mail. I changed my php.ini file in the fields:

      [mail function]

      SMTP = ...

 

      sendmail_from = ...

 

for SMTP I wasn't sure if I should use smtp.google.com since I use gmail or if it would be mail.bellsouth.net since my ISP is Bellsouth. I tried both with my gmail address in sendmail_from but either way it doesn't send me any e-mail. I don't see what I am doing wrong. Thanks for any help.

 

Note: I am using localhost as my apache server, my firewall is not a problem, and I am using PHP 5.2.10

Link to comment
https://forums.phpfreaks.com/topic/163487-setting-up-phpini-for-mail/
Share on other sites

Gmail requires that you use SMTP Authentication and your ISP's mail server probably does too. Since the php mail() function does not support SMTP Authentication, setting those php settings won't do you any good since they are only used by the mail() function.

 

To use SMTP Authentication (i.e. make php look like a properly configured email client), you will need to use one of the php mailer classes. See the links in this post for the two most common php mailer classes - http://www.phpfreaks.com/forums/index.php/topic,257729.msg1212988.html#msg1212988

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.