When sending e-cards and checking 'notify me when card is picked (up?)'. The confirmation e-mail that is sent when someone reads the card mostly uses the right settings I set in the E-card options, but once in a while it uses the default values (root@localhost and the untranslated text).

I've been trying to figure out in what particular situations it sends the default values, but I havn't been able to figure that out. Best (but not ideal) thing I could do is change the default values in the code of the module.

Anyone else with this problem?

CommentFileSizeAuthor
#2 552088.patch1.21 KBstella

Comments

DrupalYedi’s picture

Status: Active » Needs work

I have the same problem.

stella’s picture

Status: Needs work » Needs review
StatusFileSize
new1.21 KB

Attached patch fixes this problem - it removes the email address from the ecard settings form, as it wasn't being used anywhere. The site email address is now used for both the card collection notification email and to send a copy of the card sent to the sender. The problem with root@localhost has also been fixed.

kars-t’s picture

Status: Needs review » Fixed

#552088 by stella | DrupalYedi: Fixed Sometimes uses default settings to send confirmation e-mail.

Added this as it makes sense.

DrupalYedi’s picture

Thanks for Patch #2!
Because I'm using the 6.x-1.6 Version and the patch doesn't work for this version I changed only the one line on ecard.module line 533 like it is done in the patch

From:
$site_email = variable_get('site_email', 'root@localhost');

To:
$site_email = variable_get('site_mail', ini_get('sendmail_from'));

It works for me to send the Email from sites Email Adress instead of root@localhost

Hope it helps other users of the 6.x-1.6 Version.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.