Hello, Could someone help out with ASPEmail. I have written a couple of Asp mail scripts using CDONTs now I have to do the same on another server that has Persists.Mail.
So far I have written two sets of codes, one testing with html and the other getting variables from flash.
The following gets variables from flash but i dont receive any mail. Could someone tell me what i am doing wrong. in my flash file i have
loader = new LoadVars();
loader.sendAndLoad("email.asp","POST");
and in ASP file I have;
<%
' change to address of your own SMTP server
strHost = "aquasole-vietnam.com"
If Request("Send") <> "" Then
Set Mail = Server.CreateObject("Persits.MailSender")
' enter valid SMTP host
Mail.Host = strHost
Mail.Username = "xxx"
Mail.Password = "xxxxxxx"
Mail.From = Request("email") ' From address
Mail.FromName = Request("fullname") ' optional
'Mail.From = "
[email protected]"
Mail.AddAddress "
[email protected]"
' message subject
Mail.Subject = "Aquasole Mail Enquiry"
' message body
Mail.Body = "Salutation : " & Request.form("salutation") & vbcrlf & "Fullname : " & Request.form("fullname") & vbcrlf & "Address : " & Request.form("address") & vbcrlf & "Country : " & Request.form("country") & vbcrlf & "Phone : " & Request.form("phone") & vbcrlf & "Email : " & Request.form("email") & vbcrlf & "Villa: " & Request.form("villa") & vbcrlf & "Comments : " & Request.form("comments") & vbcrlf
strErr = ""
bSuccess = False
On Error Resume Next ' catch errors
Mail.Send ' send message
If Err <> 0 Then ' error occurred
strErr = Err.Description
else
bSuccess = True
End If
End If
%>