Wrox Programmer Forums
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 25th, 2007, 04:28 PM
Authorized User
Join Date: Feb 2007
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default aspMail

I am having trouble using aspMail in my asp site.

The main language of the site is JScript and I am trying to re-use some code for aspMail (VBScript) as I have run out of time to look and create a JScript equivalent (due Monday at midnight):

I have a connect.asp file which contains this code:

mydb = "Driver={Microsoft Access Driver (*.mdb)};DBQ=e:\\webareas\\mg511\\SHIC\\shic.mdb";

myconn.Open (mydb);
rs = Server.CreateObject("ADODB.Recordset");
I have this code for the aspMail:

Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = "smtp.gre.ac.uk"
Mail.FromName = request("nameBox")
Mail.From = request("emailBox")
Mail.AddAddress request ("emailhidden")
Mail.Subject = "Enquiry Confirmation"
Mail.IsHTML = True
Mail.Body = "<html><body><b>Name: </b> "& request ("nameBox") &"<br /><b>Requested Event: </b>"& request ("select") &" <br /><b> Email:</b> "& request ("emailBox") &" <br /><b> Telephone:</b> "& request ("telephoneBox") &"</body></html>"


The problem is that the server is expecting JScript code, can as such does not run the aspMail page correctly.

Heres a link to the problem: http://cms-stu-iis.gre.ac.uk/mg511/S...asp?memberid=4

Any help would be greatly appreciated

Thanks in advance

Old February 25th, 2007, 09:40 PM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

You will HAVE to convert it. You can't mix and match Javascript and VBscript.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET


Similar Threads
Thread Thread Starter Forum Replies Last Post
aspMail Morn Classic ASP Basics 3 February 26th, 2007 06:51 PM
ASPMail embaded images kalpitkk Classic ASP Professional 1 January 9th, 2006 01:06 PM
ASpMail chocobabe100 Classic ASP Basics 1 May 5th, 2005 11:27 PM
ASPMail / Shift_JIS jz552 Classic ASP Professional 0 May 4th, 2005 02:39 PM
AspMail mmarkym Classic ASP Components 2 December 21st, 2003 01:36 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.