|
| |
|
|
Valaire
Posts: 99 From: New York Status: offline
|
Random Outputting Error in E-mail - 8/23/2002 22:48:33
I' m having a problem, and to make matters worse, the output seems to be randomized so I am having a hard time pinpointing the cause. I have an ASP page that opens up a database connection and retrieves a recordset and sends information about that recordset in a CDONTS e-mail. Said e-mail is HTML formatted and has different color schemes. When I test the e-mail, sometimes there are unexplained output problems. I' ve never gotten the e-mail to look bug-free, it' s always got something wrong. Sometimes it outputs part of the asp code, sometimes a font bleeds where it shouldn' t, sometimes a line break doesn' t insert itself. I' ve had about 3-4 different bug ' states' , and it seems to change based on time. The code itself is all uniform. I' m thinking it has to do with the html of the CDONTS... I' m having the problem on 3 clients all using Outlook. Here is the entire code for the page: <html>
<head>
<meta http-equiv=" Content-Language" content=" en-us" >
<meta http-equiv=" Content-Type" content=" text/html; charset=windows-1252" >
<meta name=" GENERATOR" content=" Microsoft FrontPage 5.0" >
<meta name=" ProgId" content=" FrontPage.Editor.Document" >
<title>APXOnline Inquiry Database - E-mail Confirmation</title>
</head>
<body bgcolor=" #00CC99" >
<%
Dim SendToEmail, SendFromName, SendToName, Notes, ID, objConn, objRS, strSQL, CDONTSMail, Msg
ID = Session(" EmailID" )
Set objConn = Server.CreateObject(" ADODB.Connection" )
objConn = Application(" Inquiry_ConnectionString" )
Set objRS = Server.CreateObject(" ADODB.Recordset" )
strSQL = " SELECT * FROM External WHERE ID = " & ID
objRS.Open strSQL, objConn
SendToEmail = Request.Form(" RecipientEmail" )
SendFromName = Request.Form(" SenderName" )
SendToName = Request.Form(" RecipientName" )
Notes = Request.Form(" Notes" )
Set CDONTSMail = CreateObject(" CDONTS.NewMail" )
CDONTSMail.From = " apx@apxonline.com"
CDONTSMail.To = SendToEmail
CDONTSMail.Subject = " APXOnline Inquiry"
Msg = " <HTML><HEAD><TITLE>APXOnline Inquiry</TITLE></HEAD><BODY>"
Msg = Msg & " An APXOnline Inquiry has been forwarded to you by " & SendFromName & " at APX Technologies, Inc. The following notes have been included by the sender:<br><br>"
Msg = Msg & " <I>" & Notes & " </I><br><br><hr><font size=6>" & Request.Form(" Form" ) & " APXOnline Inquiry -- " & objRS(" Timestamp" ) & " </font><br><br>"
Msg = Msg & " <B><Font Color=Purple>Company:</Font> <Font Color=DarkOrchid></B>" & objRS(" Company" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Address 1:</Font> <Font Color=DarkOrchid></B>" & objRS(" Address" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Address 2:</Font> <Font Color=DarkOrchid></B>" & objRS(" City" ) & " , " & objRS(" State" ) & " " & objRS(" Zip" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Country:</Font> <Font Color=DarkOrchid></B>" & objRS(" Country" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Name:</Font> <Font Color=DarkOrchid></B>" & objRS(" Name" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Title:</Font> <Font Color=DarkOrchid></B>" & objRS(" Title" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Phone:</Font> <Font Color=DarkOrchid></B>" & objRS(" Phone" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Fax:</Font> <Font Color=DarkOrchid></B>" & objRS(" Fax" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>E-mail:</Font> <Font Color=DarkOrchid></B>" & objRS(" Email" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Contact:</Font> <Font Color=DarkOrchid></B>" & objRS(" Contact" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Product:</Font> <Font Color=DarkOrchid></B>" & objRS(" New or Existing" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Needed:</Font> <Font Color=DarkOrchid></B>" & objRS(" When Needed" ) & " </Font><BR><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Primary Input Voltage:</Font> <Font Color=CornflowerBlue></B>" & objRS(" P1 Input Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Primary Input Frequency:</Font> <Font Color=CornflowerBlue></B>" & objRS(" P1 Input Freq" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Universal Minimum Voltage:</Font> <Font Color=CornflowerBlue></B>" & objRS(" P2 Min Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Universal Maximum Voltage:</Font> <Font Color=CornflowerBlue></B>" & objRS(" P2 Max Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Class:</Font> <Font Color=CornflowerBlue></B>" & objRS(" Class" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>1st Output Voltage:</Font> <Font Color=CornflowerBlue></B>" & objRS(" S1 Output Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>1st Output Current:</Font> <Font Color=CornflowerBlue></B>" & objRS(" S1 Output Current" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>1st Minimum Load:</Font> <Font Color=CornflowerBlue></B>" & objRS(" S1 Min Load" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>2nd Output Voltage:</Font> <Font Color=CornflowerBlue></B>" & objRS(" S2 Output Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>2nd Output Current:</Font> <Font Color=CornflowerBlue></B>" & objRS(" S2 Output Current" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>2nd Minimum Load:</Font> <Font Color=CornflowerBlue></B>" & objRS(" S2 Min Load" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>3rd Output Voltage:</Font> <Font Color=CornflowerBlue></B>" & objRS(" S3 Output Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>3rd Output Current:</Font> <Font Color=CornflowerBlue></B>" & objRS(" S3 Output Current" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>3rd Minimum Load:</Font> <Font Color=CornflowerBlue></B>" & objRS(" S3 Min Load" ) & " <BR>"
Msg = Msg & " <B><Font Color=DarkBlue>4th Output Voltage:</Font> <Font Color=CornflowerBlue></B>" & objRS(" S4 Output Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>4th Output Current:</Font> <Font Color=CornflowerBlue></B>" & objRS(" S4 Output Current" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>4th Minimum Load:</Font> <Font Color=CornflowerBlue></B>" & objRS(" S4 Min Load" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Ripple Max:</Font> <Font Color=CornflowerBlue></B>" & objRS(" Ripple Max" ) & " <BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Percentage Overall:</Font> <Font Color=CornflowerBlue></B>" & objRS(" Overall" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Noise:</Font> <Font Color=CornflowerBlue></B>" & objRS(" VPP" ) & " <BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Configuration:</Font> <Font Color=CornflowerBlue></B>" & objRS(" Configuration" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Length:</Font> <Font Color=CornflowerBlue></B>" & objRS(" Length" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Width:</Font> <Font Color=CornflowerBlue></B>" & objRS(" Width" ) & " v<BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Height:</Font> <Font Color=CornflowerBlue></B>" & objRS(" Height" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Unit:</Font> <Font Color=CornflowerBlue></B>" & objRS(" Unit" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Output Connector Type:</Font> <Font Color=CornflowerBlue></B>" & objRS(" Output Connector Type" ) & " </Font><BR><BR>"
Msg = Msg & " <B><Font Color=Crimson>Application:</Font> </B>" & " <Font Color=Red>" & objRS(" Application" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Crimson>Quantity:</Font> <Font Color=Red></B>" & objRS(" Quantity" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Crimson>Environmental Conditions:</Font> <Font Color=Red></B>" & objRS(" Environmental Conditions" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Crimson>Safety Agency Requirements:</Font> <Font Color=Red></B>" & objRS(" Safety Agency Reqs" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Crimson>Notes:</Font> <Font Color=Red></B>" & objRS(" Notes" ) & " </Font><BR>"
Msg = Msg & " </BODY></HTML>"
CDONTSMail.Body = Msg
CDONTSMail.BodyFormat = 0
CDONTSMail.MailFormat = 0
CDONTSMail.Send
Set CDONTSMail = Nothing
%>
<p align=" center" > </p>
<p align=" center" > </p>
<p align=" center" > </p>
<p align=" center" > </p>
<p align=" center" > </p>
<p align=" center" ><font size=" 4" >Your e-mail has been sent to <%=SendToName%> at <Font Color=" DarkBlue" ><%=SendtoEmail%></Font> regarding <%=objRS(" Name" )%>' s APXOnline Inquiry.</p>
<p align=" center" > </p>
<p align=" center" > </p>
<p align=" center" ><a href=" ../externalDB.asp" >
<img border=" 0" src=" ../../Images/Shared/back.jpg" ></a></p>
</body>
</html> I am new to ASP scripting, and this was my first major undertaking, so maybe I am missing something fundamental. Also of note, if I try to close the objConn and objRS conventionally, I get an error. I think there is a special syntax for doing it in Frontpage...either that or maybe it automatically does it, but I don' t know. The output of the e-mail should look something like this:
An APXOnline Inquiry has been forwarded to you by Petey Pablo at APX Technologies, Inc. The following notes have been included by the sender:
Hi, these are notes. Aren' t they cool? I think they are. You should too, because they are. You can put special instructions here for the distributor or representative that you are e-mailing and he or she will read this in addition to the inquiry you are sending them. Doesn' t that sound like fun? I think so.
--------------------------------------------------------------------------------
External Power APXOnline Inquiry -- 8/20/2002 5:21:25 PM
Company: APX Tech
Address 1: N/A
Address 2: Westbury, NY 11590
Country: USA
Name: < >Chad Baum
Title: Moo Man
Phone: asdf
Fax: asdf
E-mail: asdf
Contact: Fax
Product: Existing
Needed: 3_to_6_Months
Primary Input Voltage: N/A
Primary Input Frequency: N/A
Universal Minimum Voltage: N/A
Universal Maximum Voltage: N/AClass: N/A
1st Output Voltage: N/A
1st Output Current: N/A
1st Minimum Load: N/A
2nd Output Voltage: N/A
2nd Output Current: N/A
2nd Minimum Load: N/A
3rd Output Voltage: N/A
3rd Output Current: N/A
3rd Minimum Load: N/A
4th Output Voltage: 4th Output Current: N/A
4th Minimum Load: N/A
Ripple Max: N/A
Percentage Overall: N/A
Noise: N/A
Configuration: N/A
Length: N/A
Width: N/Av
Height: N/A
Unit: N/A
Output Connector Type: N/A
N/A
Quantity: N/A
Environmental Conditions: N/A
Safety Agency Requirements: N/A
Notes: N/A
Some of the lines are messed up, yet they are identical in the code, and they change from time to time. Thanks for your help... -Chad
|
|
|
|
junhow
Posts: 109 Joined: 12/18/2001 From: MS USA Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 0:37:04
I glanced over you code and didn' t see anything obvious. Just curious if your user might be entereing text that includes any keywords, ' <' or ' /' characters that might be thowing the html off?
|
|
|
|
Valaire
Posts: 99 From: New York Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 0:42:52
I' m filling out the form myself for testing purposes and am not using any special characters. Am trying what Spooky said now... I actually added in the </Fonts> to fix one problem, and another one came up, I am recalling, so I think it' s my HTML syntax... hopefully this will squelch it. I' ll post an update in a few minutes, since this is going to take some extensive typing. :P PS -- This sounds dumb I know, but does anyone know why when I view my post in my IE6 browser at home, it doesn' t line break at the edge of my screen, so my sentences become one big horizontal scroll. When I preview, it shows correctly, but when I post it' s different. Does everyone see it like that or is it my browser, and if so, I can' t find what kind of browser setting would cause that... Thanks. :P
< Message edited by Valaire -- 8/23/2002 12:46:06 AM >
|
|
|
|
Valaire
Posts: 99 From: New York Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 0:58:01
Okay...still having problems. Folllowed your suggestion, Spooky, and got a slightly different error, but error nonetheless: Company: APX Tech
Address 1: N/A
Address 2: Westbury, NY 11590
Country: USA
>Chad Baum
Title: Moo Man
Phone: asdf
Fax: asdf
E-mail: asdf
Contact: Fax
Product: Existing
Needed: 3_to_6_Months
Primary Input Voltage: N/A
Primary Input Frequency: N/A
Universal Minimum Voltage: N/A
Universal Maximum Voltage: Class: N/A
1st Output Voltage: N/A
1st Output Current: N/A
1st Minimum Load: N/A
2nd Output Voltage: N/A
2nd Output Current: N/A
2nd Minimum Load: N/A
3rd Output Voltage: N/A
3rd Output Current: N/A
3rd Minimum Load: N/A
4th Output Voltage:N/A
4th Output Current: N/A
4th Minimum Load: N/A
Ripple Max: N/A
Percentage Overall: N/A
Noise: N/A
Configuration: N/A
Length: N/A
Width: N/Av
Height: N/A
Unit: N/A
Output Connector Type: N/A
< ation: N/A
Quantity: N/A
Environmental Conditions: N/A
Safety Agency Requirements: N/A
Notes: N/A
Here' s my updated code: Msg = Msg & " <B><Font Color=Purple>Company:</Font></B> <Font Color=DarkOrchid>" & objRS(" Company" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Address 1:</Font></B> <Font Color=DarkOrchid>" & objRS(" Address" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Address 2:</Font></B> <Font Color=DarkOrchid>" & objRS(" City" ) & " , " & objRS(" State" ) & " " & objRS(" Zip" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Country:</Font></B> <Font Color=DarkOrchid>" & objRS(" Country" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Name:</Font></B <Font Color=DarkOrchid>>" & objRS(" Name" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Title:</Font></B> <Font Color=DarkOrchid>" & objRS(" Title" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Phone:</Font></B> <Font Color=DarkOrchid>" & objRS(" Phone" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Fax:</Font></B> <Font Color=DarkOrchid>" & objRS(" Fax" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>E-mail:</Font></B> <Font Color=DarkOrchid>" & objRS(" Email" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Contact:</Font></B> <Font Color=DarkOrchid>" & objRS(" Contact" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Product:</Font></B> <Font Color=DarkOrchid>" & objRS(" New or Existing" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Needed:</Font></B> <Font Color=DarkOrchid>" & objRS(" When Needed" ) & " </Font><BR><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Primary Input Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" P1 Input Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Primary Input Frequency:</Font></B> <Font Color=CornflowerBlue>" & objRS(" P1 Input Freq" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Universal Minimum Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" P2 Min Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Universal Maximum Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" P2 Max Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Class:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Class" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>1st Output Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S1 Output Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>1st Output Current:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S1 Output Current" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>1st Minimum Load:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S1 Min Load" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>2nd Output Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S2 Output Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>2nd Output Current:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S2 Output Current" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>2nd Minimum Load:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S2 Min Load" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>3rd Output Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S3 Output Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>3rd Output Current:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S3 Output Current" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>3rd Minimum Load:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S3 Min Load" ) & " <BR>"
Msg = Msg & " <B><Font Color=DarkBlue>4th Output Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S4 Output Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>4th Output Current:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S4 Output Current" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>4th Minimum Load:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S4 Min Load" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Ripple Max:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Ripple Max" ) & " <BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Percentage Overall:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Overall" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Noise:</Font></B> <Font Color=CornflowerBlue>" & objRS(" VPP" ) & " <BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Configuration:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Configuration" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Length:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Length" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Width:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Width" ) & " v<BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Height:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Height" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Unit:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Unit" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Output Connector Type:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Output Connector Type" ) & " </Font><BR><BR>"
Msg = Msg & " <B><Font Color=Crimson>Application:</Font></B> <Font Color=Red>" & objRS(" Application" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Crimson>Quantity:</Font></B> <Font Color=Red>" & objRS(" Quantity" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Crimson>Environmental Conditions:</Font></B> <Font Color=Red>" & objRS(" Environmental Conditions" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Crimson>Safety Agency Requirements:</Font></B> <Font Color=Red>" & objRS(" Safety Agency Reqs" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Crimson>Notes:</Font></B> <Font Color=Red>" & objRS(" Notes" ) & " </Font><BR>"
Msg = Msg & " </BODY></HTML>"
The bold bleeds, and there' s some code showing, and missing text. I' m using Outlook Express... I can very easily send someone a sample e-mail, any takers? :)
|
|
|
|
junhow
Posts: 109 Joined: 12/18/2001 From: MS USA Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 1:12:31
I' ll take a look: jhroberts@megagate.com
|
|
|
|
Valaire
Posts: 99 From: New York Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 1:16:20
Sent. Thanks.
|
|
|
|
junhow
Posts: 109 Joined: 12/18/2001 From: MS USA Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 1:20:10
Looking at the " Name:" issue, you have an extra ' >' in your code.
|
|
|
|
junhow
Posts: 109 Joined: 12/18/2001 From: MS USA Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 1:23:31
I should have been more specific: look after the " Name:" text. There' s a <font statement that has an extra ' >' after the Darkorchid.
|
|
|
|
Valaire
Posts: 99 From: New York Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 1:25:17
I fixed the missing > and extra >, not sure how I could possibly have overlooked that...but it' s still messing up... I' ll send ya another... Here' s the code Msg = Msg & " <B><Font Color=Purple>Company:</Font></B> <Font Color=DarkOrchid>" & objRS(" Company" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Address 1:</Font></B> <Font Color=DarkOrchid>" & objRS(" Address" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Address 2:</Font></B> <Font Color=DarkOrchid>" & objRS(" City" ) & " , " & objRS(" State" ) & " " & objRS(" Zip" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Country:</Font></B> <Font Color=DarkOrchid>" & objRS(" Country" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Name:</Font></B> <Font Color=DarkOrchid>" & objRS(" Name" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Title:</Font></B> <Font Color=DarkOrchid>" & objRS(" Title" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Phone:</Font></B> <Font Color=DarkOrchid>" & objRS(" Phone" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Fax:</Font></B> <Font Color=DarkOrchid>" & objRS(" Fax" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>E-mail:</Font></B> <Font Color=DarkOrchid>" & objRS(" Email" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Contact:</Font></B> <Font Color=DarkOrchid>" & objRS(" Contact" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Product:</Font></B> <Font Color=DarkOrchid>" & objRS(" New or Existing" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Needed:</Font></B> <Font Color=DarkOrchid>" & objRS(" When Needed" ) & " </Font><BR><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Primary Input Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" P1 Input Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Primary Input Frequency:</Font></B> <Font Color=CornflowerBlue>" & objRS(" P1 Input Freq" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Universal Minimum Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" P2 Min Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Universal Maximum Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" P2 Max Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Class:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Class" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>1st Output Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S1 Output Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>1st Output Current:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S1 Output Current" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>1st Minimum Load:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S1 Min Load" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>2nd Output Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S2 Output Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>2nd Output Current:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S2 Output Current" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>2nd Minimum Load:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S2 Min Load" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>3rd Output Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S3 Output Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>3rd Output Current:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S3 Output Current" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>3rd Minimum Load:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S3 Min Load" ) & " <BR>"
Msg = Msg & " <B><Font Color=DarkBlue>4th Output Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S4 Output Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>4th Output Current:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S4 Output Current" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>4th Minimum Load:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S4 Min Load" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Ripple Max:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Ripple Max" ) & " <BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Percentage Overall:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Overall" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Noise:</Font></B> <Font Color=CornflowerBlue>" & objRS(" VPP" ) & " <BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Configuration:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Configuration" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Length:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Length" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Width:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Width" ) & " v<BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Height:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Height" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Unit:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Unit" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Output Connector Type:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Output Connector Type" ) & " </Font><BR><BR>"
Msg = Msg & " <B><Font Color=Crimson>Application:</Font></B> <Font Color=Red>" & objRS(" Application" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Crimson>Quantity:</Font></B> <Font Color=Red>" & objRS(" Quantity" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Crimson>Environmental Conditions:</Font></B> <Font Color=Red>" & objRS(" Environmental Conditions" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Crimson>Safety Agency Requirements:</Font></B> <Font Color=Red>" & objRS(" Safety Agency Reqs" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Crimson>Notes:</Font></B> <Font Color=Red>" & objRS(" Notes" ) & " </Font><BR>"
Msg = Msg & " </BODY></HTML>"
|
|
|
|
junhow
Posts: 109 Joined: 12/18/2001 From: MS USA Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 1:27:33
Looks good over here. I' m using MS Outlook. What appears wrong to you?
|
|
|
|
Valaire
Posts: 99 From: New York Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 1:34:14
quote:
Country: USA Chad Baum Title: Moo Man That should be: quote:
Name: Chad Baum quote:
Universal Minimum Voltage: N/A Universal Maximum Voltage: Class: N/A 1st Output Voltage: N/A That should be: quote:
Universal Maximum Voltage: N/A Class: N/A 1st Output Voltage: N/A And these others which are self explanatory: quote:
Width: N/Av < ation: N/A That' s how it appears to me. I just used MS Outlook instead of Outlook Express with same result... these errors are getting more consisent, so I' m hoping that' s a good thing... I still don' t see anything wrong with my code.
|
|
|
|
junhow
Posts: 109 Joined: 12/18/2001 From: MS USA Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 1:36:36
It' s midnight-thirty over here in my corner of the globe, and my bed is calling me. The only other thing I noticed was a ' v' following the value submitted for the Width field. This may be intended, I dunno. Width:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Width" ) & " v<BR>" . I' ll check in tomorrow to see what you came up with. Excuse me (that was a yawn). G-night.
|
|
|
|
junhow
Posts: 109 Joined: 12/18/2001 From: MS USA Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 1:42:08
Darn forums, I just can' t turn them off. I don' t see it. All of what you mentioned looked good in the email you sent me. Are you sure you' re not looking at an old email?
|
|
|
|
Valaire
Posts: 99 From: New York Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 1:46:47
I would hope not...well there you have it... I' ll let you go to sleep so you can rest up and be ready tomorrow! Heh :). Oh and sorry about the last e-mail, sent it to ya on accident.. I' ll stop..I promise! Thanks.
|
|
|
|
Valaire
Posts: 99 From: New York Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 11:55:33
Not sure what you mean about Name... Name is one of the column' s in my database. My SQL looks like this: strSQL = " SELECT * FROM External WHERE ID = " & ID I just wanted to bring in one recordset that matches ID, which is passed in from the previous page as a session variable.
|
|
|
|
Valaire
Posts: 99 From: New York Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 13:24:16
Just another note... I' ve tried removing the lines of the code that produce incorrect output, but that just causes other lines to go haywire. So once again, I' m thinking its an obscure html processing error, but I don' t think it' s client-side, cause I' ve tried this on a number of email clients both in the office and at home...
|
|
|
|
junhow
Posts: 109 Joined: 12/18/2001 From: MS USA Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 13:54:24
Hey Valaire, I got some rest and am taking a little time from work to check things w/you. Same old problem, huh? Are the results still random? Each time you send an email, the errors are different?
|
|
|
|
Valaire
Posts: 99 From: New York Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 14:11:10
No, I think they have -some- consistency. Right now I keep getting the same errors. But say I remove those lines of code, then other errors appear that didn' t appear before.
|
|
|
|
Valaire
Posts: 99 From: New York Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 14:26:19
Sent...thanks. :) Msg = " <HTML><HEAD><TITLE>APXOnline Inquiry</TITLE></HEAD><BODY>"
Msg = Msg & " An APXOnline Inquiry has been forwarded to you by " & SendFromName & " at APX Technologies, Inc. The following notes have been included by the sender:<br><br>"
Msg = Msg & " <I>" & Notes & " </I><br><br><hr><font size=6>" & Request.Form(" Form" ) & " APXOnline Inquiry -- " & objRS(" Timestamp" ) & " </font><br><br>"
Msg = Msg & " <B><Font Color=Purple>Company:</Font></B> <Font Color=DarkOrchid>" & objRS(" Company" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Address 1:</Font></B> <Font Color=DarkOrchid>" & objRS(" Address" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Address 2:</Font></B> <Font Color=DarkOrchid>" & objRS(" City" ) & " , " & objRS(" State" ) & " " & objRS(" Zip" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Country:</Font></B> <Font Color=DarkOrchid>" & objRS(" Country" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Name:</Font></B> <Font Color=DarkOrchid>" & objRS(" Name" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Title:</Font></B> <Font Color=DarkOrchid>" & objRS(" Title" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Phone:</Font></B> <Font Color=DarkOrchid>" & objRS(" Phone" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Fax:</Font></B> <Font Color=DarkOrchid>" & objRS(" Fax" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>E-mail:</Font></B> <Font Color=DarkOrchid>" & objRS(" Email" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Contact:</Font></B> <Font Color=DarkOrchid>" & objRS(" Contact" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Product:</Font></B> <Font Color=DarkOrchid>" & objRS(" New or Existing" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Purple>Needed:</Font></B> <Font Color=DarkOrchid>" & objRS(" When Needed" ) & " </Font><BR><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Primary Input Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" P1 Input Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Primary Input Frequency:</Font></B> <Font Color=CornflowerBlue>" & objRS(" P1 Input Freq" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Universal Minimum Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" P2 Min Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Universal Maximum Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" P2 Max Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Class:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Class" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>1st Output Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S1 Output Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>1st Output Current:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S1 Output Current" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>1st Minimum Load:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S1 Min Load" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>2nd Output Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S2 Output Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>2nd Output Current:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S2 Output Current" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>2nd Minimum Load:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S2 Min Load" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>3rd Output Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S3 Output Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>3rd Output Current:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S3 Output Current" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>3rd Minimum Load:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S3 Min Load" ) & " <BR>"
Msg = Msg & " <B><Font Color=DarkBlue>4th Output Voltage:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S4 Output Volt" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>4th Output Current:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S4 Output Current" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>4th Minimum Load:</Font></B> <Font Color=CornflowerBlue>" & objRS(" S4 Min Load" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Ripple Max:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Ripple Max" ) & " <BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Percentage Overall:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Overall" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Noise:</Font></B> <Font Color=CornflowerBlue>" & objRS(" VPP" ) & " <BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Configuration:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Configuration" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Length:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Length" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Width:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Width" ) & " <BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Height:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Height" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Unit:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Unit" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=DarkBlue>Output Connector Type:</Font></B> <Font Color=CornflowerBlue>" & objRS(" Output Connector Type" ) & " </Font><BR><BR>"
Msg = Msg & " <B><Font Color=Crimson>Application:</Font></B> <Font Color=Red>" & objRS(" Application" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Crimson>Quantity:</Font></B> <Font Color=Red>" & objRS(" Quantity" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Crimson>Environmental Conditions:</Font></B> <Font Color=Red>" & objRS(" Environmental Conditions" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Crimson>Safety Agency Requirements:</Font></B> <Font Color=Red>" & objRS(" Safety Agency Reqs" ) & " </Font><BR>"
Msg = Msg & " <B><Font Color=Crimson>Notes:</Font></B> <Font Color=Red>" & objRS(" Notes" ) & " </Font><BR>"
Msg = Msg & " </BODY></HTML>"
CDONTSMail.Body = Msg
CDONTSMail.BodyFormat = 0
CDONTSMail.MailFormat = 0
CDONTSMail.Send
Set CDONTSMail = Nothing
|
|
|
|
junhow
Posts: 109 Joined: 12/18/2001 From: MS USA Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 14:39:13
I just replied to your email. I don' t see the problems. I' ve received it in both Outlook Express and regular Outlook. Everything looks great. I did a ' view source' and looked at the code, but of course all looks well under the hood. Check the email and let me know if comes to you formatted correctly. What version of outlook are you using? Mine is 5.50 here at work. I' m not sure about home, but I' m using XP there.
|
|
|
|
Valaire
Posts: 99 From: New York Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 15:02:23
It looks perfect in your reply! Grrt. :P I' m using Outlook Express 6.0, and Outlook 2000. I' ll do some more client testing.
|
|
|
|
Valaire
Posts: 99 From: New York Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 15:10:21
I still can' t find anything for why my client displays it incorrectly. All the html formatting options in Express look fine, and there aren' t many. It does the same thing in full Outlook too.
|
|
|
|
Valaire
Posts: 99 From: New York Status: offline
|
RE: Random Outputting Error in E-mail - 8/24/2002 15:24:43
Okay, I -think it' s Outlook Express screwing things up. I just sent one to my Outlook account and it looked fine. When I fwd the email from Outlook to Outlook Express, though, it displays correctly. If it goes to Outlook Express first, it is muddled.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|