|
Windows Hosting
ASP. NET
Control Panel Guide
Control Panel Video Tutorials
Email
Front Page
FTP
MS SQL
MYSQL
|
 |
|
FAQs in current category:
|
Persits Email Component Code Example on ASP?
|
 |
Persits Email Component Code Example on ASP? |
Print |
 |
strHost = "mail.bookandhost.com"
Set Mail = Server.CreateObject("Persits.MailSender")
' enter valid SMTP host
Mail.Host = strHost
Mail.From = "info@bookandhost.com" ' From address
Mail.FromName ="Jaswanth Jain" ' optional
Mail.AddAddress "jaswanth_jain@yahoo.com"
' message subject
Mail.Subject = "hi"
Mail.Body ="hello"
strErr = ""
bSuccess = False
On Error Resume Next ' catch errors
Mail.Send ' send message
If Err <> 0 Then ' error occurred
strErr = Err.Description
response.write("Error:"&strerr)
else
bSuccess = True
response.write("Mail Sent To Your Email ID Regarding the Details")
end if
set mail=nothing
|
 |
|
|
|
| |
|
|