View Full Version : Outlook Forms ? Anyone Know the basics ?
JasonKing
01-24-2002, 03:11 AM
I would love to know how to put a submitt button (or the code for this) that sends the contents of my form to a predetermined email address.
Anyone know how ? Thanks for your time.
darkness
01-25-2002, 09:25 PM
Using Cdonts:
set oMail = CreateObject("CDO.Message")
oMail.To = "Someone@mailhost.com"
oMail.From = "Myservername"
oMail.TextBody = "The contents of your form"
oMail.send
If you know the email address you would just put it in a variable and pass it to the oMail.To portion like this:
MyAddress = "Myname@hotmale.com"
oMail.To = Myaddress
You can do this with the subjectline and the textbody
And you can pass HTML messaging as well.
Michael McLaughlin/images/forums/icons/smile.gif
Systems Manager
Minnesota State University Mankato
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.