i'm working on a aplication for sending emails. I started working with libcurlnet library, and this is the code i got at the moment:
Curl.GlobalInit((int)CURLinitFlag.CURL_GLOBAL_ALL);
Easy easyHandle=new Easy();
easyHandle.SetOpt(CURLoption.CURLOPT_URL, "smtp.gmail.com");
According to this example(smtp-mail), i could use CURLOPT_MAIL_FROM and CURLOPT_MAIL_RCPT. Like this:
easyHandle.SetOpt(CURLoption.CURLOPT_MAIL_FROM, "[email protected]");
But it doesn't work. It does not contain a definition for CURLOPT_MAIL_FROM. Does anyone worked with C# and LibCurlNet library? Help me please.
I think you'll find using MailKit far simpler to use than LibCurlNet. There are NuGet packages on nuget.org as well: http://www.nuget.org/packages/MailKit/