ASP form mail coding :
Please find the sample ASPform mail coding.
mail.asp :
<%
Dim iMsg, iConf, Flds, vSub
Set iMsg = CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
'sending email with Google Apps Premium SMTP server (with autentication)
schema = "http://schemas.microsoft.com/cdo/configuration/"
Flds.Item(schema & "sendusing") = 2
Flds.Item(schema & "smtpauthenticate") = 1
Flds.Item(schema & "smtpserver") = "SERVER IP"
Flds.Item(schema & "smtpserverport") = 25
Flds.Item(schema & "sendusername") = "test- emailid"
Flds.Item(schema & "sendpassword") = "Password"
Flds.Update
With iMsg
.To = "test@yourdomainname.com"
.From = "contact@yourdomainname.com"
.Subject = "Reservation"
.TextBody = "Mail Sent"
Set .Configuration = iConf
.Send
End With
response.Write "Successfully Sent"
set iMsg = nothing
set iConf = nothing
set Flds = nothing
%>