Results 1 to 9 of 9

Thread: mailto: protocol

  1. #1
    Join Date
    Aug 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default mailto: protocol

    Hi,

    Can we put HTML tags inside the mailto: string? I want to put an hidden field inside the mailto: string. I tried the follwing example.

    <a href="mailto:user@host.name?subject=hi&body=hi%2C%3Cinput%20type%3Dhidden%20value%3Dhabeeb%20id%3Dk%3E">e-Mail</a>

    but it is showing the tag in the mail message. I want it to be hidden.
    Can anyone tell me how to solve this problem.

    Regards,
    Habeeb.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I think you would need to use a server side mail program and a form that can set the the content as HTML. Otherwise it will most likely be sent as text.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks

    Thanks for the response.

    Can u explain more clearly...

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It really depends upon what you have available to you vis a vis your server. I believe that you can also use a third party server for this. I know you can for just regular email. So, it is likely that you could do it for HTML formatted email as well. The two most popular server side languages are asp and PHP.

    http://www.google.com/search?hl=en&l...il&btnG=Search

    http://www.google.com/search?hl=en&l...il&btnG=Search

    And there is a program named formmail available on many hosts.

    http://www.google.com/search?hl=en&c...+email&spell=1
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Aug 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default mailto: protocol

    Hi,
    I think u did not understood my problem. I am sending an e-mail message to the user. This e-mail message contains a hyperlink(<a href=mailto:...>). When clicked, it creates a new mail message, with some data. This data contains some Id also. But I don't want the user to view this Id. So I tried putting this id in the hidden field, by using <input type='hidden' ...>. But even if we put the Id in hidden field, it is visible(Entire hidden field HTML element is visible) in the new mail message.

  6. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I think it's just something like:
    mailto:addr@your.com&subject=hello&body=some&#37;20text%20here
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    As djr33 said, there's no way to specify that it is text/html from a link.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by djr33 View Post
    I think it's just something like:
    mailto:addr@your.com&subject=hello&body=some%20text%20here
    Quote Originally Posted by Twey View Post
    As djr33 said, there's no way to specify that it is text/html from a link.
    He really said that? You are so intuitive, Twey. In any case, there is no way to do it unless you go to the server side. Once you go that route, there are different ways of going about it depending upon what is available to you on your server. Your host (if they have anything that can do this, and good online or other help available on it) would be your best source of information. Failing that, the search links I posted previously in this thread will point you in the right direction once you decide which general method to use. Third party server utilities (if you go that route) may also have help on this topic.

    The bottom line is, that unlike in javascript where usually a single line of code or one branching statement will do a thing like this, since it cannot be done in javascript, you must find an alternative that suits your situation.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    He really said that? You are so intuitive, Twey.
    Oh -- it appears I was thinking of a different thread :-\
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •