Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: SMTP Email problems

by arc_of_descent (Hermit)
on Jun 15, 2009 at 16:02 UTC ( #771697=note: print w/replies, xml ) Need Help??

in reply to SMTP Email problems

There's a Debug parameter available which might help you out.

my $smtp = Net::SMTP->new($$ref_host_em, Debug => 1);


Replies are listed 'Best First'.
Re^2: SMTP Email problems
by merrymonk (Friar) on Jun 16, 2009 at 16:37 UTC
    Thanks for that. I have added the debug and got the output below.
    Sadly it did not help a lot and even confused me
    because I got the same messages about SMTP authentication when it was both 'on' and 'off'.
    Perhaps the last message about Unexpected EOF on command channel
    is the one I sohuld be thinking about.
    Any thoughts on this will be welcome!

    send_em no attachments
    Net::SMTP>>> Net::SMTP(2.29)
    Net::SMTP>>> Net::Cmd(2.26)
    Net::SMTP>>> Exporter(5.58)
    Net::SMTP>>> IO::Socket::INET(1.29)
    Net::SMTP>>> IO::Socket(1.29)
    Net::SMTP>>> IO::Handle(1.25)
    Net::SMTP=GLOB(0x1d66690)<<< 220 ESMTP
    Net::SMTP=GLOB(0x1d66690)>>> EHLO localhost.localdomain
    Net::SMTP=GLOB(0x1d66690)<<< 250-PIPELINING
    Net::SMTP=GLOB(0x1d66690)<<< 250 8BITMIME
    send_em smtp <Net::SMTP=GLOB(0x1d66690)>
    Net::SMTP=GLOB(0x1d66690)>>> MAIL FROM:<correct e-mial address>
    Net::SMTP=GLOB(0x1d66690)<<< 530 authentication required - "Your email could not be sent.</br To fix this you must make a simple change to your email (known as SMTP authentication).
    For advice visit"
    send_em A en <0> <The operation completed successfully.
    > result of smtp send ma <>
    Net::SMTP=GLOB(0x1d66690)>>> RCPT TO:<correct e-mial address>
    Net::SMTP: Unexpected EOF on command channel at email-jun09-b.pz line 159
    send_em B en <6> <The handle is invalid.
    > result of smtp send ma <> to <0>

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://771697]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2017-07-21 04:21 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (318 votes). Check out past polls.