xtpu2 has asked for the wisdom of the Perl Monks concerning the following question:
Edited to Add: My apologies to the monks. You are correct, the question was idiotic. I should certainly know better. My only excuse is that it was the end of a long and frustrating day, and I was beginning to come down with a fever, which I'm still in the midst of. Editing the question to add the required details.
I'm trying to get Email::Sender to work. Here is my code:
#!/usr/bin/perl use strict; use warnings; use Email::MIME; use Email::Sender::Simple; my ($from, $to, $subject, $body) = ('some','values','go','here'); my $message = Email::MIME->create( header_str => [ From => $from, To => $to, Subject => $subject ], attributes => { encoding=> 'quoted-printable', charset => 'UTF-8' }, body_str => $body ); Email::Sender::Simple->send( $message ); print "Success!";
This code doesn't work. By this I mean: the e-mail is simply not sent. There is no error message. There is no warning. The script prints "Sucess!" That's it. This is why I'm lost.
I'm also open to using a different module. I was just trying to find something ready-made and easy to use.
|
|---|