Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Oct 2002
    Posts
    147
    Thanks
    31
    Thanked 2 Times in 2 Posts

    asp script wont send to my e-mail address

    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
    %>

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts
    is an smtp server configured at the machine which processes this asp page?
    I am the luckiest man in the world

  • #3
    Regular Coder
    Join Date
    Oct 2002
    Posts
    147
    Thanks
    31
    Thanked 2 Times in 2 Posts
    Hi yes

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

    can you help?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •