Hello,
You need to add a few more datasends:
# Send the header. $smtp->datasend("To: email@address.com\n"); $smtp->datasend("From: email2@address.com\n"); $smtp->datasend("Subject: This is the subject"); $smtp->datasend("\n"); # Send the body. $smtp->datasend("This is a test"); $smtp->datasend(); $smtp->quit;
Hope this helps...
In reply to Re: Created script to send email but ending up with blank "FROM" field?
by rlb3
in thread Created script to send email but ending up with blank "FROM" field?
by edger1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |