Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
ccarterca #1
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 them in
cdonts. if none are checked i dont want it to show up in the email
here the cdonts code i have already
<%
dim Message
dim mail
dim MailHeader
%>
<%
Message = vbcrlf & "St. Christopher's - Reservation Requests" & vbcrlf
Message = Message & vbcrlf & "--------------------------------------" & vbcrlf
Message = Message & "First Name: " & request("FirstName") &vbcrlf
Message = Message & "Last Name: " & request("LastName") &vbcrlf
Message = Message & "Address: " & request("Address") &vbcrlf
Message = Message & "City: " & request("City") &vbcrlf
Message = Message & "Province: " & request("Province") &vbcrlf
Message = Message & "Country: " & request("Country") &vbcrlf
Message = Message & "Home Phone " & request("PhoneH") &vbcrlf
Message = Message & "Work Phone: " & request("PhoneW") &vbcrlf
Message = Message & "Postal Code: " & request("PostalCode") &vbcrlf
Message = Message & "Email: " & request("Email") &vbcrlf
Message = Message & "Mode Of Travel: " & request("mnuTravel") &vbcrlf
Message = Message & "Arrival Date: " & request("ArrivalDate") &vbcrlf
Message = Message & "Departure Date: " & request("DepartureDate") &vbcrlf
Message = Message & "Adults: " & request("Adults") &vbcrlf
Message = Message & "Children: " & request("Children") &vbcrlf
Message = Message & "Room Type " & request("cboRoomType") &vbcrlf
Message = Message & "Smoking: " & request("Smoking") &vbcrlf &vbcrlf
Message = Message & vbcrlf & "Credit Card Information" & vbcrlf
Message = Message & "Card Type: " & request("CreditCardType") &vbcrlf
Message = Message & "Card Number: " & request("CardNumber") &vbcrlf
Message = Message & "Expiry Date: " & request("ExpiryDate") &vbcrlf
Message = Message & vbcrlf & "--------------------------------------" & vbcrlf
'MailHeaders = request("Email")
Set mail = Server.CreateObject("CDONTS.NewMail")
mail.From = "mailheader@stchrishotel.com"
mail.To = "jstrowbridge@sunsetsolutions.ca"
mail.Subject = "St. Christopher's Hotel Online Reservations"
mail.Body = Message
mail.Send
Set mail = Nothing
%>
i have chkCAA, chkCorp, chkSeniors, chkGovernment, chkMiliatry. they are all
special rates that i would like to send in the email to the hotel only if they
are checked. do i need an if statem,ent or anything?? somebody please help me
with the code here im a lil stumped as how to get by this one
ccarterca 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
CDO.Message see www.aspfaq.com CDONTS has been phased out. the last OS to include it was Windows 2000 -
CDONTS vs CDO
OK, so obviously cdonts doesnt work with ii6. Why its depreciated, i dont know. What i need to know is how to just send a simple email, my old... -
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... -
Lionstone #2
Re: CDONTS HELP
I know you aren't sending credit card information via e-mail....
Please tell me I'm seeing things.
"ccarterca" <webforumsuser@macromedia.com> wrote in message
news:dj5g5n$8qt$1@forums.macromedia.com...> 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 them
> in
> cdonts. if none are checked i dont want it to show up in the email
>
> here the cdonts code i have already
>
> <%
> dim Message
> dim mail
> dim MailHeader
> %>
> <%
> Message = vbcrlf & "St. Christopher's - Reservation Requests" & vbcrlf
> Message = Message & vbcrlf & "--------------------------------------" &
> vbcrlf
> Message = Message & "First Name: " & request("FirstName") &vbcrlf
> Message = Message & "Last Name: " & request("LastName") &vbcrlf
> Message = Message & "Address: " & request("Address") &vbcrlf
> Message = Message & "City: " & request("City") &vbcrlf
> Message = Message & "Province: " & request("Province") &vbcrlf
> Message = Message & "Country: " & request("Country") &vbcrlf
> Message = Message & "Home Phone " & request("PhoneH") &vbcrlf
> Message = Message & "Work Phone: " & request("PhoneW") &vbcrlf
> Message = Message & "Postal Code: " & request("PostalCode") &vbcrlf
> Message = Message & "Email: " & request("Email") &vbcrlf
> Message = Message & "Mode Of Travel: " & request("mnuTravel") &vbcrlf
> Message = Message & "Arrival Date: " & request("ArrivalDate") &vbcrlf
> Message = Message & "Departure Date: " & request("DepartureDate") &vbcrlf
> Message = Message & "Adults: " & request("Adults") &vbcrlf
> Message = Message & "Children: " & request("Children") &vbcrlf
> Message = Message & "Room Type " & request("cboRoomType") &vbcrlf
> Message = Message & "Smoking: " & request("Smoking") &vbcrlf &vbcrlf
> Message = Message & vbcrlf & "Credit Card Information" & vbcrlf
> Message = Message & "Card Type: " & request("CreditCardType") &vbcrlf
> Message = Message & "Card Number: " & request("CardNumber") &vbcrlf
> Message = Message & "Expiry Date: " & request("ExpiryDate") &vbcrlf
> Message = Message & vbcrlf & "--------------------------------------" &
> vbcrlf
>
> 'MailHeaders = request("Email")
> Set mail = Server.CreateObject("CDONTS.NewMail")
> mail.From = "mailheader@stchrishotel.com"
> mail.To = "jstrowbridge@sunsetsolutions.ca"
> mail.Subject = "St. Christopher's Hotel Online Reservations"
> mail.Body = Message
> mail.Send
> Set mail = Nothing
> %>
>
> i have chkCAA, chkCorp, chkSeniors, chkGovernment, chkMiliatry. they are
> all
> special rates that i would like to send in the email to the hotel only if
> they
> are checked. do i need an if statem,ent or anything?? somebody please help
> me
> with the code here im a lil stumped as how to get by this one
>
Lionstone Guest
-
-D- #3
Re: CDONTS HELP
As Lionstone mentioned...it is definately not advisable to send credit card
information via CDO or any unsecured method. Look into SSL for your
protection and your customer.
Hope this helps.
"Lionstone" <HIDElionstone@HIDEhushmail.com> wrote in message
news:dj5k3v$edt$1@forums.macromedia.com...them> I know you aren't sending credit card information via e-mail....
> Please tell me I'm seeing things.
>
>
> "ccarterca" <webforumsuser@macromedia.com> wrote in message
> news:dj5g5n$8qt$1@forums.macromedia.com...> > 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&vbcrlf> > in
> > cdonts. if none are checked i dont want it to show up in the email
> >
> > here the cdonts code i have already
> >
> > <%
> > dim Message
> > dim mail
> > dim MailHeader
> > %>
> > <%
> > Message = vbcrlf & "St. Christopher's - Reservation Requests" & vbcrlf
> > Message = Message & vbcrlf & "--------------------------------------" &
> > vbcrlf
> > Message = Message & "First Name: " & request("FirstName") &vbcrlf
> > Message = Message & "Last Name: " & request("LastName") &vbcrlf
> > Message = Message & "Address: " & request("Address") &vbcrlf
> > Message = Message & "City: " & request("City") &vbcrlf
> > Message = Message & "Province: " & request("Province") &vbcrlf
> > Message = Message & "Country: " & request("Country") &vbcrlf
> > Message = Message & "Home Phone " & request("PhoneH") &vbcrlf
> > Message = Message & "Work Phone: " & request("PhoneW") &vbcrlf
> > Message = Message & "Postal Code: " & request("PostalCode") &vbcrlf
> > Message = Message & "Email: " & request("Email") &vbcrlf
> > Message = Message & "Mode Of Travel: " & request("mnuTravel") &vbcrlf
> > Message = Message & "Arrival Date: " & request("ArrivalDate") &vbcrlf
> > Message = Message & "Departure Date: " & request("DepartureDate")if> > Message = Message & "Adults: " & request("Adults") &vbcrlf
> > Message = Message & "Children: " & request("Children") &vbcrlf
> > Message = Message & "Room Type " & request("cboRoomType") &vbcrlf
> > Message = Message & "Smoking: " & request("Smoking") &vbcrlf &vbcrlf
> > Message = Message & vbcrlf & "Credit Card Information" & vbcrlf
> > Message = Message & "Card Type: " & request("CreditCardType") &vbcrlf
> > Message = Message & "Card Number: " & request("CardNumber") &vbcrlf
> > Message = Message & "Expiry Date: " & request("ExpiryDate") &vbcrlf
> > Message = Message & vbcrlf & "--------------------------------------" &
> > vbcrlf
> >
> > 'MailHeaders = request("Email")
> > Set mail = Server.CreateObject("CDONTS.NewMail")
> > mail.From = "mailheader@stchrishotel.com"
> > mail.To = "jstrowbridge@sunsetsolutions.ca"
> > mail.Subject = "St. Christopher's Hotel Online Reservations"
> > mail.Body = Message
> > mail.Send
> > Set mail = Nothing
> > %>
> >
> > i have chkCAA, chkCorp, chkSeniors, chkGovernment, chkMiliatry. they are
> > all
> > special rates that i would like to send in the email to the hotel onlyhelp> > they
> > are checked. do i need an if statem,ent or anything?? somebody please>> > me
> > with the code here im a lil stumped as how to get by this one
> >
>
-D- Guest



Reply With Quote

