curl-library
Re: issue while using SMTP
From: Michael Wood <esiotrot_at_gmail.com>
Date: Wed, 25 Aug 2010 12:03:25 +0200
Date: Wed, 25 Aug 2010 12:03:25 +0200
On 25 August 2010 10:05, Harshdeep Singh <harshcalsoft_at_gmail.com> 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 "<harshcalsoft_at_gmail.com>" --mail-rcpt
> "<harshnitc_at_gmail.com>" -v --url smtp://smtp.gmail.com -u harshcalsoft -T
> text
Try:
curl --ssl --mail-from "<harshcalsoft_at_gmail.com>" --mail-rcpt
"<harshnitc_at_gmail.com>" -v --url smtp://smtp.gmail.com -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 <esiotrot_at_gmail.com> ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-08-25