Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Email name in From field

Quote Reply
Email name in From field
Can someone help me place the Contact name in the From field on emails sent from the add.cgi?

ie...webmaster@redhotsites.com (CDitty)

I have tried to fix it and cannot.

my $to = $db_admin_email;
my $from = $in{$db_cols{$db_contact_email]};
my $subject = "$in{'Title'}\n";
my $msg = qq|

-snip-

# Then mail it away!
require "$db_lib_path/Mailer.pm";
my $mailer = new Mailer ( { smtp => $db_smtp_server,
sendmail => $db_mail_path,
from => $from,
subject => $subject,
to => $to,
msg => $msg,
log => $db_mailer_log
} ) or return;
$mailer->send or return;

Thanks

CDitty
Quote Reply
Re: Email name in From field In reply to
Try:

my $from = $in{$db_cols[$db_contact_email]};

You have a "(" where you should have a "[" after $db_cols.

I hope this helps.

------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
goodstufflists.home.ml.org/


Quote Reply
Re: Email name in From field In reply to
Nope. This is actually the way it is in the script. Must have mis-typed above. The script works fine as is. I just need the person's name in the email address to.