rajyalakshmi has asked for the wisdom of the Perl Monks concerning the following question:
I am using the following script to send mail.My requirement is to send mail with file sent as an inline.But though i have used 'Dispostion' as inline i am still getting the text file as attachment.Kindly let me know how can i send a file as inline not attachement
#!/usr/bin/perl use MIME::Lite; my $msg = MIME::Lite->new( From => 'some1@somewhere', To => 'some1@somewhere', Cc => 'some2@somewhere,some3@somewhere,some4@somewhere,some5@ +somewhere', Type => 'multipart/mixed', Subject => "Fetch issues as on '$dateFile'", Dispostion=>'inline', ); $msg->attach( Type => 'TEXT', Data => "Hi,Please find attachement for Fetch issues seen in c +ategories as on '$dateFile'", ); $msg->attach( Type => 'text', Path => '/var/newshunt/Fetch_script/exceptions_reasons.txt', Filename => 'exceptions_reasons.txt', Dispostion=> 'inline', ); $msg->send;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem in sending mail with file as inline
by Khen1950fx (Canon) on Sep 25, 2010 at 11:27 UTC | |
|
Re: Problem in sending mail with file as inline
by zentara (Cardinal) on Sep 25, 2010 at 11:09 UTC | |
|
Re: Problem in sending mail with file as inline
by Anonymous Monk on Sep 25, 2010 at 10:19 UTC |