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
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