netperl has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; # first, create your message use Email::MIME; my $message = Email::MIME->create( header_str => [ From => 'you@example.com', To => 'joshipv2@gmail.com', Subject => 'Happy birthday!', ], attributes => { encoding => 'quoted-printable', charset => 'ISO-8859-1', }, body_str => "Happy birthday to you!\n", ); # send the message1 use Email::Sender::Simple qw(sendmail); sendmail($message);
please help a fresh newbie :)Jesses-MacBook-Pro:perl jessep$ ./sendemail.pl Can't locate Email/MIME.pm in @INC (@INC contains: /Library/Perl/5.16/ +darwin-thread-multi-2level /Library/Perl/5.16 /Network/Library/Perl/5 +.16/darwin-thread-multi-2level /Network/Library/Perl/5.16 /Library/Pe +rl/Updates/5.16.2 /System/Library/Perl/5.16/darwin-thread-multi-2leve +l /System/Library/Perl/5.16 /System/Library/Perl/Extras/5.16/darwin-t +hread-multi-2level /System/Library/Perl/Extras/5.16 .) at ./sendemail +.pl line 6. BEGIN failed--compilation aborted at ./sendemail.pl line 6. Jesses-MacBook-Pro:perl jessep$
Update I have finally figured the issue and solved it. This program is now working. Thank you Ken and everyone!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't locate Email/MIME.pm in @INC
by kcott (Archbishop) on Mar 21, 2014 at 20:39 UTC | |
|
Re: Can't locate Email/MIME.pm in @INC
by tangent (Parson) on Mar 21, 2014 at 20:49 UTC | |
by netperl (Initiate) on Mar 21, 2014 at 22:05 UTC | |
by tangent (Parson) on Mar 21, 2014 at 22:51 UTC | |
by kcott (Archbishop) on Mar 22, 2014 at 07:11 UTC | |
by kcott (Archbishop) on Mar 22, 2014 at 06:46 UTC | |
by netperl (Initiate) on Mar 24, 2014 at 14:50 UTC |