Project:
UbercartCategory:
bug reportVersion:
Ubercart 1.0 RCPriority:
normalAssigned:
UnassignedStatus:
fixedI 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


Re: uc_store_email_from adresse format
Nice catch - I know a few people have mentioned a similar problem, but that sort of thing is really hard to diagnose because, as you said, the messages are rejected only by "some servers". (Not mine apparently - I was unable to reproduce this!).
Bumping this so Ryan sees it...
Wonderful. I'm glad I
Wonderful.
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.
Re: Wonderful. I'm glad I
Ok, I committed a fix. I actually just commented out the code instead of removing it, as it would be great to revisit this in the future to figure out how to make it work for all servers (or at least give the option for folks to use it if possible).