0

Hello,

I have a form that when it is filled out by a user it is then updated in a database, what i would like is for that information to be sent via email at the same time. Ive tried the mailto function but doesnt seem to work

my code is:

<input type="Submit" name="SubmitButton" id="SubmitButton" value="Submit" onclick="mailto:xxxxx@xx.com"/>

any help would be appreciated

thanks

5
Contributors
6
Replies
7
Views
7 Years
Discussion Span
Last Post by Bsingh7
0

What do you expect from mailto function? Do you want to send content of filled form to user?

Mailto function only opens email client window with blank body.

Edited by urtrivedi: n/a

0

I didnt realise that, its the first time im using email function. Yes that is the idea

0

Urtivedi is right and wrong, mailto attribute does not just open blank.

Read more

He is right however, regarding the submitting of your form, for that you will need server-side. What database are you using? if its MYSQL, you will have to go php.

0

ok thanks, my database is in access 2007. I will read about using PHP for email and see what i can find

0

Mailto depends on settings made in IE to know what mailer to open. If it is not set, no mailer opens.

0

Mail to does not work if you write it on click of button. It only works with <a href>. You can write location.href='mailto:xxx@xxx.com'; on click on the button to make it work

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.