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 ShahPosted Oct 31, 2017, 4:21 PM
Picture
Please see this
screenshot" +Faiza shafiPosted Nov 3, 2017, 9:52 AM
Nilesh ShahPosted Nov 3, 2017, 8:18 AM
Faiza shafiPosted Nov 2, 2017, 6:32 PM
Nilesh ShahPosted Oct 31, 2017, 5:14 PM
Faiza shafiPosted Oct 31, 2017, 5:05 PM
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
" + @"Faiza shafiPosted Oct 31, 2017, 3:48 PM
Nilesh ShahPosted Oct 31, 2017, 2:31 PM