cURL / Mailing Lists / curl-library / Single Mail


Re: issue while using SMTP

From: Michael Wood <>
Date: Wed, 25 Aug 2010 12:03:25 +0200

On 25 August 2010 10:05, Harshdeep Singh <> wrote:
> Hi,
>    I am trying to send a mail using SMTP with libcurl. I manage to do it
> using command line option i use the command:
> curl --ssl --mail-from "<>" --mail-rcpt
> "<>" -v --url smtp:// -u harshcalsoft -T
> text


curl --ssl --mail-from "<>" --mail-rcpt
"<>" -v --url smtp:// -u harshcalsoft
-T text --libcurl smtp-example.c

I haven't tried it with SMTP before, but the --libcurl option is very
cool and should provide you with code that you can tweak and compile
to do the same as the curl command.

Michael Wood <>
List admin:
Received on 2010-08-25