| Project: | Ubercart Contributions |
| Component: | Code |
| Category: | |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
I had problems with not receiving notifications from UC.
It appears this is a problem with address returned by uc_store_email_from().
uc_store_email_from returns an address in the format :
Shop name<email@shop.com>Thus, the mail is transmitted by PHP to mail server with
MAIL FROM:<Shop name<email@shop.com>This format is not compliant with RFC 2821 and messages are rejected by some servers.
I suggest to modify uc_store_email_from to only return a raw email address :
$email_from = variable_get('uc_store_email', '');
if (empty($email_from)) {
$email_from = variable_get('site_mail', ini_get('sendmail_from'));
}
return $email_from;
Frederic




I'm glad I don't have to beat my head on the desk coming up with a solution. Thanks a lot for posting this up... will try to get it in on Monday.