l.frankline has asked for the wisdom of the Perl Monks concerning the following question:
Dear all,
I am trying to send mail to an email id, while doing so, I got an error as :
'sendmail' is not recognized as an internal or external command,
operable program or batch file.
Please let me know your suggestion what is the problem exactly. Please give me your valuable suggestions.
use MIME::Lite;$msg = MIME::Lite->new(
From =>'soft@tnq.co.in',
To =>'l.frankline@gmail.com',
Subject =>'HTML with in-line images!',
Type =>'multipart/related'
);
$msg->attach(Type => 'text/html',
Data => qq{ <body>
Here's <i>my</i> image:
<img src="C:\temp\tendul1.jpg">
</body> }
);
$msg->send();
Thank You,
Franklin
Don't put off till tomorrow, what you can do today.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: sendmail error
by marto (Cardinal) on Sep 29, 2006 at 10:11 UTC | |
by davorg (Chancellor) on Sep 29, 2006 at 10:19 UTC | |
by marto (Cardinal) on Sep 29, 2006 at 10:25 UTC | |
Re: sendmail error
by davorg (Chancellor) on Sep 29, 2006 at 10:16 UTC | |
Re: sendmail error
by gellyfish (Monsignor) on Sep 29, 2006 at 10:24 UTC | |
Re: sendmail error
by Khen1950fx (Canon) on Sep 29, 2006 at 10:49 UTC | |
Re: sendmail error
by kwaping (Priest) on Sep 29, 2006 at 15:28 UTC | |
by astroboy (Chaplain) on Sep 30, 2006 at 16:28 UTC |
Back to
Seekers of Perl Wisdom