Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: MIME::Parser

by trs80 (Priest)
on Aug 06, 2002 at 18:16 UTC ( #188105=note: print w/replies, xml ) Need Help??


in reply to MIME::Parser and mail from MS Outlook

I had a similar problem and corrected by contructing a proper message format using MIME::Lite.
$msg = MIME::Lite->new( From =>$from, To =>$to, Cc =>'', Subject =>$subject, Data => $body ); $msg->send(); ######################### # if you don't have sendmail on your system # Change how messages are sent ### Do something like this in your 'main': # MIME::Lite->send('smtp', "smtp.myisp.net", Timeout=>60); ### Now this will do the right thing: # $msg->send;## will now use Net::SMTP as shown above

Replies are listed 'Best First'.
Re: Re: MIME::Parser
by neilwatson (Priest) on Aug 06, 2002 at 18:27 UTC
    I'm trying to receive mail and parse it. Not send it.

    Neil Watson
    watson-wilson.ca

      Sorry, maybe I don't fully understand, I am suggesting you replace
      # email report back to sender showing the # parts of original messages open MAIL, ("|/usr/sbin/sendmail -t") || die "Unable to send mail: $!" +; print MAIL "To: $from\n"; print MAIL "From: root\n"; print MAIL "Subject: mime parser test\n\n"; print MAIL "Messege was contructed as follows: \$from: $from \$to: $to \$subject: $subject \$body: $body "; close(MAIL);
      with the MIME::Lite method. The issue I believe is that Outlook can't parse the email because it isn't being told explicitly how to deal with it via the "raw" sendmail type email construction method, and thereby defaults to its internal formatting rules.
        Other way around. I use Outlook to send mail to the script. The script parses the mail and sends a report back to Outlook. The problem is when parsing incomming messages, the script cannot capture the body from Outlook clients.

        Neil Watson
        watson-wilson.ca

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2020-07-13 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?