How to send Newsletter email with images in asp.net? -


i trying send newsletter images, able send email not getting images, tried search lots of solution not working.please check link simple newsletter

when trying email newsletter, getting newsletter without images. put hard coded images in html file, <img src=http://www.abc.com/images/xyz.jpg /> here simple code sending email :

mailmessage mymail;      using (streamreader reader = file.opentext(server.mappath("newsletter.html"))) // path      {                                                         // html file         mymail = new mailmessage();         mymail.from = new mailaddress("email@domain.com.au");         mymail.subject = "test news letter";         mymail.to.add("se@yahoo.com.au");         mymail.isbodyhtml = true;          mymail.body = reader.readtoend();  // load content file...      }     smtpclient smtp = new smtpclient("xx.xx.xx.y", 25);     smtp.usedefaultcredentials = true;      networkcredential cred = new networkcredential("email@domain.com.au", "hakoo");     smtp.deliverymethod = system.net.mail.smtpdeliverymethod.network;     smtp.credentials = cred;     smtp.send(mymail); 

can me solve issues?

thanks,

hakoo desai.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -