Re: mail message truncated when using net::smtp

2008-05-17 Thread Chris Lindsley
4:21 PM, Chris Lindsley <[EMAIL PROTECTED]> wrote: > Hi, > > I am using the net::smtp module to send an email. I'm trying to send > an email of about 2400 characters. It is getting truncated at a > little over 1800 characters. Does anyone know of parameters I can add

mail message truncated when using net::smtp

2008-05-16 Thread Chris Lindsley
Hi, I am using the net::smtp module to send an email. I'm trying to send an email of about 2400 characters. It is getting truncated at a little over 1800 characters. Does anyone know of parameters I can add to up the call to up the message length? perl -v This is perl, v5.10.0 buil

Net::SMTP::Server and blocking

2008-03-27 Thread Bullock, Howard A.
service the program will cycle back to the PerlSvc ContinueRun function stopping the loop? my $SMTPserver = new Net::SMTP::Server(); while (ContinueRun(1)) { # Place main code or call to main code here my $conn = $SMTPserver->accept(); my $client = new Net::SMTP::Server::Client($conn);

RE: Error message not showing up from Net::SMTP

2007-09-05 Thread Suresh Govindachar
Changing the user code to the following displays the desired error message: print "ERROR: Could not authenticate user $user_id\n$!\n", $mail->code,':',$mail->message,"\n"; Thanks to Friar menolly and Chancellor ikegami on PerlMonks. --Suresh __

Re: Error message not showing up from Net::SMTP

2007-09-05 Thread Bill Luebkert
Sisyphus wrote: > - Original Message - > From: "Suresh Govindachar" <[EMAIL PROTECTED]> > . > . > >> sub auth { >> my (\$self, \$username, \$password) = [EMAIL PROTECTED]; >> >> eval { >> require MIME::Base64; >> require Authen::SASL; >> } or \$self->set_status(500, ["Need M

RE: Error message not showing up from Net::SMTP

2007-09-05 Thread Suresh Govindachar
I see. My mistake in the quote -- the cut and paste I used resulted in the extra '\'. perl -MNet::SMTP -e "print $Net::SMTP::VERSION" 2.31 ppm query libnet -T-TT--┐ │ name

Re: Error message not showing up from Net::SMTP

2007-09-05 Thread Sisyphus
- Original Message - From: "Suresh Govindachar" <[EMAIL PROTECTED]> To: "'Sisyphus'" <[EMAIL PROTECTED]>; Sent: Thursday, September 06, 2007 12:58 AM Subject: RE: Error message not showing up from Net::SMTP > > Rob, > > You miss

RE: Error message not showing up from Net::SMTP

2007-09-05 Thread Suresh Govindachar
Rob, You missed the entire context of the original post. The sub auth is INSIDE Net::SMTP; the code to try was attached below the signature. The issue: Error message FROM Net::SMTP is not being delivered to the user. The code to try (need to use valid $smtp_host

Re: Error message not showing up from Net::SMTP

2007-09-05 Thread Sisyphus
- Original Message - From: "Suresh Govindachar" <[EMAIL PROTECTED]> . . > sub auth { >my (\$self, \$username, \$password) = [EMAIL PROTECTED]; > >eval { > require MIME::Base64; > require Authen::SASL; >} or \$self->set_status(500, ["Need MIME::Base64 and Authen::SAS

Error message not showing up from Net::SMTP

2007-09-05 Thread Suresh Govindachar
valid $smtp_host. Output from test is attached also. Thanks, --Suresh #!/use/bin/perl BEGIN {(*STDERR = *STDOUT) || die;} use diagnostics; use warnings; use strict; $| = 1; use Net::POP3; use Net::SMTP; my $smtp_host = 'smtp.att.yahoo.com'; my $src_domai

RE: File attachments via Perl using Net::SMTP

2007-05-15 Thread Mark Funk
Yes it is possible. This is how I have done it in the past... try this... . . . use MIME::Lite; use Net::SMTP; ### Adjust sender, recipient and your SMTP mailhost my $from_address = 'Me'; my $to_address = $email_addy; my $mail_host = "$mail_host"; ### Adj

Re: File attachments via Perl using Net::SMTP

2007-05-15 Thread Mark Dootson
You need MIME::Lite; Dax Games wrote: > Is it possible to send SMTP mail with file attachments via Net::SMTP? if > not how can I do this. I am sending SMTP messages successfully but need > to send an attached text file as well. > > T

File attachments via Perl using Net::SMTP

2007-05-15 Thread Dax Games
Is it possible to send SMTP mail with file attachments via Net::SMTP? if not how can I do this. I am sending SMTP messages successfully but need to send an attached text file as well. Thanks, Dax ___ Perl-Win32-Users mailing list Perl-Win32-Users

Re: Net::SMTP::Multipart and multiple recipients

2006-03-01 Thread $Bill Luebkert
Erich Beyrent wrote: > I am trying to use Net::SMTP::Multipart to send email to multiple > recipients, and per the module documentation, I am specifying multiple > addresses in an anonymous array: > > $smtp->Header(To => ["[EMAIL PROTECTED]", "[EMA

Net::SMTP::Multipart and multiple recipients

2006-03-01 Thread Erich Beyrent
I am trying to use Net::SMTP::Multipart to send email to multiple recipients, and per the module documentation, I am specifying multiple addresses in an anonymous array: $smtp->Header(To => ["[EMAIL PROTECTED]", "[EMAIL PROTECTED],"], Subj => "

RE: Net::SMTP Question

2006-02-03 Thread Dirk Bremer
u do not need to reconnect > unless the > server kicks you out after sending an email (some do!). > > You might want to revise your code to something like: > > use Net::SMTP; > $smtp = Net::SMTP->new('mailhost'); > > # start loop > # Loop over the foll

Re: Net::SMTP Question

2006-02-03 Thread DZ-Jay
kicks you out after sending an email (some do!). You might want to revise your code to something like: use Net::SMTP; $smtp = Net::SMTP->new('mailhost'); # start loop # Loop over the following for each message $smtp->mail($ENV{USER}); # <-- Start with this every

Net::SMTP Question

2006-02-03 Thread Dirk Bremer
I have a need to send multiple email messages within a single instance of a program. I have a problem where the first composed email message is sent (and received) okay, while the subsequent messages are not. The code is similar to this: use Net::SMTP; $smtp = Net::SMTP->new('mailhost&

Re: Sending email with authentication using Net::SMTP.

2005-12-19 Thread Joydeep Yadav
Introduced "$smtp->auth($account,$password);" per Dave's suggestion.  Get the following debug message:   Net::SMTP: Net::SMTP(2.15)Net::SMTP:   Net::Cmd(2.18)Net::SMTP:     Exporter(5.562)Net::SMTP:   IO::Socket::INET(1.25)Net::SMTP:     IO::Socket(1.26)Net::SMTP:   IO:

Re: Sending email with authentication using Net::SMTP.

2005-12-19 Thread David Ressler
Put this in your code after the "$smtp=Net::SMTP->new..." line:   $smtp->auth($account,$password);   but the SMTP server needs to deal with SASL. Use values for $account and $password that authorize you for that server. My attempt at this failed until my service

RE: Sending email with authentication using Net::SMTP.

2005-12-19 Thread Chris
> Is anyone aware of any method of sending email with authentication using Net::SMTP or any other module. At this point I am experimenting trying to send email using perl v 5.6.1. > My ISP seems to require authentication when I run the script below with debug enabled. > Joydeep

Re: Sending email with authentication using Net::SMTP.

2005-12-19 Thread Suresh Govindachar
On Mon, 19 Dec 2005 12:37:47 -0800 (PST) Joydeep Yadav asked > Is anyone aware of any method of sending email with > authentication using Net::SMTP or any other module. At > this point I am experimenting trying to send email using > perl v 5.6.1. Code in http:/

Sending email with authentication using Net::SMTP.

2005-12-19 Thread Joydeep Yadav
Hi,   Is anyone aware of any method of sending email with authentication using Net::SMTP or any other module. At this point I am experimenting trying to send email using perl v 5.6.1.   My ISP seems to require authentication when I run the script below with debug enabled.   Thanks

Net::SMTP errors?

2005-08-10 Thread David Ressler
Hi, I'm successfully using Net::SMTP to send email, but I need to look at the to() error messages to determine if the problem was just a bad address or if the server found a more sinister problem. How do I pick up the actual message returned by the server? Thanks,

RE: Using Net::SMTP with Authen:SASL

2005-06-27 Thread John Serink
This works: use strict; use warnings; use Net::SMTP; my $mailhost = "jim.bob.com"; my $mailobj = ""; if($mailobj = Net::SMTP->new($mailhost, Timeout=>10, Debug=>1)){ print("Connected to $mailhost\n"); } else { print("Could not c

Using Net::SMTP with Authen:SASL

2005-06-27 Thread David Ressler
I've been advised by my web host that I should use authenticated SMTP instead of sendmail; that is, Net::SMTP using Authen::SASL. I'm getting no further guidance, so I've tried variations on the following with no success: use lib $SCRIPTS_DIR.'Authen'; #Contains Authen:

Re: MIME::Lite and Net::SMTP

2005-05-05 Thread $Bill Luebkert
> $hSmtpparm{auth} = $mailtags{mailauth} if (exists($mailtags{mailauth})); > MIME::Lite->send('smtp', $mailtags{mailsmtp}, %smtpparm); > > > Since the Net::SMTP->auth is a method, do I need to create subroutine > reference? Any help is sorting this out would

MIME::Lite and Net::SMTP

2005-05-05 Thread Adam R. Frielink
$mailtags{mailsmtp}, %smtpparm); Since the Net::SMTP->auth is a method, do I need to create subroutine reference? Any help is sorting this out would be appreciated. TIA, Adam Frielink ___ Perl-Win32-Users mailing list Perl-Win32-User

Re: Net::SMTP

2005-03-30 Thread $Bill Luebkert
[EMAIL PROTECTED] wrote: > Bonjour, > > I actually use Net::SMTP to send email from my Perl program, > everything works fine except for the return "\n" character. I don't > know why but I loose my \n in my email message... > > Does anybody ever sa

Re: Net::SMTP

2005-03-30 Thread Kris Hoelzer
rmat. Since your mail reader does not > understand > this format, some or all of this message may not be legible. > > --_=_NextPart_001_01C5353F.4A32986E > Content-Type: text/plain > > Bonjour, > > I actually use Net::SMTP to send email from my Perl program, &g

Net::SMTP

2005-03-30 Thread Dupuis . Dominic
Bonjour,       I actually use Net::SMTP to send email from my Perl program, everything works fine except for the return "\n" character.  I don't know why but I loose my \n in my email message...       Does anybody ever saw that?!?   # I use this line to create the string th

RE: Net::SMTP

2004-06-10 Thread Raymond Forbes
Oh man I am dumb. Thank goodness my gf was here to point out my dumbitity It is Net::SMTP->new Not Net::SMTP::New I totally missed that part in your changes. -Original Message- From: $Bill Luebkert [mailto:[EMAIL PROTECTED] Sent: Thursday, June 10, 2004 7:37 PM To: Raymond For

Re: Net::SMTP

2004-06-10 Thread $Bill Luebkert
TED] > Sent: Thursday, June 10, 2004 4:40 PM > To: Raymond Forbes > Cc: [EMAIL PROTECTED] > Subject: Re: Net::SMTP > > Raymond Forbes wrote: > > >>Ok, dumb question. I am using Perl 5.8 and I am using the latest Visual >>Perl. I am trying to do a very basic Net

RE: Net::SMTP

2004-06-10 Thread Raymond Forbes
I get the exact same error message. I am guessing my perl install is fluxored up or I have some configuration off. -Original Message- From: $Bill Luebkert [mailto:[EMAIL PROTECTED] Sent: Thursday, June 10, 2004 4:40 PM To: Raymond Forbes Cc: [EMAIL PROTECTED] Subject: Re: Net::SMTP

Re: Net::SMTP

2004-06-10 Thread $Bill Luebkert
Raymond Forbes wrote: > Ok, dumb question. I am using Perl 5.8 and I am using the latest Visual > Perl. I am trying to do a very basic Net::SMTP script and it is failing > with “bad file descriptor”. I am sure I am missing something obvious I > just can’t see it! My code below

Net::SMTP

2004-06-10 Thread Raymond Forbes
Ok, dumb question.  I am using Perl 5.8 and I am using the latest Visual Perl.  I am trying to do a very basic Net::SMTP script and it is failing with “bad file descriptor”.  I am sure I am missing something obvious I just can’t see it!  My code below.         use strict; use Net

Re: Generating email in different languages (Net::SMTP and Simplified Chinese)?

2003-10-23 Thread Juan Carlos Cruz Dada
Howard, You can use the Net::SMTP to send multybyte characters. What you need to do is (i guess is stated in the RFC1521) encode base64 the string prior to send the data (if is the subject). You can have plenty of examples (most on PHP) doing a simple google search. For message, just encode it

RE: Generating email in different languages (Net::SMTP and Simplified Chinese)?

2003-10-23 Thread Michael Krygowski
. [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 6:16 AM To: '[EMAIL PROTECTED]' Subject: Generating email in different languages (Net::SMTP and Simplified Chinese)? I have been struggling with this for weeks and am no closer to a solution. Any insights would be appreciated. I

Re: Exchange and Net::SMTP::Multipart

2003-09-08 Thread Trevor Joerges [SendMIME Software]
Title: Exchange and Net::SMTP::Multipart For better control over the MIME body parts of a multipart SMTP message trying using MIME:::Entity which is part of the MIME-Tools bundle.   Trevor Joerges - Original Message - From: Vincent Ribeaud To: [EMAIL PROTECTED

RE: Exchange and Net::SMTP::Multipart

2003-09-08 Thread Molumuri, Janardhan
Title: Exchange and Net::SMTP::Multipart Try Mail::Sender module for sending attachments. --janardhan. -Original Message-From: Vincent Ribeaud [mailto:[EMAIL PROTECTED]Sent: Monday, September 08, 2003 12:57 PMTo: [EMAIL PROTECTED]Subject: Exchange and Net::SMTP

Exchange and Net::SMTP::Multipart

2003-09-08 Thread Vincent Ribeaud
Title: Exchange and Net::SMTP::Multipart Greetings, I am trying to use Net::SMTP::Multipart to send emails with attachements. When the attachement is sent, it arrives unidentified (that's my guess), e.g. ATT00026.ATT. Does anyone know how to tell the SMTP server what type of docume

Net::SMTP -> return e-mail on spam list - how to avoid?

2002-10-20 Thread David Jourard
known (HELO www.domain.org) (99.999.999.99) by localhost.localdomain with SMTP; 16 Oct 2002 13:41:34 - From: "Ohio Resource Page" <[EMAIL PROTECTED]> Subject: Registration Confirmation X-eFilter: eFilter/EPS (http://www.inter7.com/efilter) It was configured as follows: my $smtp

Re: NEWBIE: net::smtp::multipart error OR sending attachments viaSMT P

2002-08-21 Thread $Bill Luebkert
Thoenen, Peter Mr. EPS wrote: > Hello everybody, > > Getting the error: Can't locate object method "new" via package > "Net::SMTP::MultiPart" Change all refs from Net::SMTP::MultiPart to Net::SMTP::Multipart ^

NEWBIE: net::smtp::multipart error OR sending attachments via SMTP

2002-08-21 Thread Thoenen, Peter Mr. EPS
Hello everybody, Getting the error: Can't locate object method "new" via package "Net::SMTP::MultiPart" Surprised I am getting the error and can't figure out why. I have all the module requirements and the module installed correctly (see EOM, even tried reinst

Net:::SMTP

2002-06-12 Thread Nigel
The previous thread lead me to look at Net::SMTP::Server.   I just want to set up a simple relay on my PC, so that I don't have to rely on my ISP every time I want to send some mail.   I tried the example given in the POD (reproduced below).  It creates a connection on port 25, and ac

Net::SMTP and system msg

2001-11-21 Thread Kuhnibert
hi, when i create a new Net::SMTP object i do receive the following sytem error C:\temp\reasoncode>perl -MNet::SMTP -e "$n=Net::SMTP->new('194.55.1.1');" Das System kann den angegebenen Pfad nicht finden. this is german for "the system cannot find the specified

RE: Net::SMTP

2001-06-04 Thread Christopher Hahn
Hello, Try: perldoc NET::SMTP Good Luck, Christopher > -Original Message- > From: Redd Liao [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 04, 2001 7:17 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: Net::SMTP > > > >

Re: Net::SMTP

2001-04-27 Thread Charles Pelkey
If memory serves, NET::SMTP is part of the libnet package. --- Charles E. Pelkey C.P. Designs: http://cpdesigns.homeip.net/ [EMAIL PROTECTED] Personal Site: http://cpelkey.homeip.net/ [EMAIL PROTECTED

Error message from Net SMTP

2001-02-14 Thread Doyle Johnson
    Does anyone recognize this and know the solution???   Use of uninitialized value in concatenation (.) at D:/Perl/site/lib/Net/Config.pm line 44.   Thanks   Doyle

RE: Problem about using Net::SMTP to send bulk mail

2000-12-20 Thread John Cope
> From: Michael Cheung <[EMAIL PROTECTED]> > Subject: Problem about using Net::SMTP to send bulk mail > > Now I use Net::SMTP to send bulk mail. > But some times it cause my SMTP server stopping response. > Sometime It stop at 5000 mails, sometime It stop at 2

Re: Net::SMTP

2000-12-07 Thread Philip Newton
you'd have to transmit "\n\n" instead of just "\n" after it. Then lines after that should not be interpreted as part of the header, even if they look like one (start with "Looks-like-a-word: "). Oh, and if you don't mind having a generic "To"