Re: Send email using SMTP

2009-01-10 Thread Adam Jimerson
matt wrote: > > This is usually the result of a mismatch between the character set > used by your ssh client and the locale settings of your session. > Here's a link that discusses: > http://help.lockergnome.com/linux/high-ascii-characters-linux-terminal- ssh-ftopict487060.html > > [u...@host ~]

Re: Send email using SMTP

2009-01-09 Thread matt
On Jan 8, 8:55 pm, vend...@charter.net (Adam Jimerson) wrote: > "Mike Williams" wrote: > > > You can read the output of perldoc perlsec on the web at: > >http://perldoc.perl.org/perlsec.html > > That will help, thanks! > > > What version of perl are you using?  What OS? > > > I've seen similar prob

Re: Send email using SMTP

2009-01-09 Thread Adam Jimerson
Gunnar Hjalmarsson wrote: > Adam Jimerson wrote: >> Gunnar Hjalmarsson wrote: >>> Adam Jimerson wrote: Do I need to specify anything for the $ENV{PATH} or do I just leave it blank >>> >>> It depends. You have to take into consideration whether your program >>> relies on any of the paths.

Re: Send email using SMTP

2009-01-09 Thread matt
> I wasn't able to remember what it exactly said, but yes it is about > $ENV{PATH}, on my machine perldoc perlsec is riddled with formating problems > it looks like, here is a copy of what I mean: > > "Perl automatically enables a set of special security checks, called > ESC[4mtaintESC[24 > m ESC[4

RE: Send email using SMTP -Should be

2009-01-09 Thread Dermot Paikkos
> Is a discussion about taintedness off topic on a Perl-CGI list? Don't > think so. 'Sending email via SMTP' is off-topic for CGI. Cross-posting is bad form on any list. Bad boy Fulivo. Adam pointed out on Wednesday that the thread was slipping OT. > > and the thread is running strongly on per

Re: Send email using SMTP

2009-01-09 Thread Gunnar Hjalmarsson
Dermot Paikkos wrote: This is all very OT Is a discussion about taintedness off topic on a Perl-CGI list? Don't think so. and the thread is running strongly on perl-beginners. :-/ And...? -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: be

Re: Send email using SMTP

2009-01-09 Thread Gunnar Hjalmarsson
Adam Jimerson wrote: Gunnar Hjalmarsson wrote: Adam Jimerson wrote: Do I need to specify anything for the $ENV{PATH} or do I just leave it blank It depends. You have to take into consideration whether your program relies on any of the paths. If not, it's fine to leave it blank. The only ti

RE: Send email using SMTP

2009-01-09 Thread Dermot Paikkos
This is all very OT and the thread is running strongly on perl-beginners. :-/ -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/

Re: Send email using SMTP

2009-01-09 Thread Adam Jimerson
"Mike Williams" wrote: > > You can read the output of perldoc perlsec on the web at: > http://perldoc.perl.org/perlsec.html > That will help, thanks! > What version of perl are you using? What OS? > > I've seen similar problems with perldoc a few years ago while using perl > 5.6.1 on early v

Re: Send email using SMTP

2009-01-09 Thread Adam Jimerson
Gunnar Hjalmarsson wrote: >> I wasn't able to remember what it exactly said, but yes it is about >> $ENV{PATH}, on my machine perldoc perlsec is riddled with formating >> problems > > You can always read it online: http://perldoc.perl.org/perlsec.html > >> Do I need to specify anything for the $

Re: Send email using SMTP

2009-01-09 Thread Adam Jimerson
Adam Jimerson wrote: > I wasn't able to remember what it exactly said, but yes it is about > $ENV{PATH}, on my machine perldoc perlsec is riddled with formating > problems it looks like, here is a copy of what I mean: > Ok adding $ENV{PATH} = ''; or even $ENV{PATH} = '/usr/bin'; (in case it nee

Re: Send email using SMTP

2009-01-08 Thread Mike Williams
On Thu, Jan 8, 2009 at 2:17 PM, Adam Jimerson wrote: > > > > Please read more about Perl security in "perldoc perlsec". > > > > I wasn't able to remember what it exactly said, but yes it is about > $ENV{PATH}, on my machine perldoc perlsec is riddled with formating > problems > it looks like, her

Re: Send email using SMTP

2009-01-08 Thread Gunnar Hjalmarsson
Adam Jimerson wrote: Gunnar Hjalmarsson wrote: Adam Jimerson wrote: are you using the -T switch on your script? When I tried to open "/usr/bin/mail" with that switch on I get a error message about an insecure environment command. Did it just say "insecure environment"? On my box it says: "In

Re: Send email using SMTP

2009-01-08 Thread Adam Jimerson
Gunnar Hjalmarsson wrote: > Adam Jimerson wrote: >>> I solved my problem using the sendmail with the code below in my script: >>> >>> open (MAIL, "|/usr/sbin/sendmail -t "); >>> print MAIL "From: someaddr...@somedomain\n"; >>> print MAIL "To: someaddre...@somedomain\n"; >>> print MAIL "Content-Typ

Re: Send email using SMTP

2009-01-07 Thread Gunnar Hjalmarsson
Adam Jimerson wrote: I solved my problem using the sendmail with the code below in my script: open (MAIL, "|/usr/sbin/sendmail -t "); print MAIL "From: someaddr...@somedomain\n"; print MAIL "To: someaddre...@somedomain\n"; print MAIL "Content-Type: text/plain\n"; print MAIL "Subject: Very simple

Re: Send email using SMTP

2009-01-07 Thread Adam Jimerson
"F??lvio Figueir??a" wrote: > Hi Sean, > I think there is a firewall, but I don't have access to it because I am on > work. > I solved my problem using the sendmail with the code below in my script: > > open (MAIL, "|/usr/sbin/sendmail -t "); > print MAIL "From: someaddr...@somedomain\n"; > print

Re: Send email using SMTP

2009-01-06 Thread Fúlvio Figueirôa
Hi Sean, I think there is a firewall, but I don't have access to it because I am on work. I solved my problem using the sendmail with the code below in my script: open (MAIL, "|/usr/sbin/sendmail -t "); print MAIL "From: someaddr...@somedomain\n"; print MAIL "To: someaddre...@somedomain\n"; print

Re: Send email using SMTP

2009-01-06 Thread Sean Davis
On Tue, Jan 6, 2009 at 7:17 AM, Fúlvio wrote: > Hi Jody, > > I use your code bellow but the the following error message happens: > > "Can't call method "domain" on an undefined value at " Works for me. Are you behind a firewall by any chance? Sean > > > On 5 jan, 21:16, jody_rrhq_fa...@

Re: Send email using SMTP

2009-01-06 Thread Fúlvio
Hi Jody, I use your code bellow but the the following error message happens: "Can't call method "domain" on an undefined value at " Thanks, Fúlvio On 5 jan, 21:16, jody_rrhq_fa...@yahoo.com (Jody Fanto) wrote: > The problem is that you are using an invalid smtp server address.  You > proba

Re: Send email using SMTP

2009-01-05 Thread Jody Fanto
The problem is that you are using an invalid smtp server address. You probably want "smtp.mail.yahoo.com". For example, this works for me -- #!perl use strict; use warnings; use Net::SMTP; my $smtp = Net::SMTP->new("smt