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
erver. 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 email with your email client

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.

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, > &

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

RE: Mial::Mailer Date Stamp and Error Handling using SMTP Service

2003-06-16 Thread Smith Jeff D
g the results of sending the message to the SMTP server? Thanks John. -Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 3:38 PM To: [EMAIL PROTECTED] Subject: Re: Mial::Mailer Date Stamp and Error Handling using SMTP Service Smith Jeff D

RE: Mial::Mailer Date Stamp and Error Handling using SMTP Service

2003-06-16 Thread Smith Jeff D
EMAIL PROTECTED] Subject: Re: Mial::Mailer Date Stamp and Error Handling using SMTP Service Smith Jeff D wrote: > > I was wondering if someone could point me in the right > direction for using the Mail::Mailer module. I have two questions: > > I have a simple scrip

Re: Mial::Mailer Date Stamp and Error Handling using SMTP Service

2003-06-16 Thread John W. Krahn
Smith Jeff D wrote: > > I was wondering if someone could point me in the right direction for > using the Mail::Mailer module. I have two questions: > > I have a simple script to mail log files to systems administrators using > Mail::Mailer --that works fine as it is. > > 1. Date/Times

Mial::Mailer Date Stamp and Error Handling using SMTP Service

2003-06-16 Thread Smith Jeff D
I was wondering if someone could point me in the right direction for using the Mail::Mailer module. I have two questions: I have a simple script to mail log files to systems administrators using Mail::Mailer --that works fine as it is. 1. Date/Timestamp modification: But I notice that

Re: Sending e-mail from perl script using SMTP on Windows!!!working now

2003-02-19 Thread Steve Lobach
TED]' here typeo... actual is "redy.ponnolu" now, how to chatch this type of erros in script... if i put wrong e-mail address...does it bounce back ? how to check this... --- Madhu Reddy <[EMAIL PROTECTED]> wrote: > Hi, > This is regarding sending e-mail from perl sc

Re: Sending e-mail from perl script using SMTP on Windows!!! working now

2003-02-19 Thread R. Joseph Newton
Madhu Reddy wrote: > Hi Guys, >now it's working fine > there is typeo in e-mail address > i put email address as '[EMAIL PROTECTED]' > here typeo... > actual is "redy.ponnolu" Hi Madhu, I am glad that it is now working, but I think you may be working too much here. Check out Mail::

Re: Sending e-mail from perl script using SMTP on Windows!!! working now

2003-02-18 Thread Madhu Reddy
check this... --- Madhu Reddy <[EMAIL PROTECTED]> wrote: > Hi, > This is regarding sending e-mail from perl script > using SMTP > my script is running fine..but i am not getting any > mail which i sent from script... > > following is my program > correct me i

Sending e-mail from perl script using SMTP on Windows

2003-02-18 Thread Madhu Reddy
Hi, This is regarding sending e-mail from perl script using SMTP my script is running fine..but i am not getting any mail which i sent from script... following is my program correct me if any thing is wrong in the script. messages with debug option attached at the end

Re: How to send an e-mail from perl script on windows using SMTP?

2003-02-06 Thread Jenda Krynicky
From: "dan" <[EMAIL PROTECTED]> > With regards to NET::SMTP and Net::SMTP, since it's on windows, case > doesn't really seem to matter. > > Dan Wrong. There are some modules that do not care whether you use the right case, but most modules will not work correctly. The reason is that the use sta

RE: How to send an e-mail from perl script on windows using SMTP?

2003-02-06 Thread Timothy Johnson
EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 11:03 AM To: [EMAIL PROTECTED]; dan; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: How to send an e-mail from perl script on windows using SMTP? This script is running where my e-mail client is (MicroSoft Look)... I am not running on r

Re: How to send an e-mail from perl script on windows using SMTP?

