planetred Posted November 27, 2008 Share Posted November 27, 2008 Hi I'd like to be able to send myself email when testing a user registration form via apache at localhost - ie on my local machine, not a live webserver. Can anyone let me know what i need to adjust in php.ini - assuming that's where i do it - to send myself mail at localhost. Thanks in advance Link to comment https://forums.phpfreaks.com/topic/134490-activating-apache-localhost-email-capability/ Share on other sites More sharing options...
JonnoTheDev Posted November 27, 2008 Share Posted November 27, 2008 Set the smtp server address in your php.ini i.e. SMTP = mail.yourisp.com smtp_port = 25 However you cannot use SMTP authentication through the ini file so mail() will not work if required Use a mail library such as PEAR::Mail or Swiftmailer where you can set your SMTP settings http://swiftmailer.org/ Link to comment https://forums.phpfreaks.com/topic/134490-activating-apache-localhost-email-capability/#findComment-700292 Share on other sites More sharing options...
trq Posted November 27, 2008 Share Posted November 27, 2008 Apache is a webserver not a mail server. As neil.johnson suggested you can usually use the mail server supplied to you via your isp. failing that, you can always install one. Link to comment https://forums.phpfreaks.com/topic/134490-activating-apache-localhost-email-capability/#findComment-700316 Share on other sites More sharing options...
planetred Posted November 27, 2008 Author Share Posted November 27, 2008 Thanks for the info - I'll get working on that. Neil - is this the php.ini in the PHP directory, or in the Apache directory? Link to comment https://forums.phpfreaks.com/topic/134490-activating-apache-localhost-email-capability/#findComment-700325 Share on other sites More sharing options...
JonnoTheDev Posted November 27, 2008 Share Posted November 27, 2008 Display php settings using phpinfo() <?php print phpinfo(); ?> Save a file and run in your browser. It will tell you the path to the ini file. In linux its usually in /etc/php.ini but not always. Unsure on windows. Any changes made requires a restart of the webserver service httpd restart Link to comment https://forums.phpfreaks.com/topic/134490-activating-apache-localhost-email-capability/#findComment-700338 Share on other sites More sharing options...
planetred Posted November 27, 2008 Author Share Posted November 27, 2008 Loaded Configuration File E:\Work\XamppServer\xampp\apache\bin\php.ini Seems that it's the \apache\ version Thanks Link to comment https://forums.phpfreaks.com/topic/134490-activating-apache-localhost-email-capability/#findComment-700385 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.