mikhl Posted August 8, 2011 Share Posted August 8, 2011 I am trying to set up the mail function in php.ini so that I can use mail() in my web pages on my local machine. I have changed the mail function from [mail function] ; For Win32 only. ; http://php.net/smtp SMTP = localhost ; http://php.net/smtp-port smtp_port = 25 to [mail function] ; For Win32 only. ; http://php.net/smtp SMTP = smtp.talktalk.net ; http://php.net/smtp-port smtp_port = 25 I have also tried [mail function] ; For Win32 only. ; http://php.net/smtp SMTP = smtp.aol.com ; http://php.net/smtp-port smtp_port = 587 I have tried two different mail servers as I am with AOL, but I think I may have been transferred to the TalkTalk server. At least this is what it looks like when I search my IP address with whois. The main problem, I think, is that when I change the information in php.ini it doesn't change when I look in the phpinfo(). I get no error message when i use the mail() function. however the email does not seem to have been sent. Any help or light shed on this would be greatly appreciated. Some more details: PHP Version 5.3.5 Loaded Configuration File C:\xampp\php\php.ini any more info needed - just ask Quote Link to comment https://forums.phpfreaks.com/topic/244256-phpini-mail-function/ Share on other sites More sharing options...
trq Posted August 8, 2011 Share Posted August 8, 2011 Most isp mail servers require authentication which php's mail function doesn't support. You will either need to install a local mail server, or use a third party mail library like PHPMailer. Quote Link to comment https://forums.phpfreaks.com/topic/244256-phpini-mail-function/#findComment-1254581 Share on other sites More sharing options...
mikhl Posted August 9, 2011 Author Share Posted August 9, 2011 Thanks thorpe, I will look at using phpMailer later today. I will post results. Quote Link to comment https://forums.phpfreaks.com/topic/244256-phpini-mail-function/#findComment-1254781 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.