How to fill the subject ??

M

Mario

Hi !

This is my code :

<a href="mailto:[email protected]"> <img src="Feedback_button.gif"
width="128" height="33" alt="Feedback" border="0">

I want to know if i can put an automatic subjet in that code.

i.e. When the visitor click on this button, his mail program
popup and he have to enter the subject and then the text.
I want the subject to be fill automaticly... It is possible ??
If yes, what should i do ??

Thank's
 
M

Mark Parnell

Mario said:
<a href="mailto:[email protected]"> <img
src="Feedback_button.gif" width="128" height="33" alt="Feedback"
border="0">

I want to know if i can put an automatic subjet in that code.

No. Every mail program (if the user even has one) is different. You should
be using a server-side script, no a mailto: link.
 
T

Toby A Inkster

Mario said:
<a href="mailto:[email protected]"> <img src="Feedback_button.gif"
width="128" height="33" alt="Feedback" border="0">

I want to know if i can put an automatic subjet in that code.

There is a way:

<a href="mailto:[email protected]?subject=Pizza">E-mail me about
pizza</a>

HOWEVER (and that's a big however!) on some setups the subject will just
be ignored. On others, it will break the whole link. And on others the
user will still be given a chance to change the subject line. As Mark
said, best to use a server-side script to do this.
 
A

Andrew Davidson

Mario said:
. When the visitor click on this button, his mail program
popup

What if the visitor doesn't have a mail program?

Do this server-side. Nothing else will work consistently.
 
A

andy johnson

i.e. When the visitor click on this button, his mail program
popup and he have to enter the subject and then the text.
I want the subject to be fill automaticly... It is possible ??
If yes, what should i do ??

Thank's


For all of the aforementioned reasons, use a cgi script if you can. It
doesn't require any programming skill, just pay attention to the
instructions. You can get a script at http://nms-cgi.sourceforge.net/
which is secure. You might look in your root directory on the server
that hosts your web site to see if a cgi directory exists. If it
doesn't, create one, stick a script in it then set the permissions to
755. Make sure you upload the script in ascii. The reason I bring all
of this up is I had a web host that wouldn't let me change
permissions! I switched to godaddy and found they had a ready
made/already installed script that was easy to use beyond belief.
Having a form on your site as opposed to a mailto also about
eliminates spam too.
-
Andy

"There would be a lot more civility in this world if people
didn't take that as an invitation to walk all over you"
- (Calvin and Hobbes)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,078
Messages
2,570,572
Members
47,204
Latest member
MalorieSte

Latest Threads

Top