[PHP] sendmail return-path (not 4 newbies)

2002-05-03 Thread Anthony Rodriguez

PROBLEM

When a php script uses mail() and sendmail, if the e-mail address is not 
right, the e-mail is returned to the envelope sender (the hosting 
provider), NOT to the From, Reply-To,  Return-Path, or any other 
additional headers included in mail().

Apparently, this problem is faced by any user who utilizes a hosting provider.

SOLUTION

I've found 2 php classes (developed by Manuel Lemo) that address this problem.

The first, email_message.php was built to send MIME-encoded messages.

The second, sendmail_message extends the first by addressing the 
return-path problem.

Unfortunately, the first parses the message to allow sending MIME-encoded 
messages.  For many who are only sending plain text messages, this is 
unnecessary processing.

HELP NEEDED

I would like to consolidate these 2 classes and eliminate the 
parsing.  Unfortunately, I'm a newbie and need help from the pros.

If anyone is interested in participating in this project, please e-mail me 
directly at [EMAIL PROTECTED]

After completion this new class would be submitted to www.phpclasses.org 
for everyone to use.

Thanks!

Anthony F. Rodriguez
([EMAIL PROTECTED])


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] sendmail return-path (not 4 newbies)

2002-05-03 Thread Stuart Dallas

On 3 May 2002 at 12:48, Anthony Rodriguez wrote:
 PROBLEM
 
 When a php script uses mail() and sendmail, if the e-mail address is
 not right, the e-mail is returned to the envelope sender (the hosting
 provider), NOT to the From, Reply-To,  Return-Path, or any other
 additional headers included in mail().
 
 Apparently, this problem is faced by any user who utilizes a hosting
 provider.

The envelope address can be set on a per script basis by setting the sendmail_from 
value 
using ini_set(). Alternatively, if you are using Apache, you can set it in a .htaccess 
file.

-- 
Stuart

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php