cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SMTP recipient issues

From: William Betts <william.betts_at_gmail.com>
Date: Wed, 6 Jun 2012 12:50:43 -0700

On Wed, Jun 6, 2012 at 12:07 PM, Steve Holme <steve_holme_at_hotmail.com>wrote:

> Hi Dan,
>
> > I've been working with cURL for about 2 weeks and I've been scouring
> > the web looking for the solution to my problem to no avail- I'm sorry
> > if I missed the answer somewhere along the way.
>
> Welcome to curl and libcurl ;-)
>
> > My problem arises when there are multiple recipients of an email
> > and one of the recipients is invalid- it would seem that the behaviour
> > of cURL is designed to stop sending the message immediately- which
> > becomes an issue for the application I am designing, which expects a
> > less brittle implementation.
>
> I've been developing for curl and libcurl for about 12 months now (since
> v7.21.7) and kind of look after the SMTP and POP3 modules after adding a
> fair bit of functionality to both of them, however, some of the other guys
> around here are more experienced than me and maybe able to give you a
> better
> answer.
>
> > I am curious if this is a known behavior of cURL, if it was intentional,
> > and if I can get around it.
>
> I'm kind of guessing what the problem might be at the moment as it largely
> depends what your mail server returns in response the MAil RCPT command.
>
> Are you able to generate verbose logging with Curl_easy_setopt(curl,
> CURLOPT_VERBOSE, 1) and post the results?
>
> Cheers
>
> Steve
>
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

HI Steve,

If libcurl will ditch the entire message because of a failed RCPT TO
command it should be listed as a bug. If the SMTP session has at least 1
valid recipient the transaction should finish. I'll check it out in a bit
and see if that's the case on my end.

Best Regards,
William

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-06-06