curl-library
RE: testing for connectivity to the SMTP server using libcurl APIs
From: Steve Holme <steve_holme_at_hotmail.com>
Date: Thu, 22 Nov 2012 12:36:24 +0000
Date: Thu, 22 Nov 2012 12:36:24 +0000
Hi Naveen,
> Please let me know if there is a way to test for proper SMTP server
> connectivity using libcurl 'without actually sending an email'.
You can do this with the CURLOPT_CONNECT_ONLY option and setting it to 1.
> 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).
Please note that the connect only option will also log into the SMTP server
after the EHLO if you supply authentication details.
Kind Regards
Steve
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-11-22