>
> 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;
>
I suspect you'd actually want to make it become :
my $from = "$name <$email>";
But I don't know for certain.
If the vacation script is using a mail library (Mail::Sendmail?) then I would half expect it to have a way of setting the user's real name in the from address.
David
|