Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Mintyman #1
CDONTS Formatting
Ok, So I can't get my previous method to work so i'm trying a different way.
And I can't get this to work either ! Grrrr :o(
I'm getting an 'Expected End of Statement' :
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/msds/confirm.asp, line 29
mail.body = "<table width=""600"" border=""0"" cellspacing=""0""
cellpadding=""0"">" & "<tr>" & "<font face=Arial size=2>" & "Thank you for
requesting a " & (MSDS.Fields.Item("description").Value) & " MSDS
information sheet from us." & "<br><br>" & "You can download the document "
& "<a href=" & """http://www.logitech.uk.com/MSDS/" &
""(MSDS.Fields.Item("Location").Value)"">"" & "here" & "</a>" & "</font>" &
"</tr>" & "</table>"
in the following code:<%
Set mail = Server.CreateObject("CDONTS.NewMail")
mail.From = "email@domain.com"
mail.To = Trim(Request.QueryString("Email"))
mail.subject ="MSDS Document downloaded"
mail.body = "<table width=""600"" border=""0"" cellspacing=""0""
cellpadding=""0"">" & "<tr>" & "<font face=Arial size=2>" & "Thank you for
requesting a " & (MSDS.Fields.Item("description").Value) & " MSDS
information sheet from us." & "<br><br>" & "You can download the document "
& "<a href=" & """http://www.domain.com/MSDS/" &
(MSDS.Fields.Item("Location").Value)">" & "here" & "</a>" & "</font>" &
"</tr>" & "</table>"
mail.MailFormat = 0
mail.BodyFormat = 0
mail.Send
Set mail = nothing
%>
It's something to do with the number of quotation marks but I can't find out
where i'm missing/adding any.
Mintyman Guest
-
cdonts.dll on x64
Hi... I know I'm probably going to take a lot of grief over this, but we have a pile of legacy code still using CDONTS on 32-bit systems. We're... -
CDONTS HELP
okay i ahev my cdonts working properly, and it emails to me no problem. but now i had to add checkboxs to my form and im not quite sure how to send... -
CDONTS
CDO.Message see www.aspfaq.com CDONTS has been phased out. the last OS to include it was Windows 2000 -
CDONTS for IIS 5.1
Hi all, I'm trying to get a better understanding of how to use CDONTS on a web server, and I find that I don't have it installed on my own. I'm... -
CDONTS & BCC
Hi I have a website hosted on a virtual server, and am trying to run a script that sends an email with a BCC address. The email gets sent just... -
Chris In Madison #2
Re: CDONTS Formatting
Looks like it's probably in your mail.body after the "Location" field
reference. Probably should be this (watch the wrap):
<%
Set mail = Server.CreateObject("CDONTS.NewMail")
mail.From = "email@domain.com"
mail.To = Trim(Request.QueryString("Email"))
mail.subject ="MSDS Document downloaded"
mail.body = "<table width=""600"" border=""0"" cellspacing=""0""
cellpadding=""0"">" & "<tr>" & "<font face=Arial size=2>" & "Thank you for
requesting a " & (MSDS.Fields.Item("description").Value) & " MSDS
information sheet from us." & "<br><br>" & "You can download the document "
& "<a href=" & """http://www.domain.com/MSDS/" &
(MSDS.Fields.Item("Location").Value) & """>" & "here" & "</a>" & "</font>" &
"</tr>" & "</table>"
mail.MailFormat = 0
mail.BodyFormat = 0
mail.Send
Set mail = nothing
%>
Best regards,
Chris
Chris In Madison Guest
-
Mintyman #3
Re: CDONTS Formatting
Thanks Chris :o)
"Chris In Madison" <cowens@cnwGOAWAYDIRTYRATSPAMMERS.com> wrote in message
news:d1cdn5$571$1@forums.macromedia.com..."> Looks like it's probably in your mail.body after the "Location" field
> reference. Probably should be this (watch the wrap):
>
> <%
> Set mail = Server.CreateObject("CDONTS.NewMail")
> mail.From = "email@domain.com"
> mail.To = Trim(Request.QueryString("Email"))
> mail.subject ="MSDS Document downloaded"
> mail.body = "<table width=""600"" border=""0"" cellspacing=""0""
> cellpadding=""0"">" & "<tr>" & "<font face=Arial size=2>" & "Thank you for
> requesting a " & (MSDS.Fields.Item("description").Value) & " MSDS
> information sheet from us." & "<br><br>" & "You can download the document&> & "<a href=" & """http://www.domain.com/MSDS/" &
> (MSDS.Fields.Item("Location").Value) & """>" & "here" & "</a>" & "</font>"> "</tr>" & "</table>"
>
> mail.MailFormat = 0
> mail.BodyFormat = 0
>
> mail.Send
> Set mail = nothing
> %>
>
> Best regards,
> Chris
>
>
Mintyman Guest



Reply With Quote

