Print Page | Close Window

ASPEmail Help

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=4595
Printed Date: 30 March 2026 at 10:07am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: ASPEmail Help
Posted By: kenn
Subject: ASPEmail Help
Date Posted: 29 July 2003 at 1:45pm

I am trying to get my script to send me an email using aspemail after it has entered data into a database.The scrips below work fine using an access 2000 db and enter the data great however I have tried several ways to send the email after the data has been entered but to no avail can anyone help.

Many thanks Kenn

Have now worked it out and the form is working great.

Many thanks Blair for your suggestion.




Replies:
Posted By: b_bonnett
Date Posted: 29 July 2003 at 9:33pm

If you are wanting to use the ASPEmail component, the following code works:

 Set objMail      = Server.CreateObject("Persits.MailSender")

objMail.Host = (mail server address)
objMail.From = (email address mail is from)
objMail.FromName = (name of person sending the email)

objMail.AddAddress (email address to send to), (name of person to send to)
objMail.Subject = (subject of email)
objMail.Body = (body text of email)

objMail.Send

For more information, you could try the website (http://www.aspemail.com)

Hope this helped,
Blair



-------------
Webmaster, http://www.planegallery.net/ - The Plane Gallery
Greetings From Christchurch


Posted By: Bullschmidt
Date Posted: 04 August 2003 at 10:21pm
I bet the recordset was closed and then you were trying to refer to fields in the recordset...

-------------
J. Paul Schmidt, Freelance ASP Web Developer
www.Bullschmidt.com - www.Bullschmidt.com
Classic ASP Design Tips, ASP Web Database Sample (Freely Downloadable)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net