CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Email::Simple Module errors

 



twistedphrame
Novice

Mar 3, 2010, 7:32 AM

Post #1 of 2 (1306 views)
Email::Simple Module errors Can't Post

Hello all,

I'm trying to send an email notification the code is:


Code
my $email = Email::Simple->create( 
header => [
To => $email,
From => '"Automation" <Thisisfake@faaaake.com>',
Subject => "Class Opening",
],
body => "The Class $subject $courseNum-$sectionNum is now open for the term: $term.\n Do not respond to this automated email. \n",
);
sendmail($email);


I get this traceback:

error when closing pipe to sendmail:

Trace begun at /usr/local/share/perl/5.10.0/Email/Sender/Transport/Sendmail.pm line 77
Email::Sender::Transport::Sendmail::send_email('Email::Sender::Transport::Sendmail=HASH(0x9536eb0)', 'Email::Abstract=ARRAY(0x95367a0)', 'HASH(0x94d3188)') called at /usr/local/share/perl/5.10.0/Email/Sender/Role/CommonSending.pm line 25
Email::Sender::Role::CommonSending::__ANON__ at /usr/local/share/perl/5.10.0/Try/Tiny.pm line 76
eval {...} at /usr/local/share/perl/5.10.0/Try/Tiny.pm line 67
Try::Tiny::try('CODE(0x954bc48)', 'Try::Tiny::Catch=REF(0x9547da0)') called at /usr/local/share/perl/5.10.0/Email/Sender/Role/CommonSending.pm line 35
Email::Sender::Role::CommonSending::send('Email::Sender::Transport::Sendmail=HASH(0x9536eb0)', 'Email::Abstract=ARRAY(0x95367a0)', 'HASH(0x953edd0)') called at /usr/local/share/perl/5.10.0/Email/Sender/Simple.pm line 108
Email::Sender::Simple::send_email('Email::Sender::Simple', 'Email::Abstract=ARRAY(0x95367a0)', 'HASH(0x953ebb0)') called at /usr/local/share/perl/5.10.0/Email/Sender/Role/CommonSending.pm line 25
Email::Sender::Role::CommonSending::__ANON__ at /usr/local/share/perl/5.10.0/Try/Tiny.pm line 76
eval {...} at /usr/local/share/perl/5.10.0/Try/Tiny.pm line 67
Try::Tiny::try('CODE(0x94d3058)', 'Try::Tiny::Catch=REF(0x92b2ae0)') called at /usr/local/share/perl/5.10.0/Email/Sender/Role/CommonSending.pm line 35
Email::Sender::Role::CommonSending::send('Email::Sender::Simple', 'Email::Simple=HASH(0x9536060)') called at /usr/local/share/perl/5.10.0/Sub/Exporter/Util.pm line 69

I'm running ubuntu 9.10 if that helps at all.

~Jordan
Sub::Exporter::Util::__ANON__('Email::Simple=HASH(0x9536060)') called at webadv_alert.pl line 106
main::HandleRequests at webadv_alert.pl line 23


murugaperumal
Novice


Mar 5, 2010, 10:31 PM

Post #2 of 2 (1287 views)
Re: [twistedphrame] Email::Simple Module errors [In reply to] Can't Post

Use the following module instead of "Email::Simple"

Email::Simple::Creator

Because I have ran your program. It display the following error message

'Can't locate object method "create" via package "Email::Simple'


(This post was edited by murugaperumal on Mar 5, 2010, 10:33 PM)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives