| Project: | ProjectPier |
| Version: | 0.8.8-stable |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | phpfreak |
| Status: | open - needs more info |
Jump to:
Description
When using SMTP to send emails, the from field setting is set to the SMTP username and does not match the value provided in the 'email from' setting.
Yes, this happens when you need to authenticate against the SMTP server. You cannot use a from address that is not known on the SMTP server.
See application/models/notifier/Notifier.class.php near line 570
// from must be address known on server when authentication is selected$smtp_authenticate = config_option('smtp_authenticate', false);
if ($smtp_authenticate) $from = config_option('smtp_username');
Thanks for this.
I think this should not be mandatory, perhaps as an option? Service providers that enforce it do not reject the email and dynamically update the header and from field within the transport itself. E.g.: GMail
Best,
Emrah
Interesting. I was not aware of this automatic header update. I will make it an option.