• html in an email

    From Phillip Helbig (undress to reply@21:1/5 to All on Mon Feb 15 15:09:10 2021
    In article <s0e1nc$vh4$1@gioia.aioe.org>, bill <william@TechServSys.com> writes:

    I want to embed some links in an email. I am asking waiting list
    individuals to tell my server that they are still interested in
    staying on the waiting list.

    If they know still know what the list ist, then they probably want to
    stay on it. If they've forgotten, they might be hesitant to click on a
    link embedded in an email, as that is used for various malicious
    behaviour. Considering that it's a mailing list, wouldn't it make more
    sense to subscribe and unsubscribe via email? Why not just put the
    unsubscribe instructions as a footer at the bottom of each email sent to
    the list? That could be a link, but then, being in a regular list
    email, its purpose would be more obvious, or something like "send an
    email with no body and subject UNSUBSCRIBE to foo@bar.invalid to
    unsubscribe".

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From bill@21:1/5 to All on Mon Feb 15 09:50:20 2021
    I want to embed some links in an email. I am asking waiting list
    individuals to tell my server that they are still interested in
    staying on the waiting list.

    I can just put the urls on the page but that is fairly messy. I
    tried using the code for an anchor, but the full url is displayed
    not just the part between <a...> and the </a>.

    Any suggestions are appreciated.
    -bill

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From JJ@21:1/5 to bill on Mon Feb 15 23:20:46 2021
    On Mon, 15 Feb 2021 09:50:20 -0500, bill wrote:
    I want to embed some links in an email. I am asking waiting list
    individuals to tell my server that they are still interested in
    staying on the waiting list.

    I can just put the urls on the page but that is fairly messy. I
    tried using the code for an anchor, but the full url is displayed
    not just the part between <a...> and the </a>.

    Any suggestions are appreciated.
    -bill

    Make sure the email client application can compose HTML email. If not, the
    use others that can. If the application supports it, it should have a
    feature to add links.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From bill@21:1/5 to All on Mon Feb 15 12:08:52 2021
    On 2/15/2021 10:09 AM, Phillip Helbig (undress to reply) wrote:
    In article <s0e1nc$vh4$1@gioia.aioe.org>, bill <william@TechServSys.com> writes:

    I want to embed some links in an email. I am asking waiting list
    individuals to tell my server that they are still interested in
    staying on the waiting list.

    If they know still know what the list ist, then they probably want to
    stay on it. If they've forgotten, they might be hesitant to click on a
    link embedded in an email, as that is used for various malicious
    behaviour. Considering that it's a mailing list, wouldn't it make more
    sense to subscribe and unsubscribe via email? Why not just put the unsubscribe instructions as a footer at the bottom of each email sent to
    the list? That could be a link, but then, being in a regular list
    email, its purpose would be more obvious, or something like "send an
    email with no body and subject UNSUBSCRIBE to foo@bar.invalid to unsubscribe".

    Philip,
    This is waiting list for a rescue Irish Wolfhound not a mailing list.
    -bill

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From bill@21:1/5 to Volker Englisch on Mon Feb 15 12:12:35 2021
    On 2/15/2021 11:39 AM, Volker Englisch wrote:
    bill <william@techservsys.com> wrote:
    I want to embed some links in an email. I am asking waiting list
    individuals to tell my server that they are still interested in
    staying on the waiting list.

    I can just put the urls on the page but that is fairly messy. I
    tried using the code for an anchor, but the full url is displayed
    not just the part between <a...> and the </a>.

    Usually it's not necessary to use html for that at all. Just put a line
    like

    http://myserver.example.com/mylink.html

    or something like this into your mail. And add a description what the
    link is for above or below that line.


    Yes, that works, but looks messy. OTOH, it is simple and easy.
    -bill

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Volker Englisch@21:1/5 to bill on Mon Feb 15 16:39:45 2021
    bill <william@techservsys.com> wrote:
    I want to embed some links in an email. I am asking waiting list
    individuals to tell my server that they are still interested in
    staying on the waiting list.

    I can just put the urls on the page but that is fairly messy. I
    tried using the code for an anchor, but the full url is displayed
    not just the part between <a...> and the </a>.

    Usually it's not necessary to use html for that at all. Just put a line
    like

    http://myserver.example.com/mylink.html

    or something like this into your mail. And add a description what the
    link is for above or below that line.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Philip Herlihy@21:1/5 to All on Mon Feb 15 18:44:56 2021
    In article <s0e1nc$vh4$1@gioia.aioe.org>, william@TechServSys.com says...

    I want to embed some links in an email. I am asking waiting list
    individuals to tell my server that they are still interested in
    staying on the waiting list.

    I can just put the urls on the page but that is fairly messy. I
    tried using the code for an anchor, but the full url is displayed
    not just the part between <a...> and the </a>.

    Any suggestions are appreciated.
    -bill

    I think it depends on what email client/editor you're using. In Outlook (Office application Outlook) you simply select some text, right-click, pick "Hyperlink..." and choose to "link to" an email address. Outlook (when in HTML mode, of course) generates a correct mailto: link, hiding the URL (email address) and displaying only the text you selected. Other editors may go about it slightly differently, but the principle must be the same. However, enough HTML emails arrive with a warning that "if the link doesn't work for you, then copy and paste this humungous URL into your browser..." to suggest it's useful to include the full URL anyway!

    --

    Phil, London

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?B?8J+YiSBHb29kIEd1eSDwn5iJ?@21:1/5 to All on Mon Feb 15 19:05:00 2021
    This is a multi-part message in MIME format.
    The main message is in HTML format to make the point about html links in webpages.


    --

    With over 1.2 billion devices now running Windows 10, customer
    satisfaction is higher than any previous version of windows.


    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="https://fonts.googleapis.com/css?family=Brawler"
    rel="stylesheet">
    <style>
    box-sizing:{}@keyframes test{0%{border-color:darkgreen}50%{border-color:red}70%{border-color:yellow}100%{border-color:grey}0%{border-color:darkgreen}0%{border-color:darkgreen}0%{border-color:darkgreen}}@keyframes newsgroups{0%{border-color:red}16.
    66666667%{border-color:orange}33.33333333%{border-color:yellow}50%{border-color:green}66.66666667%{border-color:blue}83.33333333%{border-color:indigo}100%{border-color:violet}}body{background-color:#d6cdab;font-family:'Brawler','Montserrat','Roboto','
    Open+Sans','sans-serif','serif';margin:0;padding:0 0 20px 0}div.newsgroups{border:solid transparent 10px;background-color:#eee;animation-name:newsgroups;animation-duration:15s;animation-iteration-count:infinite;animation-direction:alternate-reverse;
    padding:10px;font-size:18px;width:80%;margin:auto}ul{list-style-type:square}img{width:100%;display:inline-block;border:12px solid #00f}img,div{box-sizing:border-box} p {text-align: justify;}
    </style>
    </head>
    <body text="#008000" bgcolor="#faf0e6">
    <div class="newsgroups">
    <div class="moz-cite-prefix">On 15/02/2021 14:50, bill wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:s0e1nc$vh4$1@gioia.aioe.org"><br>
    I can just put the urls on the page but that is fairly messy.  I
    tried using the code for an anchor, but the full url is
    displayed not just the part between &lt;a...&gt; and the
    &lt;/a&gt;. <br>
    Any suggestions are appreciated. <br>
    -bill <br>
    </blockquote>
    <p>You must be doing something wrong. If you create a correct link
    then it should only show something like "Confirm your name on
    the waiting list" etc etc</p>
    <p>How are you creating this link? Perhaps you can show us your
    page.</p>
    <pre> <code>
    <a href="https://www.microsoft.com">This will show only this text.</a>
    </code>
    </pre>
    <a href="https://i.imgur.com/48sdID3.png"> <img
    moz-do-not-send="true" src="https://i.imgur.com/48sdID3.png"
    alt="[ Windows 10 Support ]" width="708"></a> </div>
    <p><br>
    </p>
    <div class="moz-signature">-- <br>
    <div style="background-color: blue; color: yellow; font-weight:
    bolder; display: grid; align-items: center; justify-items:
    center; min-height: 80px; font-size: 1.2em; border-radius: 50px;
    ">
    <p>With over 1.2 billion devices now running Windows 10,
    customer satisfaction is higher than any previous version of
    windows.</p>
    </div>
    </div>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arno Welzel@21:1/5 to All on Mon Feb 15 21:14:58 2021
    bill:

    I want to embed some links in an email. I am asking waiting list
    individuals to tell my server that they are still interested in
    staying on the waiting list.

    I can just put the urls on the page but that is fairly messy. I
    tried using the code for an anchor, but the full url is displayed
    not just the part between <a...> and the </a>.

    Because the mail was not send as HTML. You need to create an HTML mail
    to include links this way,


    --
    Arno Welzel
    https://arnowelzel.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Volker Englisch@21:1/5 to bill on Mon Feb 15 21:22:04 2021
    bill <william@techservsys.com> wrote:
    I want to embed some links in an email. I am asking waiting list
    individuals to tell my server that they are still interested in
    staying on the waiting list.

    I can just put the urls on the page but that is fairly messy. I
    tried using the code for an anchor, but the full url is displayed
    not just the part between <a...> and the </a>.

    Another approach:

    <a href="http://somewhere.example.com/link.html">
    Klick here to ...


    But, as Arno mentioned, the mail has to be declared as text/html in the *header*

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eli the Bearded@21:1/5 to Volker Englisch on Mon Feb 15 22:44:32 2021
    In comp.infosystems.www.authoring.html, Volker Englisch <eh41@rrzli.de> wrote:
    bill <william@techservsys.com> wrote:
    I want to embed some links in an email. I am asking waiting list
    individuals to tell my server that they are still interested in
    staying on the waiting list.
    ...
    But, as Arno mentioned, the mail has to be declared as text/html in the *header*

    comp.mail.misc or comp.mail.mime is where this is topical. Both are very
    quiet, but there's apparently a lot of mail.misc traffic in
    comp.mail.sendmail.

    Setting the right headers is fairly simple to understand if you are
    comfortable composing HTML by hand. Getting the tools to set headers
    manually is trickier. I think most people are going to be using tools
    that want to set the headers for them, and really becomes a matter of
    knowing your tools and how to use them.

    When _I_ want to compose HTML email, I compose a simple piece of HTML
    then set headers like:

    Mime-Version: 1.0
    Content-Type: text/html; charset="utf-8"
    Content-Transfer-Encoding: quoted-printable

    And then use mmencode to turn the plain HTML into quoted-printable HTML.

    I'm probably one out of a million doing it that way however[*]. And in
    all likelihood, I'd make it multipart/alternative with text/plain and
    text/html parts, and that's a whole extra layer of encoding to create by
    hand. Then if I wanted to include images, then it would be
    multipart/related wrapping multipart/alternative, at which point a human
    hand encoding it is very likely to start making errors.

    There's rules about adding extra hyphens to the boundaries, rules
    about what headers are expected, guidelines about ordering parts,
    etc. Roughly it looks like this:

    Mime-Version: 1.0
    Content-Type: multipart/related; boundary="--related-part--"

    ----related-part--
    Content-Type: multipart/alternative; boundary="--alternative-part--"

    ----alternative-part--
    Content-Type: text/plain; charset="utf-8"

    Hey! You! Click on the link.

    https://www.example.com/

    ----alternative-part--
    Content-Type: text/plain; charset="utf-8"
    Content-Transfer-Encoding: quoted-printable

    <html><head><title></title></head><body><div>Hey! You! Click =
    on the link.</div><a href=3D="https://www.example.com/"><img =
    src=3D"cid:imageid" width=3D"200" height=3D"100" alt=3D"Image=
    Link"></a></body></html>

    ----alternative-part----
    ----related-part--
    Content-Type: image/jpeg; name="link.jpg"
    Content-Disposition: inline; filename="link.jpg"
    Content-Transfer-Encoding: base64
    Content-ID: <imageid>

    [base64 encoded JPEG here]
    ----related-part----

    For myself, I wouldn't bother a bare link works well enough. But
    sometimes I'm paid to do more.

    Elijah
    ------
    [*] This is odd even in rarified Internet corners where hand coding is common.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Randal L. Schwartz@21:1/5 to All on Mon Feb 15 22:43:39 2021
    "Arno" == Arno Welzel <usenet@arnowelzel.de> writes:

    Arno> Because the mail was not send as HTML. You need to create an HTML
    Arno> mail to include links this way,

    And then your mail goes right into my "very likely spam" folder, and
    once a week, I sometimes paw through that if I'm bored.

    If you send text/html, be sure you *also* send text/plain, and that the
    two versions generally agree.

    --
    Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Perl/Dart/Flutter consulting, Technical writing, Comedy, etc. etc.
    Still trying to think of something clever for the fourth line of this .sig

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)