I've installed wordpress on my box and its having trouble sending email.
Email works fine using the webmail (sending and receiving), though I can't manage to set up sending from Thunderbird going through Bubba.
And now wordpress isnt sending, so I'm thinking the two problems are related. (Though wordpress WILL send to mail addresses in the dyndns domain name I set up - so it sends mail to itself, just not to anyone else).
Any pointers would be really appreciated.
Thanks,
Sam.
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !
Problem with php sendmail?
I've figured out that send_mail will only work when I specify the default from address in the optional parameters - even when a from address is specified in the headers.
eg,
mb_send_mail ( "xyz@xyz.com" , "test mail" , "test from simple php script" , "From: yyy@yyy.com", "-f yyy@yyy.com" );
If I leave off the last parameter, the mail doesnt send.
... now to figure out how to add this to the sendmail config
eg,
mb_send_mail ( "xyz@xyz.com" , "test mail" , "test from simple php script" , "From: yyy@yyy.com", "-f yyy@yyy.com" );
If I leave off the last parameter, the mail doesnt send.
... now to figure out how to add this to the sendmail config
I finally found the problem.
I needed to fill in the sender address as follows in the wp-includes\class-phpmailer.php file:
var $Sender = 'wordpress@xyz.com';
It seems that wordpress fills in the sender address automatically when using 'sendmail' and 'smtp', but not for the 'mail' function.
Hope this helps other people.
- Sam.
I needed to fill in the sender address as follows in the wp-includes\class-phpmailer.php file:
var $Sender = 'wordpress@xyz.com';
It seems that wordpress fills in the sender address automatically when using 'sendmail' and 'smtp', but not for the 'mail' function.
Hope this helps other people.
- Sam.