Hi all,
I'd really like some assistance figuring out how to do this... I just
can't seem to get my head around how.
What I'd like is for the $from used for Vacation messages to include the
persons name, not just their email address...
So, instead of:
From: us...@ex...
it would be:
From: My Name <us...@ex...>
It looks like all that is needed is to grab the users name in the query:
my $query = qq{SELECT subject,body FROM vacation WHERE email=?};
?
and then change the $from line:
my $from = $email;
to something that would include the users name, like:
my $from = $name $email;
Of course, it should be smart enough not to break if the user doesn't
have a name (all of my users do, but that is beside the point), and it
would have to be wrapped to not break if non standard naming convention
is used (ie, Last, First, or First Last III, or whatever)...
So, any suggestions?
Thanks,
Charles
|