Re: Send email using smtp

2009-01-08 Thread Steve Bertrand
Jenda Krynicky wrote: > From: Gunnar Hjalmarsson >> Steve Bertrand wrote: >>> Fúlvio Figueirôa wrote: I solved my problem using sendmail with the code below: open (MAIL, "|/usr/sbin/sendmail -t "); print MAIL "From: someaddr...@somedomain\n"; print MAIL "To: someaddre...@s

Re: Send email using smtp

2009-01-08 Thread Jenda Krynicky
From: Gunnar Hjalmarsson > Steve Bertrand wrote: > > Fúlvio Figueirôa wrote: > >> I solved my problem using sendmail with the code below: > >> > >> 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-07 Thread Rob Dixon
Gunnar Hjalmarsson wrote: > Steve Bertrand wrote: >> Fúlvio Figueirôa wrote: >>> I solved my problem using sendmail with the code below: >>> >>> open (MAIL, "|/usr/sbin/sendmail -t "); >>> print MAIL "From: someaddr...@somedomain\n"; >>> print MAIL "To: someaddre...@somedomain\n"; >>> print MAIL "C

Re: Send email using smtp

2009-01-07 Thread Gunnar Hjalmarsson
Steve Bertrand wrote: Fúlvio Figueirôa wrote: I solved my problem using sendmail with the code below: 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: Ve

Re: Send email using smtp

2009-01-06 Thread Steve Bertrand
Fúlvio Figueirôa wrote: > Hi Octavian, > I solved my problem using sendmail with the code below: > > 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

Re: Send email using smtp

2009-01-06 Thread Fúlvio Figueirôa
Hi Octavian, I solved my problem using sendmail with the code below: 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 email test\n\n"; print MAI

Re: Send email using smtp

2009-01-06 Thread Octavian Rasnita
From: "Fúlvio Figueirôa" Hi Octavian, I solved my problem using sendmail with the code below: 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 simpl

Re: Send email using smtp

2009-01-06 Thread Gunnar Hjalmarsson
Fúlvio Figueirôa wrote: I don't need to use the SMTP procotol, Well, you *do* need an SMTP server that you are allowed to use. I need only send an email. This is an example that makes use of my favorite module Mail::Sender (written by Jenda, btw): use Mail::Sender; ref (new Mail

Re: Send email using smtp

2009-01-06 Thread Ralf Peng
2009/1/6 Fúlvio : > Hi Jenda, > > I try to debug the code and the error message was: "Bad file > descriptor". > I will try to use the other modules. > I need only send an email. > If you are not familiar with SMTP protocal (RFC 821), you are hard to use Net::SMTP. I'd suggest you use another modul

Re: Send email using smtp

2009-01-06 Thread Octavian Rasnita
From: "Fúlvio" > Hi Octavian, > > I don't need to use this server. I need only to send an email, but as > I don't know perl > very well I get an example using SMTP and yahoo server. You can't send an email without using an SMTP server, or sendmail, qmail... Do you use an SMTP server for sending

Re: Send email using smtp

2009-01-06 Thread Fúlvio
Hi Octavian, I don't need to use this server. I need only to send an email, but as I don't know perl very well I get an example using SMTP and yahoo server. Thanks, Fúlvio On 5 jan, 17:16, orasn...@gmail.com (Octavian Rasnita) wrote: > From: "Fúlvio" > Hi all, > > I am trying to send an email

Re: Send email using smtp

2009-01-06 Thread Fúlvio
Hi Jenda, I try to debug the code and the error message was: "Bad file descriptor". I will try to use the other modules. I need only send an email. Thanks, Fúlvio On 5 jan, 17:46, je...@krynicky.cz (Jenda Krynicky) wrote: > From: Fúlvio > > > Hi all, > > > I am trying to send an email using

Re: Send email using smtp

2009-01-06 Thread Fúlvio Figueirôa
Hi Rob, Thanks for your answer. I change the code to try debug and put the correct SMTP address: $smtp_test = Net::SMTP->new('smtp.mail.yahoo.com', Timeout => 30, Debug => 1,)|| print "ERROR creating SMTP obj: $! \n"; but the following message is displayed: "Bad file descriptor". I don't need t

Re: Send email using smtp

2009-01-05 Thread Rob Dixon
Fúlvio wrote: > > I am trying to send an email using the following code: > > use Net::SMTP; > > $smtp = Net::SMTP->new("smtp.yahoo.com"); > $smtp->mail('fulviocg'); > > but the error below is happening: > > Can't call method "mail" on an undefined value at > > Can someone help me? The d

Re: Send email using smtp

2009-01-05 Thread Jenda Krynicky
From: Fúlvio > Hi all, > > I am trying to send an email using the following code: > > use Net::SMTP; > > $smtp = Net::SMTP->new("smtp.yahoo.com"); > $smtp->mail('fulviocg'); > > but the error below is happening: > > Can't call method "mail" on an undefined value at Apparently the Net::SMTP->

Re: Send email using smtp

2009-01-05 Thread Octavian Rasnita
From: "Fúlvio" Hi all, I am trying to send an email using the following code: use Net::SMTP; $smtp = Net::SMTP->new("smtp.yahoo.com"); $smtp->mail('fulviocg'); but the error below is happening: Can't call method "mail" on an undefined value at Can someone help me? Hi, Can you use Yah

Send email using smtp

2009-01-05 Thread Fúlvio
Hi all, I am trying to send an email using the following code: use Net::SMTP; $smtp = Net::SMTP->new("smtp.yahoo.com"); $smtp->mail('fulviocg'); but the error below is happening: Can't call method "mail" on an undefined value at Can someone help me? Thanks Fúlvio -- To unsubscribe, e