|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
beginner problem with smtp host and aspEmail
Hi, ive installed sucessfully the aspEmail component, but when i call it from ASP page, the email is sent, but ends up in badMail inetpub folder with message saying that receipent is not found... ive tried it with many different combinations of mail.from and mail.addaddress, none works, so i guess that the prblem is the smtp server... ill paste the asp script anyways...
<%@LANGUAGE="VBSCRIPT"%> <% Set Mail = Server.CreateObject("Persits.MailSender") Mail.Host = "localhost" Mail.From = "hugues@hy.cgocable.ca" Mail.AddAddress "connard15@hotmail.com" Mail.Subject = "Sales Receipt" Mail.Body = "Dear John:" & chr(13) & chr(10) & "Thank you for your business. Here is your receipt." Mail.Subject = "Thanks for ordering our hot cakes!" On Error Resume Next Mail.Send If Err <> 0 Then Response.Write "Error encountered: " & Err.Description End If %> <html> <head> <title>LostPassword</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <h1>LostPassword page</h1> <form method="post" action="loginPage.asp"> Email adress: <input type="text" name="lp_email"><br> <br> <input type="submit" value="Send me my password"> </form> </body> </html> thanks ! |
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > beginner problem with smtp host and aspEmail |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|