Dear Masters,
I have the following script. Which use MIME::Lite,
now problem I have is that only web-based email client (e.g. gmail, yahoo, hotmail, server_webmail) can receive
email sent by this script.
Is there any module that is more robust, which can be opened both web based and console based (e.g. pine, mutt) email client.
use MIME::Lite;
my $for_whom = "somebody@tolove.com";
my $sender_email = "lonely@girl.com";
my $message = "Forget me not";
my $subject = "FOO BAR";
send_email_noattach($for_whom,$sender_email,$message,$subject);
sub send_email_noattach {
# using MIME::Lite
my ( $target_add, $my_add, $mssg, $subject ) = @_;
my $msg = MIME::Lite->new(
From => $my_add,
To => $target_add,
Subject => $subject,
Type => 'multipart/plain',
);
$msg->attach(
Type => 'TEXT',
Data => $mssg
);
$msg->send();
return;
}
---
neversaint and everlastingly indebted.......
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.