I want to send logo in the top center of email body in c# winform, Please guide me as I am a new developer.
Here is the code :
AlternateView htmlView = AlternateView.CreateAlternateViewFromString(messageHtml, null, "text/html");
LinkedResource logo = new LinkedResource("d:/logo.jpg");
logo.ContentId = "Companylogo";
htmlView.LinkedResources.Add(logo);
msg.To.Add(myEmail);
msg.From = new MailAddress("[email protected]");
msg.CC.Add(copy);
msg.Subject = (sbj_txt.Text);
msg.AlternateViews.Add(htmlView);
client.Send(msg);
Thanks
Faiza

Nilesh ShahRank #42 · 34.2K reputationPosted Oct 31, 2017, 12:21 PM EDT
Picture
Please see this
screenshot" +Nilesh ShahRank #42 · 34.2K reputationPosted Oct 31, 2017, 10:31 AM EDT
Faiza shafi20 reputationPosted Oct 31, 2017, 11:48 AM EDT
Faiza shafi20 reputationPosted Oct 31, 2017, 1:05 PM EDT
Salvatore J. Cocolicchio
Martin F. Butler, R.A.
Jerome Scanlon, R.A.
" + dt.ToString() + "
" + company + "" + address + "
" + city + ", " + state + " " + pcode + "
Dear " + fullname + "
" + body_txt.Text + "";Please see this screenshot
" + @"Nilesh ShahRank #42 · 34.2K reputationPosted Oct 31, 2017, 1:14 PM EDT
Faiza shafi20 reputationPosted Nov 2, 2017, 2:32 PM EDT
Nilesh ShahRank #42 · 34.2K reputationPosted Nov 3, 2017, 4:18 AM EDT
Faiza shafi20 reputationPosted Nov 3, 2017, 5:52 AM EDT