Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Email::Send succeeds with "unknown user"

by ides (Deacon)
on Jan 12, 2008 at 22:11 UTC ( #662116=note: print w/replies, xml ) Need Help??

in reply to Email::Send succeeds with "unknown user"

This is the nature of E-mail. Your SMTP server will accept the message for delivery regardless if the recipient exists, because it hasn't even attempted to send it on yet, and this is the only "error" you can retrieve from Email::Send. You'll have to watch for the bounce messages via another method.

Also, if you are using SMTP to the same sendmail ( the one you were forking ) and aren't reusing the connection for multiple messages then you haven't reduce load, you've just changed where you're forking.

Frank Wiles <>

  • Comment on Re: Email::Send succeeds with "unknown user"

Replies are listed 'Best First'.
Re^2: Email::Send succeeds with "unknown user"
by Cagao (Monk) on Jan 12, 2008 at 22:24 UTC
    I thought Email::Send::SMTP was trying to connect to the remote host to deliver it directly, not connecting to the SMTP server on the localhost? If that's the case, would anyone recommend a module to attempt delivery directly?
      You can (in fact, it looks like you must) specify which SMTP server to connect to.

      From the docs (somewhat broken English, but the meaning is clear):

      The first invocation of send requires an SMTP server arguments.
        no doubt it uses localhost by default, or Email::Send makes that choice, i haven't set it explicitly.

        When I sid i wanted to reduce the load, our code currently opens a pipe to sendmail.

        Doesn't the SMTP method atleast communicate with the sendmail daemon? rather than starting a new process?

      Everyone relies on an MTA like Sendmail to deliver their E-mail. If you want to "deliver it directly" as you say, you will need to do a DNS look up for the MX server(s) for each domain and attempt to send to each MX ( in order ) until one of them accepts. If they don't accept you'll need to etiher just not care about that and move on to your next receipient, or queue it up for later delivery.... btw this is exactly what Sendmail is doing for you.

      Frank Wiles <>

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-02-20 22:35 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (304 votes). Check out past polls.