Forum Moderators: mack

Message Too Old, No Replies

How can i submit a form via email

         

IT_Alex

2:11 pm on Oct 29, 2004 (gmt 0)

10+ Year Member



I have created a form using Dreamweaver MX and want to submit it via email. Ideally it needs to be a secure script and not launch the users email client.

Can anyone help with this?

Alex

bateman_ap

9:25 pm on Oct 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What server are you hosted on, ie IIS, Apache?

jatar_k

9:48 pm on Oct 30, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



If you were thinking of using php, which DW MX can help with, you could look through this explanation

Basics of Submitting and Emailing Forms with PHP [webmasterworld.com] msg 3

IT_Alex

8:39 am on Nov 1, 2004 (gmt 0)

10+ Year Member



It on a server running IIS

IT_Alex

9:38 am on Nov 1, 2004 (gmt 0)

10+ Year Member



Would i be able to use a .asp form? Would it be easier to do it this way?

bateman_ap

10:18 pm on Nov 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry, only jsut returned to this topic.

OK if you are on IIS there are a couple of ways you can do it. Firstly are you on your own server where you can install some custom apps or are u hosted with someone. If so they will most prob have something installed you can use.

Try this, it uses the IIS SMTP service that should be installed:

Set objNewMail = CreateObject("CDONTS.NewMail")
objNewMail.Send "you@domain.com", _
"you@domain.com", "Message Subject", _
"Stick your body copy here", 0 ' low importance
Set objNewMail = Nothing

If that doesn't work find out from your ISP if they have any software installed that you can use, if it is your own box I use AspEmail (google it) that is free and works pretty well for me