Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Created script to send email but ending up with blank "FROM" field?

by rlb3 (Deacon)
on Sep 16, 2004 at 22:44 UTC ( [id://391582]=note: print w/replies, xml ) Need Help??


in reply to Created script to send email but ending up with blank "FROM" field?

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...

rlb3

  • Comment on Re: Created script to send email but ending up with blank "FROM" field?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://391582]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found