What is the content-transfer encoding when sending emails via C # or is there no difference?

I am sending emails via C # below

MailMessage mail = new MailMessage();
mail.To.Add(txtTestEmail.Text);
mail.From = new MailAddress("noreply@monstermmorpg.com", "MonsterMMORPG");
mail.Subject = "Test email from MonsterMMORPG";
mail.Body = "This is test email sent from MonsterMMORPG";
mail.IsBodyHtml = true;
mail.SubjectEncoding = System.Text.Encoding.UTF8;
mail.BodyEncoding = System.Text.Encoding.UTF8;
SmtpClient smtp = new SmtpClient();
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.UseDefaultCredentials = true;
smtp.Host = "127.0.0.1";
smtp.Port = 25;
smtp.Send(mail);

      

The default is base64 I assume. But I am wondering which Content-Transfer-Encoding is best for sending email using a windows server 2008 r2 smtp server.

Is there any difference between different Content-Transfer-Encodings. Thank.

+3
content-type c # email smtp transfer-encoding


source to share


No one has answered this question yet

Check out similar questions:

86
Gmail SMTP debug: "login to your web browser" error
79
Sending email with attachments from C #, attachments - as part 1.2 in Thunderbird
8
SMTP error 5.7.57 when trying to send email through Office 365
6
Will using Content-Transfer-Encoding: base64 for text and html-email have any problems?
3
Using Asp.Net for SendAsync emails but Page is still waiting?
2
Send MIME encoded file as email in C #
1
Reusing SMTP connection to send emails via java
1
how to send email via SMTP using PHP
1
We do not transfer non-local mail, mailbox name is not allowed. What does it mean
0
how to set Content-Transfer-Encoding as 8-bit in asp.net



All Articles
Loading...
X
Show
Funny
Dev
Pics