Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
mailto URL Formatting
Old 12-30-2007, 08:40 AM mailto URL Formatting
Yogi's Avatar
Junior Talker

Posts: 4
Name: Dennis
Location: near Chicago
Trades: 0
Code:
<form action="mailto:administrator@brainformation.com?subject=Fan Mail&body=???" method="post" enctype="multipart/form-data">
<input class="sidebar" type="text" value="name" name="user" />
<input class="sidebar" type="text" value="email"  name="email" />
<textarea class="sidebar" name="content" cols="30" rows="40">Your message</textarea>
<input class="button_sidebar" value="Send" type="submit" />
<input class="button_sidebar" value="Reset" type="reset" />
</form>
http://home.earthlink.net/~baradj/nbfhome/
I'm using a form to send an e-mail to the site administrator in the CONTACT US section of the navigation pane.

I understand how to force pre-formatted text into the To:, Subject:, and Body: elements of an e-mail client. However, I want to pass user entered (variable text) to the email body, and I cannot figure out how to do it using strictly HTML.

I prefer to avoid using cgi scripts, but a javascript solution might be workable. Thanks for any help or direction you may be able to provide.
__________________

Please login or register to view this content. Registration is FREE

A friendly waystation along the Information Highway
Yogi is offline
Reply With Quote
View Public Profile Visit Yogi's homepage!
 
 
Register now for full access!
Old 12-30-2007, 08:59 AM Re: mailto URL Formatting
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
I cannot figure out how to do it using strictly HTML.
That's 'cos you can't.

javascript is possible (i have a script somewhere) but that would bring up all manner of security alerts and may be blocked completely in some browser/anti virus setups.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-30-2007, 09:27 AM Re: mailto URL Formatting
Yogi's Avatar
Junior Talker

Posts: 4
Name: Dennis
Location: near Chicago
Trades: 0
Thanks chrishirst. I guess that explains why I could not find any information in my reference books or on the web.

If you happen across the javascript, please point me to it. I'll look it over, but I'm thinking I may just have to be happy opening the client's e-mail application and let them fill in the blanks from there.
__________________

Please login or register to view this content. Registration is FREE

A friendly waystation along the Information Highway
Yogi is offline
Reply With Quote
View Public Profile Visit Yogi's homepage!
 
Old 12-30-2007, 08:47 PM Re: mailto URL Formatting
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
dug out the script, cleaned it up a bit (it hadn't seen light of day in 5 years) and botched together a write up.

http://www.candsdesign.co.uk/article...pt/send-email/

code download is at
http://www.candsdesign.co.uk/article.../show-code.asp

works ok in FF & NS, IE & Outlook throw up warnings, fails dismally with Opera, and it probably won't work with web mailers.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to mailto URL Formatting
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32938 seconds with 12 queries