2003-02-06 Thread Madhu Reddy
This script is running where my e-mail client is (MicroSoft Look)... I am not running on remote.. I am running on localNetwork I am using Microsoft Outlook 2002 I used following procedure to get the my-email server name - 1. On Outlook "Tools>options>Mail Setup===>E-mail Accoun

Re: How to send an e-mail from perl script on windows using SMTP?

2003-02-06 Thread wiggins
On Thu, 6 Feb 2003 17:09:40 -, "dan" <[EMAIL PROTECTED]> wrote: > I tried telnetting to that host on port 25, it exclaimed "host could not be > found". Seems that's your problem. > Not necessarily, unless you are on the same local network as

RE: How to send an e-mail from perl script on windows using SMTP?

2003-02-06 Thread Timothy Johnson
Reddy [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 6:49 AM To: Timothy Johnson; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: How to send an e-mail from perl script on windows using SMTP? Hi, I did telnet ..i got following error - C: telnet ivhpxc0003.ap.bdi.gte.com 25

Re: How to send an e-mail from perl script on windows using SMTP?

2003-02-06 Thread dan
l not be able to > > send the email from your script. > > > > -Original Message- > > From: Madhu Reddy [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, February 05, 2003 6:11 PM > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > Subject: Re: How to

RE: How to send an e-mail from perl script on windows using SMTP?

2003-02-06 Thread Madhu Reddy
AIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: How to send an e-mail from perl script > on windows using > SMTP? > > > I changed to Net::SMTP > still i am getting following error > > Couldnt make Connection: Unknown error > > > > --- david <[EMAIL

RE: How to send an e-mail from perl script on windows using SMTP?

2003-02-05 Thread Timothy Johnson
- From: Madhu Reddy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 6:11 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: How to send an e-mail from perl script on windows using SMTP? I changed to Net::SMTP still i am getting following error Couldnt make Connection: Unk

Re: How to send an e-mail from perl script on windows using SMTP?

2003-02-05 Thread Madhu Reddy
I changed to Net::SMTP still i am getting following error Couldnt make Connection: Unknown error --- david <[EMAIL PROTECTED]> wrote: > Madhu Reddy wrote: > > > use NET::SMTP ; > > should probably be: > > use Net::SMTP; > > unless NET::SMTP is a new module. > > david > > -- >

Re: How to send an e-mail from perl script on windows using SMTP?

2003-02-05 Thread david
Madhu Reddy wrote: > use NET::SMTP ; should probably be: use Net::SMTP; unless NET::SMTP is a new module. david -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How to send an e-mail from perl script on windows using SMTP?

2003-02-05 Thread Madhu Reddy
Hi, I want to send an e-mail from perl script i have following script...but i am getting following error. does anybody have any idea, why it is failing ? == following is error message -- Couldnt make Connection: Unknown error --- following is script ===

Re: Using smtp

2002-04-17 Thread eric-sourceforge
On Wed, 17 Apr 2002, Bill Lyles wrote: > How can I change this to smtp? Bill: Try using Mail::Mailer: #!/usr/bin/perl -w use Mail::Mailer; my $To = $ARGV[0]; my $mailer = Mail::Mailer->new('smtp', 'your.smtp.host'); $mailer->open({ From => "[EMAIL PROTECTED]", T

Using smtp

2002-04-17 Thread Bill Lyles
I have a script that I'm trying to edit to use smtp because it only calls for a mail program. this is the code if ($found) { open (MAILME, "|$mailprog -t") or &dienice("Can't access $mailprog!\n"); print MAILME "To: $email\n"; print MAILME "From: $adminmail\n"; print MAILME "Subject: Your userna

Re: Using smtp

2002-04-17 Thread Chas Owens
On Wed, 2002-04-17 at 12:41, Bill Lyles wrote: > I have a script that I'm trying to edit to use smtp because it only calls > for a mail program. > > this is the code > > if ($found) { > open (MAILME, "|$mailprog -t") or &dienice("Can't access $mailprog!\n"); > print MAILME "To: $email\n"; > prin