Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Cannot seem to override a "From" address using MIME::Lite

by imp (Priest)
on Nov 15, 2006 at 20:26 UTC ( #584280=note: print w/ replies, xml ) Need Help??


in reply to Cannot seem to override a "From" address using MIME::Lite

I suspect that the source of your problem is that $args{from} is not populated. Inspect the contents using Data::Dumper.

I tested the provided code locally on OpenBSD 3.5 with perl 5.8.2 and confirmed that the mail was formed correctly, with the provided From address.


Comment on Re: Cannot seem to override a "From" address using MIME::Lite
Re^2: Cannot seem to override a "From" address using MIME::Lite
by thezip (Vicar) on Nov 15, 2006 at 20:38 UTC

    Although I didn't provide the code for the new() method, it is definitely being set to a value. I have also verified this by printing $from on the command-line.

    Is there somewhere else where the value might be defaulted? (ie. in the operating system?)

    Where do you want *them* to go today?
      MIME::Lite sends mails using the local sendmail executable by default, perhaps the implemenation you are using does not allow overriding the From address.

      Try sending the mail using SMTP, as documented here

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (17)
As of 2014-07-28 16:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (204 votes), past polls