Link to home
Start Free TrialLog in
Avatar of rocky050371
rocky050371

asked on

Read File into HTML body of email

I am sending HTML emails that read their contents from a HTML file, I have set the email to send as HTML but am unsure how to assign the contents


   Using fs As New FileStream(attachmentList(i).SavedDFilename, FileMode.Open, FileAccess.Read)
                                                                    mail.Body = ??????
                                                                    server.Send(mail)
                                                                End Using
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

just set the IsBodyHtml property to true. Check http://emoreau.com/Entries/Articles/2007/09/Using-SystemNetMail.aspx
Avatar of rocky050371
rocky050371

ASKER

Its the file part I am interested in
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks