Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

MIME::Lite & sendmail

by vi_srikanth (Acolyte)
on Jul 24, 2006 at 11:21 UTC ( [id://563235]=perlquestion: print w/replies, xml ) Need Help??

vi_srikanth has asked for the wisdom of the Perl Monks concerning the following question:

Hi

I am using MIME::Lite & sendmail to send mails. The problem that I am having is, the mails sent by MIME::Lite with sendmail is being considered as the "bulk" mail by the receiving server. This is happening even with the Yahoo mail server. The mail sent to my yahoo id, is in the "bulk" folder, not in the "inbox"! Any idea? Please help.

Code:

# create a new message $msg = MIME::Lite->new( From => $from, To => $to, Subject => $subject, Data => $message ); # add the attachment $msg->attach( Type => "text/plain", Path => $file, Filename => $file, Disposition => "attachment" ); $msg->send();

Thanks
Srikanth

Replies are listed 'Best First'.
Re: MIME::Lite & sendmail
by Corion (Patriarch) on Jul 24, 2006 at 11:24 UTC

    Maybe this is because you are sending spam?

    If your mails are not spam, then you will have to try to make them less similar to spam. Look at some spam mails and look what they have in common with your mails, and then change your mails.

    <pFor example, mails that consist only of HTML and pictures, and no plain text part, are often considered as spam.

    Another thing could be that you are sending mail from an IP address that is used to send spam.

    You could check what SpamAssassin rules your mail triggers.

    And in the end, you could contact the Yahoo! mail administrators.

Re: MIME::Lite & sendmail
by marto (Cardinal) on Jul 24, 2006 at 11:33 UTC
    vi_srikanth,

    In addition to the great advice Corion has given you, mx toolbox will allow you to check various blacklists to see if your mail server has been blacklisted.

    Martin
Re: MIME::Lite & sendmail
by gasho (Beadle) on Jul 24, 2006 at 13:55 UTC
    This is what is working for me
    ### Create the multipart container $msg = MIME::Lite->new ( From => $from_address, To => $to_address, Cc => $to_cc, Subject => $subject, Type =>'multipart/mixed' ) or die "Error creating multipart container: $!\n"; ### Add the text message part $msg->attach ( Type => 'TEXT', Data => $message_body ) or die "Error adding the text message part: $!\n"; ### Add the xls file $msg->attach ( Type => 'application/xls', Path => $my_file_xls, Filename => $your_file_xls, Disposition => 'attachment' ) or die "Error adding $file: $!\n"; ### Send the Message MIME::Lite->send('smtp', $mail_host, Timeout=>60); $msg->send;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://563235]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-19 14:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found