...

View Full Version : asp script wont send to my e-mail address



andrew1234
03-31-2005, 01:42 PM
hi can you please help.

I cant work out why this script wont send to my e-mail addess

thanks

Andrew


<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
Dim fullname, tel, fax, email, Vehiclerequired, Startofhire, Endofhire, deliveryaddress, Collectionaddress, enquiry

fullname = Request.Form("name")
tel = Request.Form("tel")
fax = Request.Form("fax")
email = Request.Form("email")
Vehiclerequired = Request.Form("Vehiclerequired")
Startofhire = Request.Form("Startofhire")
Endofhire = Request.Form("Endofhire")
deliveryaddress = Request.Form("deliveryaddress")
Collectionaddress = Request.Form("Collectionaddress")
enquiry = Request.Form("enquiry")

Dim msgObject, Body
set msgObject = Server.CreateObject("CDONTS.NewMail")
msgObject.From = email '
msgObject.To = "me@123.com" ' enter the administrator e-mail address here
'msgObject.CC = ""
'msgObject.BCC = ""
msgObject.Subject = "testing"
msgObject.Importance = 2 ' make e-mail important

' construct the body
Body = "" & chr(13) 'chr(13) makes new line
Body = Body & "Name : " & fullname & chr(13)
Body = Body & "Telephone : " & tel & chr(13)
Body = Body & "Fax : " & fax & chr(13)
Body = Body & "E-mail : " & email & chr(13)
Body = Body & "Vehicle required : " & Vehiclerequired & chr(13)
Body = Body & "Start of hire : " & Startofhire & chr(13)
Body = Body & "End of hire : " & Endofhire & chr(13)
Body = Body & "Delivery address : " & deliveryaddress & chr(13)
Body = Body & "Collection address : " & Collectionaddress & chr(13)
Body = Body & "enquiry : " & enquiry & chr(13)


msgObject.Body = Body
msgObject.Send
%>

Roelf
03-31-2005, 02:19 PM
is an smtp server configured at the machine which processes this asp page?

andrew1234
03-31-2005, 05:11 PM
Hi yes

my isp said the smtp was
fastmail.it or mail.fastmail.it

can you help?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum