WAMP 2,5 on Windows 8.1 - can't send mails
Posted by: joern@kalendersystem.dk (46.32.47.---)
Date: July 31, 2014 12:00PM

I can't send emails with mail().

In php.ini I set these emails parameters:

SMTP = mail.bbsyd.dk
smtp_port = 25
sendmail_from = joern@kalendersystem.dk

My Outlook works with these parameters.

I tried this simple code:

mail("joernjohansen@gmail.com","test subject","test body"winking smiley;

but nothing happens.

When I tried a code with the class PhpMailers, and I set the these parameters in my php-code:

$mail->IsSMTP();
$mail->Host = 'mail.bbsyd.dk';

it works.

Some solutions?

Thank's.

Options: ReplyQuote
Re: WAMP 2,5 on Windows 8.1 - can't send mails
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: July 31, 2014 12:25PM

Then use phpMailer.

I would imagin that mail.bbsyd.dk requires authentication and that is not possible using mail() and the parameters that are available in the php.ini file.


Like I say, either install a mail server or use phpMailer.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: WAMP 2,5 on Windows 8.1 - can't send mails
Posted by: joern@kalendersystem.dk (46.32.47.---)
Date: July 31, 2014 12:41PM

Thank's for your answer.

"mail.bbsyd.dk" doesn't require authentication because my internetconnection is with "bbsyd.dk" as provider.

It worked with an earlier Wamp-version.

Options: ReplyQuote
Re: WAMP 2,5 on Windows 8.1 - can't send mails
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: July 31, 2014 01:16PM

Oh, well in that case I would check that nothing has changed at "mail.bbsyd.dk". Possibly check the port number is correct.

What was the actual error you were getting?

Remember you can set this parameter in php.ini which may help with identifying the error

; The path to a log file that will log all mail() calls. Log entries include
; the full path of the script, line number, To address and headers.
mail.log = "c:/wamp/logs/mail.log"

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: WAMP 2,5 on Windows 8.1 - can't send mails
Posted by: joern@kalendersystem.dk (46.32.47.---)
Date: July 31, 2014 01:39PM

Thanks for your suggestions.

I can read this from the log-file:

[31-Jul-2014 13:28:48 Europe/Paris] mail() on [D:\wamp\www\jomsborg\mailtest.php:3]: To: joernjohansen@gmail.com -- Headers:


In Outlook I don't use authentication with outgoing post - only incomming post. The outgoing Port-no is 25.
I have just tried sending emails from Outlook, and it works.

Options: ReplyQuote
Re: WAMP 2,5 on Windows 8.1 - can't send mails
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: July 31, 2014 03:27PM

Well that does not seem very helpful other than to say as far as php is concerned the mail was sent, of course that does not mean the receiving server did not reject it or ignore it because it does not like something about the connection


You could try changing mail.add_x_header = On to Off

But after that I have no idea what the problem might be.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-



Edited 2 time(s). Last edit at 08/01/2014 03:14PM by RiggsFolly.

Options: ReplyQuote
Re: WAMP 2,5 on Windows 8.1 - can't send mails
Posted by: joern@kalendersystem.dk (46.32.47.---)
Date: August 01, 2014 02:21PM

Thanks for your advice. I just use PhpMailer.

Options: ReplyQuote


Sorry, only registered users may post in this forum.