Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.