Re: fix a "sender" name in the "sender" field on email

Discussion in 'HTML' started by Dylan Parry, Mar 17, 2005.

  1. Dylan Parry

    Dylan Parry Guest

    ella wrote:
    > How can I fix a "sender" name in the "sender" field when I
    > click on a hyperlink as that below to send a email from a webpage?


    You cannot.

    > <a href="mailto:?subject=aaaa&body=lllll......">


    The above is non-standard, and is not guaranteed to work anyway. You can
    generally assume, that if the user has a mail client, and that it is
    configured in such a way that the browser is aware of it, then the
    mailto: will work (after a fashion), but the behaviour of such links
    with subject and body etc is less than predictable.

    --
    Dylan Parry
    http://webpageworkshop.co.uk -- FREE Web tutorials and references
     
    Dylan Parry, Mar 17, 2005
    #1
    1. Advertisements

  2. Dylan Parry

    Dan Guest

    Dylan Parry wrote:
    > ella wrote:
    > > <a href="mailto:?subject=aaaa&body=lllll......">

    >
    > The above is non-standard, and is not guaranteed to work anyway. You

    can
    > generally assume, that if the user has a mail client, and that it is
    > configured in such a way that the browser is aware of it, then the
    > mailto: will work (after a fashion), but the behaviour of such links
    > with subject and body etc is less than predictable.


    It isn't actually "nonstandard", since RFC 2368 has supported this
    syntax for quite a while now. (When using this in HTML, though, you
    need to escape the ampersand as &amp;, and you also need to escape any
    special characters like spaces in the parameters as %20.) However, it
    is still true that not all combinations of browsers and e-mail programs
    support such things, so it is indeed safer to use a plain "mailto"
    without extra parameters.

    --
    Dan
     
    Dan, Mar 17, 2005
    #2
    1. Advertisements

  3. Dylan Parry

    ella Guest

    Thank you, Dan... but I really want to know about it because I am setting up
    a mailing system for my office. My boss is urging me.
    I think I should work on another way. Thank you very much, anyway.

    "Dan" <> ¼¶¼g©ó¶l¥ó·s»D:...
    >
    > Dylan Parry wrote:
    >> ella wrote:
    >> > <a href="mailto:?subject=aaaa&body=lllll......">

    >>
    >> The above is non-standard, and is not guaranteed to work anyway. You

    > can
    >> generally assume, that if the user has a mail client, and that it is
    >> configured in such a way that the browser is aware of it, then the
    >> mailto: will work (after a fashion), but the behaviour of such links
    >> with subject and body etc is less than predictable.

    >
    > It isn't actually "nonstandard", since RFC 2368 has supported this
    > syntax for quite a while now. (When using this in HTML, though, you
    > need to escape the ampersand as &amp;, and you also need to escape any
    > special characters like spaces in the parameters as %20.) However, it
    > is still true that not all combinations of browsers and e-mail programs
    > support such things, so it is indeed safer to use a plain "mailto"
    > without extra parameters.
    >
    > --
    > Dan
    >
     
    ella, Mar 19, 2005
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Showjumper
    Replies:
    2
    Views:
    2,077
    Showjumper
    Aug 2, 2003
  2. Xah Lee
    Replies:
    22
    Views:
    1,522
    Tim Roberts
    Mar 21, 2006
  3. Xah Lee
    Replies:
    23
    Views:
    1,419
    Tim Roberts
    Mar 21, 2006
  4. Replies:
    0
    Views:
    482
  5. Tim Williams

    Re: Adding sender name to email

    Tim Williams, Sep 1, 2006, in forum: Python
    Replies:
    1
    Views:
    428
    Jorgen Grahn
    Sep 2, 2006
  6. Icon Iconoclast
    Replies:
    3
    Views:
    707
    Karl Mitschke
    Oct 1, 2009
  7. John Davis
    Replies:
    2
    Views:
    601
    Dave Anderson
    Aug 18, 2003
  8. Xah Lee
    Replies:
    21
    Views:
    1,172
    Tim Roberts
    Mar 21, 2006
Loading...