Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Emailing Forms Help?

Emailing Forms Help?
Thread Tools
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Jul 8, 2003, 10:35 AM
 
Hi! was hoping someone could help me out on this. I've decided to skip CGI and PHP mail scripts for my newsletter signup because I haven't got a clue how to configure them.

So, I thought I would simply use a link that would activate the users email client and fill in the subject and hopefully the body. I ran across a script to fill in the subject, but it seems to break when I use an image button instead of the canned html button:

Original:
[FORM>
[INPUT TYPE="button" VALUE="Click Here to Write to Me"
onClick="parent.location='mailto:spammer@earthling .net?subject=This goes to the subject'"]
[/FORM]


Revised:
[INPUT TYPE="image" src="../Images/SignUp_Text.jpg" onClick="parent.location='mailto:spammer@earthling .net?subject=This goes to the subject'"]
[/FORM][/td]

Anyone have a clue as to why the image button seems to only reload the page?

Also can anyone clue me in as to how to fill in the body of the email?
     
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Jul 9, 2003, 11:03 AM
 
i may be wrong but i believe you can do:

[form action="mailto:spammer@earthling.net?subject=subje ct goes here"]

and then have your image input submit the form (if you use image it will have to be with javascript in the onClick argument)

--will
     
Mac Elite
Join Date: Jan 2000
Location: Pittsburgh, PA
Status: Offline
Reply With Quote
Jul 10, 2003, 01:42 PM
 
if you're interested, my old ISP has a free (open) email server script thing that anyone can tap into...

go to http://www.avenirex.com/aroundoahu/ to see the signup form for addresses.

or this basic "comments" form:
http://www.avenirex.com/v4/contact.html

the code looks like this from the first one:

Code:
<form action="http://www.aloha.net/cgi-bin/hol_mail.cgi" method="POST"> </p> <p><input type="hidden" name="to" value="yoruemail@email.com"><input type="hidden" name="sub" value="EMAILSUBJECT"><input type="hidden" name="home" value="HTTP://URLTOTAKEYOUBACKWHENDONE"><input type="hidden" name="result_page" value="URLOFPAGETOSAYTHANKS"><input type="text" name="from" value="enter email" size="11" font="Arial" face="Arial"> <input type="submit" name="Submit" value="Submit"> </form>

and, despite all that, it's really easy to configure otherwise, you can just do simple mailto links even where the url is mailto:email@email.com?subject=enter+subject+here

or something like that

[edit] ahh crap, I can't get it to show you code without rendering it, but if you click "edit" on my message, you should be able to see it
(Last edited by Avenir; Jul 10, 2003 at 02:00 PM. )

spike[at]avenirex[dot]com | Avenirex
IM - Avenirx | ICQ - 3932806
     
Senior User
Join Date: Dec 2002
Status: Offline
Reply With Quote
Jul 11, 2003, 02:03 PM
 
Originally posted by Avenir:

Code:
[form action="http://www.aloha.net/cgi-bin/hol_mail.cgi" method="POST"] [p] [input type="hidden" name="to" value="yoruemail@email.com"] [input type="hidden" name="sub" value="EMAILSUBJECT"] [input type="hidden" name="home" value="HTTP://URLTOTAKEYOUBACKWHENDONE"] [input type="hidden" name="result_page" value="URLOFPAGETOSAYTHANKS"] [input type="text" name="from" value="enter email" size="11" font="Arial" face="Arial"] [input type="submit" name="Submit" value="Submit"] [/form]
We can't edit your posts But it does show up when we click reply. Here it is in square-bracket form. Too lazy to type in the &lt; &gt;
Travis Sanderson
     
Mac Elite
Join Date: Jan 2000
Location: Pittsburgh, PA
Status: Offline
Reply With Quote
Jul 11, 2003, 02:19 PM
 
Originally posted by redJag:
We can't edit your posts But it does show up when we click reply. Here it is in square-bracket form. Too lazy to type in the &lt; &gt;
muchas gracias, that's what i shoulda done all along i guess... or a screen shot

spike[at]avenirex[dot]com | Avenirex
IM - Avenirx | ICQ - 3932806
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:47 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2