It still shows email address instead of the name. By the way, it always works inside the message. But in the "From" field, it is not working.
$mailresult=&sendmail($fields{sender_name}, $fields{sender_email}, $fields{sender_email}, $fields{recip_email}, $SMTP_SERVER, $SUBJECT...
Hello, thank you for your reply. Here is the completed script below. Please help me to define it. Thanks.
#!/usr/local/bin/perl
#set the line above this to your perl path. Usually fine as is
# or /usr/local/bin/perl /sbin/perl
# make certain that the first line stays the first line...
I just added the one line code to the script. But it does not work , and it still shows an email address at the "From" field.
...
$fromaddr =~ s/.*<([^\s]*?)>/$1/; # get from email address
$fromaddr = '"' . $fromname . '" <' . $fromaddr . '>';
...
Thanks.
Hello,
I have an ecard script on my web site. Please see the script below. It works fine, but the email message always shows the "From" field is an email address. For example,
- In the email inbox it shows
The "From" field is an email address(web123@yahoo.com) not a person's name.
- In the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.