Print Page | Close Window

Email registry

Printed From: SalesCart
Category: Legacy Products
Forum Name: SalesCart Standard / PRO / SQL
Forum Description: All questions pertaining to SalesCart Standard, PRO and SQL should be posted here.
URL: http://forum.salescart.com/forum/forum_posts.asp?TID=49
Printed Date: November/23/24 at 8:47pm
Software Version: Web Wiz Forums 11.04 - http://www.webwizforums.com


Topic: Email registry
Posted By: Andy Holmes
Subject: Email registry
Date Posted: April/06/04 at 5:07am
Anyone worked out how to add additional inputs for the email registry page?

I want to use this as a non payment way of getting user details sent to me.

I want to add two extra inputs- "name" and "contact telephone" that will do. I can modify the page to send to an email address of my choice.

I have been fiddling around with the code- can anyone give me a pointer on how to add these two text entry boxes?




Replies:
Posted By: GreatWeb1
Date Posted: April/06/04 at 3:23pm
What type of Web tool are you using? Frontpage or DreamWeaver?

Are you asking help on just adding two fields or a way to send out a secondary email with the information people are emailing?


Posted By: Andy Holmes
Date Posted: April/07/04 at 6:24am
I am using frontpage 2000.

What I am really after is an alternative to credit card payments.

I thought I could use the registry page so that users can send me the cart contents in an email- I would like to add a name and contact number so I can tie in the order with a user.

Do you think this is possible GreatWeb1? I am a bit stumped so any tips would be welcome :-)

Thanks in Advance
Andy


Posted By: GreatWeb1
Date Posted: April/07/04 at 7:17am
In your EmailRegistry.asp page.


First you will add these two text box:
<input type="text" name="name" size="20" value="">
<input type="text" name="phone" size="20" value="">

Then replace this code:
objMail.SetBody=NewMessage

With this:
objMail.SetBody="Name: " & Request.Form("name") & chr(13) & "Phone: " & Request.Form("phone") & chr(13) & NewMessage


Posted By: GreatWeb1
Date Posted: April/07/04 at 7:20am
If you want the form to retain the Name and Phone submitted then use these text box instead.

<input type="text" name="name" size="20" value="<%=Request("name")%>">
<input type="text" name="phone" size="20" value="<%=Request("phone")%>">




Posted By: GreatWeb1
Date Posted: April/07/04 at 7:25am
Also if you don't feel comfortable editing the SalesCart software, you can point the form to a page containing these codes. Just replace the variable with your info.

**This is for Windows 2003 Server**


<%@ LANGUAGE="VBScript.Encode" %>
<%
     mymail = "YOUREMAILADDRESS@domain.COM"
     sitename = "YOUR SITE NAME"
     mysubject = sitename & "(" & Request.Form("Subject") & ")"
     Dim objMail, themessage

     Set objMail = Server.CreateObject("CDO.Message")

     themessage = themessage & chr(13)
     themessage = themessage & "Name: " & Request.Form("name") & chr(13)
     themessage = themessage & "Phone: " & Request.Form("phone") & chr(13)
     themessage = themessage & "Email Address: " & Request.Form("FromEmail") & chr(13)
     themessage = themessage & " " & chr(13)
     themessage = themessage & Request.Form("Message") & chr(13)
     themessage = themessage & " " & chr(13)
     themessage = themessage & " " & chr(13)
     themessage = themessage & "Sent On: " & date & chr(13)
     themessage = themessage & " " & chr(13)

     objMail.From = Request.Form("FromEmail")
     objMail.To = Request.Form("Email")
     objMail.Subject = mysubject
     objMail.TextBody = themessage
     objMail.Send
     Response.Redirect "your_thank_you_page.html"
     set objMail = nothing
%>



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.04 - http://www.webwizforums.com
Copyright ©2001-2015 Web Wiz Ltd. - http://www.webwiz.co.uk