8 replies [Last post]
RobLav's picture
Offline
Joined: 02/19/2008
Juice: 7
Was this information Helpful?

I'm having a similar problem to the person in this post
http://www.ubercart.org/forum/support/939/notification_emails_sender

But I can't figure out what to do. For an Admin email about a sale the email from field is unknown and Order email to the customer has the same problem.

Does anyone have an suggestions?

Thanks,

Rob

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Notification email from Unknown

Have you configured your store settings to have a store name and e-mail address?

RobLav's picture
Offline
Joined: 02/19/2008
Juice: 7
Re: Re: Notification email from Unknown

Yes, I've gone through the settings several times. It's working for some notification emails just not the ones that I specified above, that's why I'm a little confused.

doomed@drupal.org's picture
Offline
Bug Finder
Joined: 04/05/2008
Juice: 334
Whats the status on this

I'm having a similar problem:

Notification emails sent to both clients and admin come with a "from address field" like this: =?UTF-8?B?R3zzcG8ZZ0VBIC0gZZtYXrDqW0gZZluZm8yZZlYS5jby5zzj4=?=@my.webhost.net

I understand thats a random name probably a session that was opened on the local smtp server but its nasty and actually lists the webhost name which most times is not good for business.

But emails sent from the regular Drupal contact module work fine (the messages even show as coming from the address that is typed by the user of the contact form!).

Is there a way to fix this?

doomed@drupal.org's picture
Offline
Bug Finder
Joined: 04/05/2008
Juice: 334
Re: Whats the status on this

And btw, the message itself is fine, just the From field is bothering me.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Whats the status on this

Well, here's the function used for all notifications to get the e-mail from address as it currently stands:

<?php
// Returns the e-mail from string in the format of Store Name <store@email.com>
function uc_store_email_from() {
 
$email_from = variable_get('uc_store_email', '');
  if (empty(
$email_from)) {
   
$email_from = variable_get('site_mail', ini_get('sendmail_from'));
  }

 

// Removed to prevent server conflicts; would love to figure out some way to
  // add this feature back in. - RS
  // $store = variable_get('uc_store_name', '');
  // if (!empty($store)) {
  //   $email_from = $store .' <'. $email_from .'>';
  // }

 

return $email_from;
}
?>

If you have the store e-mail set, I don't get why it would be screwing up. Even after that, it should default next to the Drupal site e-mail before going for the PHP admin e-mail.

Can you confirm that you guys are running the latest code?

doomed@drupal.org's picture
Offline
Bug Finder
Joined: 04/05/2008
Juice: 334
Re: Re: Re: Whats the status on this

I was running Ubercart RC1.

This SEEMS to be fixed on RC4.

I did only one test and it worked well, i really hope its fixed Laughing out loud

I will definetely test more and post results here.

lameei's picture
Offline
Joined: 01/24/2009
Juice: 23
Re: Re: Re: Whats the status on this

I'm using the latest version of UBERCART and the "unknown sender" is bothering me too. store email address is also set. As there is no uc_notify.module in new version your solution here is not working.

lameei's picture
Offline
Joined: 01/24/2009
Juice: 23
SOLVED

Sorry replying my own post. Just solved the issue. You can read the solution here.

UPDATE: seems the sender name should be in English, cause when i change it to Persian/Farsi the "from" changes back to unknown sender.