Email

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brian Wilson

    Email

    Anyone know how I can add a "?Subject" line to this?

    <head>
    <script>
    var sdomain='brianj enny.net';
    var email='webmaste r';
    var myaddress=(''+e mail+'@'+sdomai n+'');
    </script>
    <title>Email</title>
    </head>

    <body>
    <script>
    document.write( "<a href=mailto:"+m yaddress+" class=textlink
    style=color:bla ck;>"+myaddress +"</a>div>");
    </script>
    </body>


  • Cycloneous Echevarria

    #2
    Re: Email

    Brian, copy / paste the code below.

    Orlando, aka, Cycloneous


    <html>
    <head>
    <script>
    var sdomain='brianj enny.net';
    var email='webmaste r';
    var myaddress= email+'@'+sdoma in+'';
    </script>
    <title>Email</title>
    </head>

    <body>
    <script>
    document.write( "<div><a href='mailto:"+ myaddress+ "?subject=H ello
    World!'" + " class=textlink style=color:bla ck;>"+myaddress +"</a><div>");
    </script>
    </body>
    </html>

    Comment

    • Randy Webb

      #3
      Re: Email

      Cycloneous Echevarria wrote:[color=blue]
      > Brian, copy / paste the code below.
      >
      > Orlando, aka, Cycloneous
      >[/color]


      And then ask why it still doesn't work properly.



      --
      Randy
      Chance Favors The Prepared Mind
      comp.lang.javas cript FAQ - http://jibbering.com/faq/

      Comment

      • Dominique

        #4
        Re: Email

        as far as i can see it should work quite fine...


        "Randy Webb" <hikksnotathome @aol.com> wrote in message
        news:2P-dnZM3zK3sxgfdRV n-vA@comcast.com. ..[color=blue]
        > Cycloneous Echevarria wrote:[color=green]
        > > Brian, copy / paste the code below.
        > >
        > > Orlando, aka, Cycloneous
        > >[/color]
        >
        >
        > And then ask why it still doesn't work properly.
        >
        >
        >
        > --
        > Randy
        > Chance Favors The Prepared Mind
        > comp.lang.javas cript FAQ - http://jibbering.com/faq/[/color]


        Comment

        • Randy Webb

          #5
          Re: Email

          Dominique wrote:

          <--top posting fixed-->



          [color=blue]
          > "Randy Webb" <hikksnotathome @aol.com> wrote in message
          > news:2P-dnZM3zK3sxgfdRV n-vA@comcast.com. ..
          >[color=green]
          >>Cycloneous Echevarria wrote:
          >>[color=darkred]
          >>>Brian, copy / paste the code below.
          >>>
          >>>Orlando, aka, Cycloneous
          >>>[/color]
          >>
          >>
          >>And then ask why it still doesn't work properly.
          >>[/color][/color]
          [color=blue]
          > as far as i can see it should work quite fine...[/color]

          And you are making the assumption that you can auto-add a subject line
          via the mailto: protocol, and you can't do that *reliably*.

          --
          Randy
          Chance Favors The Prepared Mind
          comp.lang.javas cript FAQ - http://jibbering.com/faq/

          Comment

          • Brian Wilson

            #6
            Re: Email

            Yes, it does work---- Copy the text below: Make sure the document.write is
            all on one line.

            <html>
            <head>
            <script>
            var sdomain='brianj enny.net';
            var email='webmaste r';
            var myaddress= email+'@'+sdoma in+'';
            </script>
            </head>

            <body>
            <script>documen t.write("<font size='+1', font face='Times New Roman'>" +
            "<a href='mailto:"+ myaddress+"?sub ject=Web Mail'" + " class=textlink
            style=color:bla ck;>"+myaddress +"</a>");</script>
            </body>
            </html>


            Comment

            • Brian Wilson

              #7
              Re: Email

              Yes, it works --- Copy the text below making sure that the document.write
              line is all on one line.

              <head>
              <script>
              var sdomain='brianj enny.net';
              var email='webmaste r';
              var myaddress= email+'@'+sdoma in+'';
              </script>
              </head>

              <body>
              <script>documen t.write("<font size='+1', font face='Times New Roman'>" +
              "<a href='mailto:"+ myaddress+"?sub ject=Web Mail'" + " class=textlink
              style=color:bla ck;>"+myaddress +"</a>");</script>
              </body>


              Comment

              • Michael Winter

                #8
                Re: Email

                On Thu, 06 May 2004 23:57:46 GMT, Brian Wilson <blwilson8@comc ast.net>
                wrote:
                [color=blue]
                > Yes, it works --- Copy the text below making sure that the document.write
                > line is all on one line.[/color]

                You're missing the point. The mailto: scheme itself is unreliable.
                Although a lot of browsers and mail clients will support it and the
                extension that allows the specification of the subject and other headers,
                the support is not universal. Furthermore, intelligent spam bots could
                easily get your e-mail address, so the tactic is useless. Finally, using a
                mail client exposes the sender's e-mail address, which they may not want
                to do.

                Use a form mail script. There are many free ones available. Google for
                "free form mail", Response-o-Matic, or Bravenet for many options.
                [color=blue]
                > <script>[/color]

                This should read

                <script type="text/javascript">

                The type attribute is required.
                [color=blue]
                > <script>documen t.write("<font size='+1', font face='Times New Roman'>" +[/color]

                The FONT element is deprecated, has been for many years, and should no
                longer be used. Use style sheets. Setting specific font sizes and type
                faces is also generally frowned-upon. That can be debated in
                comp.infosystem s.www.authoring.stylesheets, though.

                [snip]

                Mike

                --
                Michael Winter
                M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

                Comment

                • Richard Cornford

                  #9
                  Re: Email

                  Brian Wilson wrote:[color=blue]
                  > Yes, it works --- Copy the text below making sure that the
                  > document.write line is all on one line.[/color]
                  <snip>

                  No it does not work (unless you use a very restricted criteria for
                  "works"). The first problem is the mailto: protocol, which pre-supposed
                  that the browser is configured to employ a default e-mail program (or
                  can act as one itself) and that that e-mail program is itself
                  appropriately configured. On an Intranet that can be expected to be the
                  case, but on the Internet the existence and use of a web browser implies
                  nothing about e-mail software, its availability, configuration or
                  functionality.

                  The next problem is attempting to append a subject to the message. I was
                  asked to do this some years ago on an Intranet that used Lotus notes as
                  an e-mail client. It worked with the basic mailto URL, opening the
                  appropriate part of Lotus Notes with the e-mail address in the "To"
                  line, but attempting to add anything else (subject, body etc.) promptly
                  stopped it from working at all. (A server-based alternative was
                  eventually used instead)

                  So while Outlook might allow all sots of possibilities in mailto URLs
                  beyond the basic recipient address, using any of them is actually likely
                  to render the result non-functional with other e-mail programs.

                  With such a list of problems stacking up against mailto URLs in use on
                  the Internet, it is now generally accepted that they are terminally
                  broken and should be abandoned in favour of server-side alternatives,
                  which are available as remote services so local server-script support is
                  not even required in order to avoid the mailto problems.

                  Richard.


                  Comment

                  • Chris

                    #10
                    Re: Email

                    Jeez I've not long come back to this mailing list after abt 2 years out and
                    having read about 4 of your posts, you seem to provide no useful
                    information, nor do you do anything except utter your anal retentive
                    gibberish

                    if it isn't constructive - it has to be a 12 year old posting it, after he's
                    just had his lunch money stolen by the "big" kids in the year below him....

                    Also working fine should be....

                    <script type="text/javascript">
                    var a="me",b="@my.c om",c="?subject =email"
                    function pullAddress(){
                    return a + b + c;
                    }
                    </script>

                    <a href="" onMouseover="th is.href='mailto :' + pullAddress()"> Mail me...</a>

                    using a mouseover will actually stop address spyders from finding your email
                    address, what a lot of people tend to forget is that all spyders wait until
                    the page is loaded and read body.innerHTML which will surprise surprise
                    include your full email address
                    they don't however trip event handlers like onmouseover

                    using onmouseover your email link also acts as a normal link as users will
                    see the true email address in the status bar

                    - sorry ppl that got a little bit long - have been on the caffeine again,
                    something about this list, i always drink way too much coffee....

                    "Randy Webb" <hikksnotathome @aol.com> wrote in message
                    news:L5adna1hDc JCMAfdRVn-sA@comcast.com. ..[color=blue]
                    > Dominique wrote:
                    >
                    > <--top posting fixed-->
                    >
                    > http://www.jibbering.com/faq/
                    >
                    >[color=green]
                    > > "Randy Webb" <hikksnotathome @aol.com> wrote in message
                    > > news:2P-dnZM3zK3sxgfdRV n-vA@comcast.com. ..
                    > >[color=darkred]
                    > >>Cycloneous Echevarria wrote:
                    > >>
                    > >>>Brian, copy / paste the code below.
                    > >>>
                    > >>>Orlando, aka, Cycloneous
                    > >>>
                    > >>
                    > >>
                    > >>And then ask why it still doesn't work properly.
                    > >>[/color][/color]
                    >[color=green]
                    > > as far as i can see it should work quite fine...[/color]
                    >
                    > And you are making the assumption that you can auto-add a subject line
                    > via the mailto: protocol, and you can't do that *reliably*.
                    >
                    > --
                    > Randy
                    > Chance Favors The Prepared Mind
                    > comp.lang.javas cript FAQ - http://jibbering.com/faq/[/color]


                    Comment

                    • Richard Cornford

                      #11
                      Re: Email

                      Chris wrote:[color=blue]
                      > Jeez I've not long come back to this mailing list after abt 2 years[/color]

                      This group's FAQ recommended the normal Usenet practice of not top
                      posting replies over full quotes even 2 years ago.

                      <snip>[color=blue]
                      > Also working fine should be....
                      >
                      > <script type="text/javascript">
                      > var a="me",b="@my.c om",c="?subject =email"
                      > function pullAddress(){
                      > return a + b + c;
                      > }
                      > </script>
                      >
                      > <a href="" onMouseover="th is.href='mailto :' + pullAddress()"> Mail
                      > me...</a>
                      >
                      > using a mouseover will actually stop address spyders from finding
                      > your email address,[/color]
                      <snip>

                      What happens for people who use keyboard navigation?

                      But the primary problems is - mailto - so any method of creating a
                      mailto URL fails to solve the real problem.

                      Richard.


                      Comment

                      • Randy Webb

                        #12
                        Re: Email

                        Chris wrote:[color=blue]
                        > Jeez I've not long come back to this mailing list after abt 2 years out and
                        > having read about 4 of your posts, you seem to provide no useful
                        > information, nor do you do anything except utter your anal retentive
                        > gibberish[/color]

                        If me saying mailto is unreliable is gibberish, then 90% of the internet
                        is gibberish because it is not an opinion I hold alone. So, let me
                        explain. My default IE install (IE 6) has NO email program associated
                        with it. When I click on a mailto:, I get asked to install OE which I
                        wont. Its got more security flaws than I care to think about. But my
                        email address (one of them anyway) is through comcast.net and is
                        web-based. There's no way for you to open that page, fill in the TO: and
                        Subject lines via a link. Its impossible. The second set of email
                        addresses I have are AOL email addresses. I refuse to let IE kick me
                        into AOL to send an Email. The reason I won't is because I have
                        different names for different purposes, I will choose what email address
                        I want to use for what mails, not a website.

                        If you want to send email, from a website, and it be reliable, use a
                        form, submit the data to the server, and then send it from the server.

                        [color=blue]
                        > if it isn't constructive - it has to be a 12 year old posting it, after he's
                        > just had his lunch money stolen by the "big" kids in the year below him....
                        >
                        > Also working fine should be....
                        >
                        > <script type="text/javascript">
                        > var a="me",b="@my.c om",c="?subject =email"
                        > function pullAddress(){
                        > return a + b + c;
                        > }
                        > </script>
                        >
                        > <a href="" onMouseover="th is.href='mailto :' + pullAddress()"> Mail me...</a>
                        >
                        > using a mouseover will actually stop address spyders from finding your email
                        > address, what a lot of people tend to forget is that all spyders wait until
                        > the page is loaded and read body.innerHTML which will surprise surprise
                        > include your full email address
                        > they don't however trip event handlers like onmouseover
                        >
                        > using onmouseover your email link also acts as a normal link as users will
                        > see the true email address in the status bar[/color]

                        A slight improvement would be to document.write the link so that people
                        with script disabled won't see the link, since it won't "work" as it
                        should without scripting enabled, even though the href property you are
                        trying to invoke is unreliable.

                        --
                        Randy
                        Chance Favors The Prepared Mind
                        comp.lang.javas cript FAQ - http://jibbering.com/faq/

                        Comment

                        • kaeli

                          #13
                          Re: Email

                          In article <EJrmc.1022$vy. 663@newssvr32.n ews.prodigy.com >,
                          orlando@engr.uc onn.edu enlightened us with...[color=blue]
                          > Brian, copy / paste the code below.
                          >[/color]

                          That code works great for IE configured to use Outlook. So, for intranet
                          applications where everyone has IE configured to use Outlook, you're all
                          set.

                          However, if anyone uses any other combo, all bets are off.
                          I myself use Outlook as my mail client at work, but have NO *default*
                          mail client at home. Therefore, it wouldn't work at all for me at home.

                          Good try, though.


                          --
                          --
                          ~kaeli~
                          Practice safe eating - always use condiments.



                          Comment

                          • Cycloneous Echevarria

                            #14
                            Re: Email

                            It will also work for Netscape/Mozilla browser as well. You simply need
                            to have those clients as the default email client.

                            Orlando, aka, Cycloneous

                            kaeli wrote:
                            [color=blue]
                            > In article <EJrmc.1022$vy. 663@newssvr32.n ews.prodigy.com >,
                            > orlando@engr.uc onn.edu enlightened us with...
                            >[color=green]
                            >>Brian, copy / paste the code below.
                            >>[/color]
                            >
                            >
                            > That code works great for IE configured to use Outlook. So, for intranet
                            > applications where everyone has IE configured to use Outlook, you're all
                            > set.
                            >
                            > However, if anyone uses any other combo, all bets are off.
                            > I myself use Outlook as my mail client at work, but have NO *default*
                            > mail client at home. Therefore, it wouldn't work at all for me at home.
                            >
                            > Good try, though.
                            > http://www.ipwebdesign.net/kaelisSpa...ul_mailto.html
                            >[/color]

                            Comment

                            • kaeli

                              #15
                              Re: Email

                              In article <409B89B4.50004 02@engr.uconn.e du>, orlando@engr.uc onn.edu
                              enlightened us with...[color=blue]
                              > It will also work for Netscape/Mozilla browser as well. You simply need
                              > to have those clients as the default email client.
                              >
                              > Orlando, aka, Cycloneous
                              >[/color]

                              Exactly. ;)

                              --
                              --
                              ~kaeli~
                              Time flies like an arrow. Fruit flies like a banana.



                              Comment

                              Working...