Page 1 of 1

WAMP WIN10 Localhost not sending emails

Posted: 24 Sep 2016, 19:18
by edkocol
Mantis Ver 1.3.1
Win 10 Pro 64bit
WAMP 64bit
PHP 5.5.12
Apache 2.4.9

I have tried all three:

$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtpout.secureserver.net';
$g_smtp_port = 25;
$g_smtp_username = 'me@mydomain.com';
$g_smtp_password = '********';

(using either those settings or my gmail account settings with not set to "smtp.gmail.com")

or

$g_phpMailer_method = PHPMAILER_METHOD_MAIL;

These both yield the message PDT MAIL email_api.php:1208 email_send() ERROR: Message could not be sent - Could not instantiate mail function.

$g_phpMailer_method = PHPMAILER_METHOD_SENDMAIL; and installing sendmail in my wamp directory I get a message saying can't execute /??/??/sendmail (I've lost the exact wording).


Has anyone on Win10 using localhost ever gotten emails to send? If so, how?

Re: WAMP WIN10 Localhost not sending emails

Posted: 25 Sep 2016, 17:29
by edkocol
Essentially none of the methods will send an email in WAMP under WIN10 64bit.

Does anyone have a solution to this problem?

Re: WAMP WIN10 Localhost not sending emails

Posted: 26 Sep 2016, 18:28
by edkocol
Well, with enough googling I have found the solution.

It appears that modifying the mantis config file (for SMTP) was not enough.

It required that I set the SMTP host, port and from email in php.ini (and reboot WAMP of course).

Hope this helps anyone else.

Re: WAMP WIN10 Localhost not sending emails

Posted: 20 Oct 2016, 16:52
by oalves
Try to set these parameters and check the smtp port, looks like smtp to secureserver is 80

$g_phpMailer_method = 2; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_connection_mode = 'tls';