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
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
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);
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
__
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
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
- 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
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
- 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
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
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
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
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
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
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 => "
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
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
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&
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:
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
> 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
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:/
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
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,
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
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:
> $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
$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
[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
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
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
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
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
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
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
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
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
. [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
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
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
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
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
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
^
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
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
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
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
>
>
> >
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
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
> 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
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"
51 matches
Mail list logo