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.


 Subscribe in a reader

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

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Sep 27th, 2004, 03:55
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Sep 27th, 2004, 07:21
Rob's Avatar
Rob Rob is online now
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,186
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Sep 28th, 2004, 01:55
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Sep 28th, 2004, 10:19
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Sep 28th, 2004, 14:52
Rob's Avatar
Rob Rob is online now
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,186
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
<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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Sep 28th, 2004, 15:05
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Sep 28th, 2004, 15:16
Rob's Avatar
Rob Rob is online now
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,186
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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 23:55.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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