How can I get my from in the gt::mail module to be in the format...
Jonathan Gamble <webmaster@magicdirectory.com>
or something similar so that when I receive the email in outlook, it will display the name (and when I click on the name the email!)?
I have tried something like this:
my $from = $IN->param('Email') . " <" . $IN->param('Name') . ">";
GT::Mail->send (
smtp => $CFG->{db_smtp_server},
sendmail => $CFG->{db_mail_path},
to => $CFG->{db_admin_email},
from => $from,
subject => $IN->param('Subject'),
reply => $IN->param('Email'),
msg => $IN->param('Comments'),
debug => $Links::DEBUG
)
But... no results... anyone? anyone?
Thanks,
- Jonathan
Jonathan Gamble <webmaster@magicdirectory.com>
or something similar so that when I receive the email in outlook, it will display the name (and when I click on the name the email!)?
I have tried something like this:
Code:
my $from = $IN->param('Email') . " <" . $IN->param('Name') . ">";
GT::Mail->send (
smtp => $CFG->{db_smtp_server},
sendmail => $CFG->{db_mail_path},
to => $CFG->{db_admin_email},
from => $from,
subject => $IN->param('Subject'),
reply => $IN->param('Email'),
msg => $IN->param('Comments'),
debug => $Links::DEBUG
)
But... no results... anyone? anyone?
Thanks,
- Jonathan