Author: danieldiesel12 | Posted on: 10/4/2010 5:44:15 AM | Views : 396

Hi!


I do run System.net.Mail on my web pages to send email confirmations. For those who doesn´t have an email I would like to print the letter to a printer.
Below is my code to send a body to the email. It works great. How ever. Could I somehow add a function to my page so when customer has no email the page instead prints the code to our network printer?



Dim htmlView As AlternateView = AlternateView.CreateAlternateViewFromString(" <center> <img src=cid:companylogo> </center><br><br> " & fornamn & " " & efternamn & " " & "<br><br> " & adressen & "<br><br> " & "" & postnummer & " " & "" & postorten & "<br><br><p><strong>Välkommen som medlem i XXXX! </strong></p><p><str ...

Go to the complete details ...