Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do i send mail from asp pages ?

ASP mail pages send
0
0 Posted

How do i send mail from asp pages ?

0
0

Our server uses aspemail component. To following is the asp code to send the email messages <% Set Mail = Server.CreateObject("Persits.MailSender") Mail.Host = "mail.yourwebsitename.com" ' Specify a valid SMTP server Mail.From = "sender@sender.com" ' Specify sender's address Mail.FromName = "Senders name" ' Specify sender's name Mail.AddAddress "deven_tp@hotmail.com" 'Receivers email address 'Mail.AddReplyTo "dev_dj@yahoo.com" Mail.Subject = "Thanks for ordering our hot cakes!" Mail.Body = "Dear Sir:" & Chr(13) & Chr(10) & _ "Thank you for your business." On Error Resume Next Mail.Send If Err <> 0 Then Response.Write “Error encountered: ” & Err.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123