mailto function

This is a discussion on "mailto function" within the JavaScript Forum section. This forum, and the thread "mailto function are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 27th, 2004, 03:55
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
mailto function

I have this code which will capture any field in my recordset and put them in the body of the email!

[code]
<a href='mailto:<%=myemailfield%>?subject=BOOKING STATUS
&body=<%=namefield%>,%0A<%=agefield%>,%0A<%=IDfiel d%>,%0A
<%=addressfield%>>Mail</a>
[/body]

%0A is for page break or
in html!
[b]But what about or bold text?
how can i make the text bold inside the &body?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)

  #2 (permalink)  
Old Sep 27th, 2004, 07:21
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Monie..... you cannot achieve this.

The encoding of the mailto line allows ASCII characters (At a push, unicode) only.... it does not allow markup to be rendered on processing.

Sorry!

Why dont you have the WEBSERVER send the email. You will be able to format it however you like then.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #3 (permalink)  
Old Sep 28th, 2004, 01:55
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
actually...
I dont know what is the webserver that my university using!
And the user of the syatem want me to do this method, using outlook!

thanx anyway for the idea!
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
  #4 (permalink)  
Old Sep 28th, 2004, 10:19
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,620
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
use:
<%=Server.URLEncode(myemailfield)%>

that will change your symbols into codes.

then just use response.write as you normally would
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
  #5 (permalink)  
Old Sep 28th, 2004, 14:52
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
<blockquote id="quote" class="ffs">quote:<hr height="1" noshade="noshade" id="quote" />Originally posted by spinal007
use:
<%=Server.URLEncode(myemailfield)%>

that will change your symbols into codes.

then just use response.write as you normally would<hr height="1" noshade="noshade" id="quote" /></blockquote id="quote">Spinal.... you cannot achieve what monie is attempting without using the webserver to send the email. It simply cannot be achieved in a mailto link.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #6 (permalink)  
Old Sep 28th, 2004, 15:05
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,620
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
oooooooooohhhhhhhhhhhhh!!!!!!!!!!!!!
sorry, I thought the problem was that he wanted to send html from one page to another
i didn't realise he wanted to send an email...

I've read the topic through now, sorry!
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
  #7 (permalink)  
Old Sep 28th, 2004, 15:16
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Closed Thread

Tags
mailto, function

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
mailto and IE6 Don Logan Web Page Design 12 Apr 30th, 2006 16:48
Can you specify a subject with #mailto: Ivy_58201 Web Page Design 2 Mar 13th, 2006 15:49
mailto email function Monie Classic ASP 6 Sep 23rd, 2004 11:35
mailto javascript Monie JavaScript Forum 2 Sep 21st, 2004 09:53
Mailto: Physt Flash & Multimedia Forum 1 Jul 22nd, 2004 14:00


All times are GMT. The time now is 09:39.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43