| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
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 = "email@example.com"
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