SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jan 2005
    Location
    Columbus, OH
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question preformatted mailto: email message within javascript

    In one of my web pages, I'm trying to preformat a "mailto:" URL email message (within javascript). When I have my browser (IE 6) email tool set to Outlook Express, the formatting works. When I have my browser email tool set to Yahoo Mail, the formatting is lost. Is ther a way I can get the formatting to work in Yahoo mail, and across all other mail tools?

    I've tried using different character sets (hex, octal, and excape sequences {like \n}, but they all get stripped out. Here is a similar javascript function that I'm using:

    function go(){
    window.location='user@domain.com?subject=Subject text&body=Body text line 1.%0ALine 2.\n';
    }

    Thanks!

  2. #2
    SitePoint Wizard gold trophysilver trophybronze trophy dc dalton's Avatar
    Join Date
    Nov 2004
    Location
    Right behind you, watching, always watching.
    Posts
    5,431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To the best of my knowledge preformatted mailto's only work on an email client that is installed on a persons computer (IE: outlook, outlook express, thunderbird) --- remember Yahoo mail is a web based application.

    To be able to do what you want would require your website communicating with Yahoo's ...... this is not something that can be done with a plain html mailto or javascript with that fact ........ an knowing how most of these companies have locked down access to their mail servers I dont honestly think it could be done with a server-side language like PHP or Java..

  3. #3
    SitePoint Member
    Join Date
    Jan 2005
    Location
    Columbus, OH
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thx DC. I suspected it was not doable, but figured it was worth asking.


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
  •