| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
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?
In which language?
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...
And also that you have cdonts installed on your server...
...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