How do I get around this annoying feature! What am I doing wrong?
Your help will be greatly appreciated.I have been perusing tons of documentation and even rewrote my code, but still nothing.
I am thinking of this: is there any way to display the contents of a HTML page on the body? Essentially, this is what I'm doing. I just had a bunch of HTML tags in my body of the mailMessage.
Your help will be greatly appreciated.
Hi,
Dim objMM As New System.Web.Mail.MailMessage
objMM.BodyFormat = Mail.MailFormat.Html
More info
HTH
shaji:
Thanks for your reply. I already have that code in my page. How can I include a URL has the whole body of the email message, that is what I am looking for.
Can anyone help?
OK -- this is what I've been noticing with my mail application. When I attach an HTML body to my MailMessage .Body section and the email retrieves email addresses from a database via a datareader, the emails themselves come back with 'garbage' displayed as random '!' marks in my text.
If I put the same HTML Body in an HTML document by itself, the format is beautiful, clean, and what I'm looking for.
So this brings me to conclude that somehow, the server is throwing in some 'garbage' into the body of my MailMessage .Body. Thus now, I have come to the conclusion that I can't alleviate this problem since it seems to be out of my hands.
I was thinking there must be a way to have the Body of the email to display the web page, i.e. that HTML document.
Please help.
Hi net123,
Try String.Replace() function.
YourMailBody.Replace("!", "")
HTH
Maybe your server is converting some caracter he does'nt understand to a "!"
Can you see a pattern on where those "!" are added ?
0 comments:
Post a Comment