Sachin has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use MIME::Lite; # SendTo email id my $email = 'a@example.com'; MIME::Lite->send('smtp','example.com',Debug=>1) || die $!; # create a new MIME Lite based email my $msg = MIME::Lite->new ( Subject => "HTML email test", From => 'x@example.com', To => $email, Type => 'text/html', Data => '<H1>Hello</H1><br>This is a test email. Please visit our site <a href="http://cyberciti.biz/">online</a><hr>' ); $msg->send();
When i run this program it's give error "Unknown send method". Can you help me about this problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting Error "Unknown send method" when sending mail using MIME::Lite??
by keszler (Priest) on Feb 24, 2010 at 10:25 UTC | |
|
Re: Getting Error "Unknown send method" when sending mail using MIME::Lite??
by jethro (Monsignor) on Feb 24, 2010 at 09:18 UTC | |
|
Re: Getting Error "Unknown send method" when sending mail using MIME::Lite??
by Neighbour (Friar) on Feb 24, 2010 at 09:20 UTC | |
by almut (Canon) on Feb 24, 2010 at 09:33 UTC | |
by sierpinski (Chaplain) on Feb 24, 2010 at 19:33 UTC | |
by almut (Canon) on Feb 24, 2010 at 19:59 UTC | |
|
Re: Getting Error "Unknown send method" when sending mail using MIME::Lite??
by sierpinski (Chaplain) on Feb 24, 2010 at 19:30 UTC |