| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
| 8:58 am on Oct 6, 2003 (gmt 0)|
Iam tryin to create a page that will send an email straight from my server as an email.
First Name < text box >
Surname < text box >
Email < text box >
I think its the same as saving to my db, but also sending via a form. Whats the line to post it as an email in a form?
| 9:04 am on Oct 6, 2003 (gmt 0)|
In which language?
| 9:09 am on Oct 6, 2003 (gmt 0)|
| 9:31 am on Oct 6, 2003 (gmt 0)|
Try something like:
Set myMail = CreateObject("CDONTS.NewMail")
myMail.From = request("email")
myMail.To = "firstname.lastname@example.org"
myMail.Subject = request("subject")
myMail.Body = request("message")
Set myMail = Nothing
thats assuming you post fields called email, subject and message to the page...
| 11:58 am on Oct 7, 2003 (gmt 0)|
And also that you have cdonts installed on your server...
| 12:15 pm on Oct 7, 2003 (gmt 0)|
...yes that's fairly important for that code to work ;)
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved