WAMP WIN10 Localhost not sending emails

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
edkocol
Posts: 3
Joined: 24 Sep 2016, 19:07

WAMP WIN10 Localhost not sending emails

Post 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?
edkocol
Posts: 3
Joined: 24 Sep 2016, 19:07

Re: WAMP WIN10 Localhost not sending emails

Post by edkocol »

Essentially none of the methods will send an email in WAMP under WIN10 64bit.

Does anyone have a solution to this problem?
edkocol
Posts: 3
Joined: 24 Sep 2016, 19:07

Re: WAMP WIN10 Localhost not sending emails

Post 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.
oalves
Posts: 1
Joined: 20 Oct 2016, 15:43

Re: WAMP WIN10 Localhost not sending emails

Post 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';
Post Reply