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:
Code:
<%@ LANGUAGE="JAVASCRIPT" %>
<%
myconn=Server.CreateObject("ADODB.connection");
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:
Code:
<%
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
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>"
Mail.Send
%>
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
Graham