Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 11th, 2007, 06:33 AM
Registered User
 
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to dammy Send a message via Yahoo to dammy
Default Persists.MailSender

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

 
Old September 6th, 2007, 01:02 PM
Authorized User
 
Join Date: Sep 2007
Posts: 56
Thanks: 0
Thanked 1 Time in 1 Post
Default

Are you getting any errors?

Does it even make it into your if statement. Try adding response.write "inside if...." on the line below your if statement to make sure its making it there at least

http://mynameissteve.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
getting problem in Persits.MailSender najamsiddiqui ASP.NET 1.0 and 1.1 Basics 3 October 16th, 2006 10:53 PM
Set cbo.selectedvalue using Value problem persists Ron Howerton Visual Basic 2005 Basics 0 July 12th, 2006 11:52 AM
I have problem to use Persits.MailSender omid_sham Classic ASP Professional 1 March 2nd, 2004 07:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.