Ah, you mean you are using Mail::SpamCannibal::SMTPSend.
Without you giving any compelling reason why should use this particular module I wouldn't recommend you use it, primarily because it attempts to deliver the message directly to the MX for a particular domain which is not so good for a number of reasons - the two that are uppermost in mind are that firstly it doesn't perform any queuing of the mail so if the mail is not delivered (for instance the MXs are unavailable or there is some other problem) you don't get a retry if the circumstances indicate that might succeed, secondly direct to MX mailing is likely to trigger the curiosity of SPAM detectors as this is the behaviour favoured by spammers. You really want to either be sending the mail via some local SMTP server that will relay for you, or be using the facilities of the MTA on your local machine (such as sendmail, exim et al) to inject the message: there are plenty of modules what will do either.
Having said that I don't see anywhere in the code of that module (or in Net::SMTP which it uses under the hood) where a 'Sender' header is being added, so it would appear that your problem lies elsewhere.
/J\
In reply to Re^3: Mail using smtpsend
by gellyfish
in thread Mail using smtpsend
by perl_newbie411
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |