Author
|
Message
|
Øivind Gulbrandsen
|
Sunday 20 March 2005 2:40:32 pm
If I send an email to f.ex. a nonexistent adresss from my ordinary email client I always get a message back that the email did not come through. When sending emails from ez-publish (I use the mailinglist extension) I get no such messages when the email-sending does not succeed. That is a big problem because I can not be sure that my emails has been received... Any solutions? (I use the Sendmail option, SMTP does not work).
Best regards, Øivind G.
|
Łukasz Serwatka
|
Wednesday 23 March 2005 1:20:28 am
Hi Øivind, Check in e-mail source if header Return-Path is correct. This header is uses to notify sender about errors with delivering.
Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog
|
Øivind Gulbrandsen
|
Friday 25 March 2005 1:41:29 am
Thanks for answer. I have checked the Return-path - and that is the one which is wrong (is set to a standard path from the service provider). (Have now got the SMTP to work - so I have tested both SMTP and sendmail). How can I set the Return-path to webmasters email address??? (Seems not affected by the AdminEmail or EmailSender settings in site.ini). I am using release 3.4.2 Øivind
|
Øivind Gulbrandsen
|
Sunday 03 April 2005 1:19:58 pm
Nobody with experience or an idea on how to set the return-path???
|
Łukasz Serwatka
|
Sunday 03 April 2005 10:14:00 pm
Hi Øivind, You will have to manualy add this header in mailinglist code. This extension probadly uses lib/ezutils/classes/ezsmtp.php In this file you find "Function which handles sending the mail. " with one of paramteres is "headers - Indexed array of headers, one header per array entry " I hope it will help.
Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog
|
Øivind Gulbrandsen
|
Monday 04 April 2005 2:03:10 am
Thanks. I have looked at some of the programs - even if I am not a PHP programmer... For me it seems that it is the ezMail program that is used. The "setReceiver" function etc is called from the mailinglist program. In ezMail it is a function called setExtraHeaders, which I would presume is for the return-path etc. So I tried to modify the mailinglist program:
$mail = new eZMail();
$mail->setReceiver($email);
$mail->setSender($params['from']);
$mail->setSubject($subject);
$mail->setBody($result);
$mail->setExtraHeaders(array('Return-path','[email protected]')); (this line is new...)
$mailResult = eZMailTransport::send($mail);
The program works - but I still do not get a new return-path in my email. Any suggestions?
|
Łukasz Serwatka
|
Monday 04 April 2005 2:16:56 am
Hi, Try with
$mail->setExtraHeader('Return-path','[email protected]');
Which mailserver do you uses?
Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog
|
Øivind Gulbrandsen
|
Monday 04 April 2005 2:54:45 am
Same result... My mailserver is mail.hornet.no. Sendmail and SMTP is both working.
|