geek_grrrl
03-06-2003, 10:07 PM
Hellow,
I know NOTHING about asp except that to make the form found here - http://www.originalbackpackers.com.au/beta/html/bookings.html - I need to use ASP code.
My ISP told me to set mailhost as "mailrelay.primusdatacentre.com.au" and use "mailer.asp" as the action. They directed me towards a link with some ASP code to use (see http://www.aspemail.com/codesample.html) which they thought might work.
I've put the code into a form called "mailer.asp" which now contains the following code:
<%
Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = "mailrelay.primusdatacentre.com.au"
Mail.From = "Email"
Mail.FromName = "FirstName" & "LastName"
Mail.AddAddress "andy@andrewscompany.net", "Andrew Johnson, Jr."
Mail.AddAddress "paul@paulscompany.com" ' Name is optional
Mail.AddReplyTo "jeti@jetsupport.com.au"
Mail.Subject = "Web booking enquiry"
Mail.Body = "What goes here?"
On Error Resume Next
Mail.Send
If Err <> 0 Then
___Response.Write "Error encountered: " & Err.Description
End If
%>
The problem is when I test my form - http://www.originalbackpackers.com.au/beta/html/bookings.html - I get a page telling me the asp file can't be found.
Does anyone know where I might be going wrong?
I know NOTHING about asp except that to make the form found here - http://www.originalbackpackers.com.au/beta/html/bookings.html - I need to use ASP code.
My ISP told me to set mailhost as "mailrelay.primusdatacentre.com.au" and use "mailer.asp" as the action. They directed me towards a link with some ASP code to use (see http://www.aspemail.com/codesample.html) which they thought might work.
I've put the code into a form called "mailer.asp" which now contains the following code:
<%
Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = "mailrelay.primusdatacentre.com.au"
Mail.From = "Email"
Mail.FromName = "FirstName" & "LastName"
Mail.AddAddress "andy@andrewscompany.net", "Andrew Johnson, Jr."
Mail.AddAddress "paul@paulscompany.com" ' Name is optional
Mail.AddReplyTo "jeti@jetsupport.com.au"
Mail.Subject = "Web booking enquiry"
Mail.Body = "What goes here?"
On Error Resume Next
Mail.Send
If Err <> 0 Then
___Response.Write "Error encountered: " & Err.Description
End If
%>
The problem is when I test my form - http://www.originalbackpackers.com.au/beta/html/bookings.html - I get a page telling me the asp file can't be found.
Does anyone know where I might be going wrong?