473,466 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ASP - broken html tag displayed when I send email with html body

5 New Member
Hi folks,

I encounter an problem when my asp page send an email with html body. I successfully receive the mail and most of the contents are correctly displayed except some html tag is broken and is displayed in the html page. I captured the html source of the email content and pasted it into notepad (without word wrap). I realized the tag is broken up into separate line (e.g. "<" is on the first line and "td>" is on the second line), which I believe that may fail to parse the html tag. I do not know where could I start to resolve this problem.

I am using Dundas Mailer and I don't know if this may be part of the problem. Please share your thought and any help is greatly appreciated. Below is the code snippet that I send my mail, very simple and nothing fancy. The html content is hugh and dynamically generated; therefore, I do not specify it in my code here. Also don't worry about some variables are not being declared as these variables are properly declared somewhere else. Thanks a lot.

Set objMail = Server.CreateObject("Dundas.Mailer")
objMail.Subject = "Assessment: " + Request.form("Name")
objMail.FromAddress = Request.form("assessorEmail")
objMail.TOs.Add Email
if (assessorEmail <> "") then
objMail.TOs.Add assessorEmail
end if
objMail.HtmlBody = "<html><head></head><body></body></html>"
objMailer.SMTPRelayServers.Add "10.10.10.10"
objMail.SendMail
set objMail = nothing
May 12 '06 #1
0 2231

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: D. Alvarado | last post by:
Hello, I have signed up a for a Google Gmail account. I sent myself some PHP-generated HTML emails from two different machines using this code: $to = "dave@gmail.com"; $id = 1234; $from =...
8
by: Jonathan | last post by:
Hi, I have to use the nl2br function in the asp file, luckly I got this code from a site. What I need done is to display textbox content the way it was typed/pasted i.e. with paragraph breaks and...
4
by: Fergus O'Shea | last post by:
I have some text that appears in a Database. This text includes HTML(e.g. <br> tags). I also have a Webpage that makes an XML call to that database. But when the text is displayed on the page,...
5
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it...
7
by: cj | last post by:
If anyone can help me with this, I would reeeeally appreciate it: I am trying to send an email that contains a 'webpage" within it. I have seen this done a million times, like in the emails I get...
0
by: poohgc | last post by:
ASP, VBscript, IIS 6 I have a form page that people fill out and push submit. When they push submit, the information is stored in a database in two different tables. You are then directed to a...
0
by: Rey | last post by:
Howdy all. Am using visual web developer 2005 (vb), xp pro sp2. In testing of the system.net.mail to send email from an aspx page where I'm pulling the email contents from a textbox, find that...
5
by: chadschultz | last post by:
Hi there! A friend of mine asked about how to have a line of HTML be written based on whether or not a certain file exists in the server. So if the file is there, a line of HTML is printed; if the...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.