Welcome to WebmasterWorld Guest from 54.196.232.162

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

Email page

     
8:58 am on Oct 6, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:July 15, 2003
posts:51
votes: 0


Iam tryin to create a page that will send an email straight from my server as an email.

E.g.

First Name < text box >
Surname < text box >
Email < text box >

etc

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?

Cheers

9:04 am on Oct 6, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Aug 11, 2003
posts:495
votes: 0


In which language?
9:09 am on Oct 6, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:July 15, 2003
posts:51
votes: 0


sorry :)

vbscript (asp)

9:31 am on Oct 6, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:July 9, 2003
posts:405
votes: 0


Try something like:

<%
Dim myMail
Set myMail = CreateObject("CDONTS.NewMail")
myMail.From = request("email")
myMail.To = "me@mydomain.com"
myMail.Subject = request("subject")
myMail.Body = request("message")
myMail.Send
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)

Preferred Member

10+ Year Member

joined:Feb 27, 2003
posts:637
votes: 0


And also that you have cdonts installed on your server...

Mac

12:15 pm on Oct 7, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:July 9, 2003
posts:405
votes: 0


...yes that's fairly important for that code to work ;)
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members