On 25 August 2010 10:05, Harshdeep Singh <[email protected]> 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 "<[email protected]>" --mail-rcpt
> "<[email protected]>" -v --url smtp://smtp.gmail.com -u harshcalsoft -T
> text

Try:

curl --ssl --mail-from "<[email protected]>" --mail-rcpt
"<[email protected]>" -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 <[email protected]>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to