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.
|
|
|
|
|
![]() |
||
mailto function
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#3
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
||||
|
||||
|
<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.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#6
|
||||
|
||||
|
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
|
||||
|
||||
|
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| mailto, function |
| Thread Tools | |
|
|
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 |