Simple Mail Transfer Protocol (SMTP) is the standard protocol for email services on a TCP/IP network. SMTP provides the ability to send and receive email messages. SMTP is an application-layer protocol that enables the transmission and delivery of email over the Internet.
Question:System.Net.Mail.SmtpException: Transaction failed. The server response was: Rejected - Message containing bare LF's.
Description:I am sending email through my code using c#,and the email functionality working fine on my local environment but when deployed on live environment it started giving me following exception, System.Net.Mail.SmtpException: Transaction failed. The server response was: Rejected - Message containing bare LF's. I am sending html formatted email.
Posted by: Khalid Abbas | Posted on: Oct 12, 2018
Question:Getting the error "Server does not support secure connections" while sending emails by using c#
Description:I have used a method for sending email that was working fine what I have used gmail email address but now testing purpose I have changed the email address not gmail this time and now getting the error "Server does not support secure connections" while sending emails.
Posted by: Khalid Abbas | Posted on: Sep 28, 2018
Question:unable to access same MemoryStream multiple times, getting the MemoryStream closed on second attempt in C#?
Description:I am receiving a MemoryStream from a method and then I have to send it in email as attachment multiple times, i.e I have to utilise the same MemoryStream multiple time, it is working perfectly fine at first attempt but when I try to access it again it gives me error. is there a way to store the MemoryStream separately for the purpose? My current code looks like MemoryStream memoryStream = getMemoryStream(); //following line works fine SendEmail(memoryStream); //but following line throws error SendEmail(memoryStream);
Posted by: Umer khan | Posted on: Sep 11, 2018