send emails in php
Posted by: Ares (---.static.as13285.net)
Date: June 30, 2022 07:30PM

I am using the "mail()" function in php to send emails from a webpage running in WAMP on my laptop. This used to work but I now get a failure message "local host failed to connect to mailserver at outmail.f2s.com. Should now be mail.overssl.net". My email used to be handled by outmail.f2s.com port 25 but is now mail.overssl.net. The error suggest setting the correct parameters in php.ini or using ini_set. Anyone know how to do this.

Options: ReplyQuote
Re: send emails in php
Posted by: Ares (---.static.as13285.net)
Date: July 02, 2022 12:48PM

I have now learned to set php parameters using:
ini_set('SMTP','mail.overssl.net');
ini_set('smtp_port', '999'; (using mu correct output port number)
ini_set('sendmail_from','myemail@domain.com'); (using my correct email)

But now the webpage in WAMP loops (at least 20 mins) waiting response from localhost
I'm running WAMP on Outlook though this is now obsolete.

Any ideas how to get mail() running on WAMP on a local laptop?

Options: ReplyQuote
Re: send emails in php
Posted by: maximus23 (---.dynamic.voo.be)
Date: July 02, 2022 02:47PM

Hi,

It is very easy to use the SMTP mode with sendmail.

Please consult this link: [websitetutorials.grafix.gr]


smiling smiley

Options: ReplyQuote
Re: send emails in php
Posted by: Ares (---.static.as13285.net)
Date: July 08, 2022 04:04PM

Thanks. Will do.

Options: ReplyQuote


Sorry, only registered users may post in this forum.