cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: testing for connectivity to the SMTP server using libcurl APIs

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 22 Nov 2012 14:25:43 +0100

On Thu, Nov 22, 2012 at 11:52:39AM +0000, Chandran, Naveen wrote:
>Please let me know if there is a way to test for proper SMTP server
>connectivity using libcurl ‘without actually sending an email’.
>
>Although this could otherwise be done with a simple telnet EHLO (or HELO), I
>would like to know if it can be accomplished using the libcurl API(s).

I'm not sure if it's supported already, but it makes sense to me that the
CURLOPT_NOBODY option could be usurped for this purpose.

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