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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

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



Mar 3, 2010, 7:32 AM

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

Hello all,

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

my $email = Email::Simple->create( 
header => [
To => $email,
From => '"Automation" <>',
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",

I get this traceback:

error when closing pipe to sendmail:

Trace begun at /usr/local/share/perl/5.10.0/Email/Sender/Transport/ 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/ line 25
Email::Sender::Role::CommonSending::__ANON__ at /usr/local/share/perl/5.10.0/Try/ line 76
eval {...} at /usr/local/share/perl/5.10.0/Try/ line 67
Try::Tiny::try('CODE(0x954bc48)', 'Try::Tiny::Catch=REF(0x9547da0)') called at /usr/local/share/perl/5.10.0/Email/Sender/Role/ 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/ 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/ line 25
Email::Sender::Role::CommonSending::__ANON__ at /usr/local/share/perl/5.10.0/Try/ line 76
eval {...} at /usr/local/share/perl/5.10.0/Try/ line 67
Try::Tiny::try('CODE(0x94d3058)', 'Try::Tiny::Catch=REF(0x92b2ae0)') called at /usr/local/share/perl/5.10.0/Email/Sender/Role/ 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/ line 69

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

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


Mar 5, 2010, 10:31 PM

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

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


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