fkernanwiggerm
New Member
I have a problem to access the url of Mandrill by HTTPS. I need to send mass emails from my sharepoint portal. the client needs to send by HTTPS protocol. Attachment the code use.\[code\] string oMensajeEmailSerializado = JsonConvert.SerializeObject(oMensajeEmail); WebRequest oPeticionWeb = (HttpWebRequest)WebRequest.Create(url); oPeticionWeb.Method = "POST"; ASCIIEncoding oASCIIEncoding = new ASCIIEncoding(); byte[] bytesMensajeEmailSerializado = oASCIIEncoding.GetBytes(oMensajeEmailSerializado); oPeticionWeb.ContentType = "application/x-www-form-urlencoded"; oPeticionWeb.ContentLength = bytesMensajeEmailSerializado.Length; Stream oStream = oPeticionWeb.GetRequestStream(); oStream.Write(bytesMensajeEmailSerializado, 0, bytesMensajeEmailSerializado.Length); oStream.Close(); oPeticionWeb.BeginGetResponse(new AsyncCallback(FinalizacionPeticionWeb), oPeticionWeb);\[/code\]the crash line is \[code\]"Stream oStream = oPeticionWeb.GetRequestStream();"\[/code\]