http://search.cpan.org/~miker/Mail-SpamCannibal-0.54/lib/Mail/SpamCannibal/SMTPsend.pm
I don't want to reinvent the wheel, so I just wanna know if someone has faced the same problem before and if they have how have solved it. | [reply] |
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\
| [reply] |
Oh I am so sorry abt misdirecting you. I am using MIME::Entity , which has compatibility with Mail::Internet, so that methods like smtpsend() will work. I dunno why the Sender header is being added. This doesn't happen when I use Mail::SendMail. But for other reasons I would like to use smtpsend albeit without the Sender header.
And really dumb of me to give the wrong link.
| [reply] |