curl / Mailing Lists / curl-library / Single Mail

curl-library

Curl in visual studio

From: Mitesh Gulecha via curl-library <curl-library_at_cool.haxx.se>
Date: Sat, 15 Jul 2017 23:00:38 +0530

Hello Sir/Madam,
I am Mitesh Gulecha.
Before few days i came across this code

int main(void)
{
 char b[100];
gets_s(b);

 char* command = "curl smtp://smtp.gmail.com:587 -v --mail-from \"
Miteshgulecha_at_gmail.com\" --mail-rcpt \" $b \" --ssl -u
Miteshgulecha_at_gmail.com:Password -T \"mail1.txt\" -k --anyauth";

WinExec(command, SW_HIDE);
return 0;
}

i used this in visual studio.
I actually wanted to creat application in c++ that takes receiver's mail as
input and send message on it(in this case i use the variable 'b')....
Can you please help me out...
Thank You

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-07-15