Author: danieldiesel12 | Posted on: 7/13/2010 5:40:13 PM | Views : 523

Hi!


I´m using System.Net.Mail method to send email in html.I have tried setting different encodings to the body without any luck. Is it cause I´m using alternative view?
I have changed all my html code for åäö into å, ö etc which does the trick for the text. However I do have a webform with name and address. The html-body picks up the text into the emailbody. Here´s the problem. If anme or address contains swedish åäö I´ll got some weired signs instead. i did try using stringreplace but I can only manage to replace one letter which does not help me that much since I have at least three letters to replace.


Do anyone have a hint how to make åäö character to work in System.Net.Mail and AlternateView? Either in setting Body encoding or a string replace or of coarse anything else?


Imports System.Net.Mail Imports System.IO Partial Class srk_100414 Inherits System.Web. ...

Go to the complete details ...