Connecting Tech Pros Worldwide Forums | Help | Site Map

PHPMailer: HT avoid error msges going back to wwwrun?

Daniel Loose
Guest
 
Posts: n/a
#1: Jul 17 '05
Hi,

a friend was so kind to host my php scripts. but when they use
phpmailer (or other PHP mail facilities) to email e.g. to an invalid
address, the
returning error message appears in *my friend's email inbox*
(recipient - or sender? - is "wwwrun" of my friend's machine). I
guess you understand which problem I mean. To fix the problem, I would
like to understand what is going on here - in the mail header, i did
set replyto, x-sender and from to *my* email address, but it doesnt
help. so where must I change what to free my kind friend from this
"spam"?

Someone was so kind to post a solution for mail() recently. But now I
have to use PHPMailer, but in its docu I couldn't find how to solve
the problem...

Thank you!

Daniel

Manuel Lemos
Guest
 
Posts: n/a
#2: Jul 17 '05

re: PHPMailer: HT avoid error msges going back to wwwrun?


Hello,

on 07/09/2005 11:58 AM Daniel Loose said the following:[color=blue]
> a friend was so kind to host my php scripts. but when they use
> phpmailer (or other PHP mail facilities) to email e.g. to an invalid
> address, the
> returning error message appears in *my friend's email inbox*
> (recipient - or sender? - is "wwwrun" of my friend's machine). I
> guess you understand which problem I mean. To fix the problem, I would
> like to understand what is going on here - in the mail header, i did
> set replyto, x-sender and from to *my* email address, but it doesnt
> help. so where must I change what to free my kind friend from this
> "spam"?
>
> Someone was so kind to post a solution for mail() recently. But now I
> have to use PHPMailer, but in its docu I couldn't find how to solve
> the problem...[/color]

You need to set the return path address. I don't know how you can do it
with PHPMailer, but if you use the MIMEMessage class you can do it
simply by setting the Return-Path: header. That classes comes with many
examples and documentation to show that:

http://www.phpclasses.org/mimemessage


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
Closed Thread