Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<%
'Begin by discovering which email component your server runs:
dim objMail
set objMail = Server.CreateObject("Persits.MailSender") 'ASPEmail
set objMail = Server.CreateObject("SMTPsvg.Mailer") 'ASPMail
set objMail = Server.CreateObject("CDONTS.Newmail") 'CDONTS
set objMail = Server.CreateObject("JMail.SMTPMail") 'Jmail
%>
<%
Set objMail = Server.CreateObject("Persits.MailSender")
objMail.Host = "mail.smtp-server.com" ' Specify a valid SMTP server
objMail.From = "sendersemail@yourdomain.com" ' Specify sender's address
objMail.FromName = "Senders Name" ' Optionally specify sender's name
objMail.AddAddress "recipientsemail@theirdomain.com", "Optional Recipient Name" 'Specify recipient
objMail.AddCC = "someotherrecipient@somedomain.com"
objMail.AddBcc = "someotherrecipient@somedomain.com"
objMail.AddAttachment = "c:\images\cakes.gif" 'How to add an attachment
objMail.Subject = "Sending Email with ASP using Persits"
objMail.Body = "Please disregard this email. It is only a test."
'---or---
objMail.Body = "<html><body><h1>Please disregard this email!</h1>It is only a test</body></html>"
objMail.IsHTML = true
'--Finally, send it
objMail.Send
%>
<%
set objMail = Server.CreateObject("SMTPsvg.Mailer")
objMail.RemoteHost = "mail.smtp-server.com" ' Specify a valid SMTP server
objMail.FromAddress = "sendersemail@yourdomain.com" ' Specify sender's address (only one)
objMail.FromName = "Senders Name" ' Optionally specify sender's name
objMail.AddRecipient "Recipients Name", "recipientsemail@theirdomain.com" 'Specify recipient
objMail.AddCc = "Additional Recipients Name", "someotherrecipient@somedomain.com"
objMail.Bcc = "Additional Recipients Name", "someotherrecipient@somedomain.com"
objMail.AddAttachment = "c:\images\cakes.gif" 'How to add an attachment
objMail.Subject = "Sending Email with ASP using CDONTS"
objMail.BodyText = "Please disregard this email. It is only a test."
'---or---
objMail.BodyText = "<html><body><h1>Please disregard this email!</h1>It is only a test</body></html>"
objMail.ContentType = "text/html"
'--Finally, send it
objMail.SendMail
%>
<%
set objMail = Server.CreateObject("CDONTS.Newmail")
objMail.From = "sendersemail@yourdomain.com" ' Specify sender's address (only one)
objMail.To = "recipientsemail@theirdomain.com" 'Use ; to seperate items in a list of recipients
objMail.Cc = "someotherrecipient@somedomain.com"
objMail.Bcc = "someotherrecipient@somedomain.com"
objMail.AttachFile = "c:\images\cakes.gif" 'How to add an attachment
objMail.Subject = "Sending Email with ASP using CDONTS"
objMail.Body = "Please disregard this email. It is only a test."
'---or---
objMail.Body = "<html><body><h1>Please disregard this email!</h1>It is only a test</body></html>"
objMail.BodyFormat = 0
'--Finally, send it
objMail.Send
%>
<%
set objMail = Server.CreateObject("JMail.SMTPMail")
objMail.ServerAddress = "mail.smtp-server.com" ' Specify a valid SMTP server
objMail.From = "sendersemail@yourdomain.com" ' Specify sender's address (only one)
objMail.FromName = "Senders Name" ' Optionally specify sender's name
objMail.AddRecipient = "recipientsemail@theirdomain.com", "Recipients Name" 'email and optional recipient name
objMail.AddRecipientCC = "someotherrecipient@somedomain.com"
objMail.AddRecipientBCC = "someotherrecipient@somedomain.com"
objMail.AddAttachment = "c:\images\cakes.gif" 'How to add an attachment
objMail.Subject = "Sending Email with ASP using CDONTS"
objMail.Body = "Please disregard this email. It is only a test."
'---or---
objMail.AppendHTML = "<html><body><h1>Please disregard this email!</h1>It is only a test</body></html>"
objMail.BodyFormat = 0
'--Finally, send it
objMail.Execute
%>