-----Original Message-----
I am using ASP to submit a fom to to a MS Access dbase. I
also need to have the form send an e-mail, with a text
file of the same information attached.
Is this possible? How would I do this?
If you created the ASP page by using the FrontPage Save
Results to Database feature, sending mail at the same time
isn't exactly possible. (There are some curious schemes
that do this by chaining together several pages but I,
personally, steer away from them.)
If you created the ASP page by writing your own code, then
you need to write additional code that sends mail. Some
ISPs support the Microsoft-supplied CDONTS.NewMail object
for this, but many others prefer third-party mail objects.
Check your ISP's Help pages to see what they provide.
Here's a simple example using the CDONTS.NewMail object.
Set objNewMail = Server.CreateObject("CDONTS.NewMail")
objNewMail.From = "(e-mail address removed)"
objNewMail.To = "(e-mail address removed)"
objNewMail.Subject = "What am I about?"
objNewMail.Body = "The body of your message goes here."
objNewMail.Send
Set objNewMail = Nothing
Jim Buyens
Microsoft FrontPage MVP
(e-mail address removed)
http://www.interlacken.com
Author of:
*------------------------------------------------------*
|\----------------------------------------------------/|
|| Microsoft Office FrontPage 2003 Inside Out ||
|| Microsoft FrontPage Version 2002 Inside Out ||
|| Web Database Development Step by Step .NET Edition ||
|| Troubleshooting Microsoft FrontPage 2002 ||
|| Faster Smarter Beginning Programming ||
|| (All from Microsoft Press) ||
|/----------------------------------------------------\|
*------------------------------------------------------*