Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.0.0

Request #18573 MAIL FROM and From: can't be different?
Submitted: 2011-05-31 06:29 UTC
From: danielh Assigned:
Status: Open Package: Mail (version 1.2.0)
PHP Version: 5.3.6 OS: windows 8
Roadmaps: (Not assigned)    
Subscription  


 [2011-05-31 06:29 UTC] danielh (Daniel Hellerstein)
Description: ------------ I am using PEAR with PHP to send email. I send it through my ISP's SMTP gateway. My ISP's SMTP gateway will only process outgoing email when the MAIL FROM message lists my email address (on this ISP). IOW: if I specify an address, in the From: header, other than the one supported by my ISP I get (using debug): DEBUG: Send: MAIL FROM:<altname@myaddress.com> DEBUG: Recv: 250 2.1.0 Ok DEBUG: Send: RCPT TO:<toyou@somewhere.net> DEBUG: Recv: 554 5.7.1 <altname@myaddress.com>: Sender address rejected: Access denied DEBUG: Send: RSET The issue is that I would like to list a From: header that is different from this email address (that is NOT the same as the email address supported by my ISP). Usin a script, I have successfully done this: by specifying a MAIL FROM message to the SMTP server, and then by specifying the alternative email address in the From: header: the MAIL FROM is used by my ISP to authenticate, while the From: header is displayed in the recipients "from" field. Unfortunately, pear email doesn't seem to permit this -- it uses the From: header to specify the MAIL FROM message. And there doesn't seem to be any way to override this default behavior. I tried Reply-To, but that yields the access denied message (that is, it changes both the From: header and the MAIL FROM message. Is this a "feature" of PEAR email? Thanks. Test script: --------------- I can gin something up if need be.

Comments

 [2017-04-11 17:17 UTC] ashnazg (Chuck Burgess)
-Type: Bug +Type: Feature/Change Request