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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.