Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #5717 > unrolled thread

HTML code for 'send an e-mail to'

Started byRoger Darlington <rogerarm@freeuk.com>
First post2019-03-15 07:45 +0000
Last post2019-03-17 21:43 +0000
Articles 20 — 11 participants

Back to article view | Back to comp.sys.acorn.programmer


Contents

  HTML code for 'send an e-mail to' Roger Darlington <rogerarm@freeuk.com> - 2019-03-15 07:45 +0000
    Re: HTML code for 'send an e-mail to' Alan Wrigley <usenet@alanwrigley.me.uk> - 2019-03-15 09:12 +0000
      Re: HTML code for 'send an e-mail to' Alan Adams <alan@adamshome.org.uk> - 2019-03-15 09:54 +0000
        Re: HTML code for 'send an e-mail to' Alan Wrigley <usenet@alanwrigley.me.uk> - 2019-03-15 11:08 +0000
        Re: HTML code for 'send an e-mail to' Theo <theom+news@chiark.greenend.org.uk> - 2019-03-15 11:29 +0000
        Re: HTML code for 'send an e-mail to' Alexander Ausserstorfer <bavariasound@chiemgau-net.de> - 2019-04-06 18:18 +0100
          Re: HTML code for 'send an e-mail to' Steve Fryatt <news@stevefryatt.org.uk> - 2019-04-07 10:16 +0100
            Re: HTML code for 'send an e-mail to' Alexander Ausserstorfer <bavariasound@chiemgau-net.de> - 2019-04-07 19:12 +0100
              Re: HTML code for 'send an e-mail to' Steve Fryatt <news@stevefryatt.org.uk> - 2019-04-09 21:33 +0100
    Re: HTML code for 'send an e-mail to' Jim Nagel <jnews18c@abbeypress.co.uk> - 2019-03-15 23:41 +0000
      Re: HTML code for 'send an e-mail to' Roger Darlington <rogerarm@freeuk.com> - 2019-03-16 07:41 +0000
        Re: HTML code for 'send an e-mail to' Alan Wrigley <usenet@alanwrigley.me.uk> - 2019-03-16 09:01 +0000
          Re: HTML code for 'send an e-mail to' Jim Nagel <jnews18c@abbeypress.co.uk> - 2019-03-16 13:11 +0000
            Re: HTML code for 'send an e-mail to' Richard Darby <news@rjdarby.co.uk> - 2019-03-16 16:54 +0000
        Re: HTML code for 'send an e-mail to' "John Williams (News)" <UCEbin@tiscali.co.uk> - 2019-03-16 09:18 +0000
          Re: HTML code for 'send an e-mail to' Alan Wrigley <usenet@alanwrigley.me.uk> - 2019-03-16 10:30 +0000
            Re: HTML code f / OT jammy Jim Nagel <jnews18c@abbeypress.co.uk> - 2019-03-16 12:42 +0000
      Re: HTML code for 'send an e-mail to' Steve Fryatt <news@stevefryatt.org.uk> - 2019-03-16 10:19 +0000
    Re: HTML code for 'send an e-mail to' David Higton <dave@davehigton.me.uk> - 2019-03-16 18:51 +0000
      Re: HTML code for 'send an e-mail to' Alex Macfarlane Smith <nospam@archifishal.co.uk> - 2019-03-17 21:43 +0000

#5717 — HTML code for 'send an e-mail to'

FromRoger Darlington <rogerarm@freeuk.com>
Date2019-03-15 07:45 +0000
SubjectHTML code for 'send an e-mail to'
Message-ID<81dd079557.rogerarm@rogerarm.freeuk.com>
In my Wildflowerfinder website I have put the following line for 
readers who wish to contact me:

<a href="mailto:rogerarm@freeuk.com?subject=Submitted%3A%20Unknown%20W 
ildflower%20Photograph&body=Where%20Found:%0A%0DDate%20Found:%20%0A">

It works perfectly on RO4. and other RO OS's.

But sometimes doesn't using on Firefox on a Windows7 computer (but 
only sort of..) On Windows 7 Firefox it gives a choice of   4 e-mail 
programs:

Windows Live Mail
Yahoo Mail
Yahoo Mail
Google Mail

I don't use any of those myself, but I clicked on Windows Live Mail
and that did automatically insert rogerarm@freeuk.com into the Send-To 
box. HURRAY!

I then selected Google Mail instead and that brought up Gmail but 
didn't fill the Send-To box in with anything!  [I'm not actually 
registered with Google or Gmail, so maybe that makes a difference, but 
I doubt it. A reader of my website allerted mw=e to the fact that it 
didn't work with Gmail on his computer, and he is presumably 
registered with both Google and Gmail]

Have Google written their Gmail thing correctly?

Or maybe I haven't written my code correctly?

How do I make it work for whatever e-mail client folk are using?

Does the code need to be 3 pages long to work?

-- 

Cheers
Roger
Never use just one cooking pot when you can make do with all of them

[toc] | [next] | [standalone]


#5718

FromAlan Wrigley <usenet@alanwrigley.me.uk>
Date2019-03-15 09:12 +0000
Message-ID<gemini.poehk10006tcz02hc.usenet@alanwrigley.me.uk>
In reply to#5717
Roger Darlington <rogerarm@freeuk.com> wrote:

> Have Google written their Gmail thing correctly?
> 
> Or maybe I haven't written my code correctly?
> 
> How do I make it work for whatever e-mail client folk are using?
> 
> Does the code need to be 3 pages long to work?

I always put a contact form on my websites. It avoids putting email
addresses directly into a web page and also does away with the need to cater
for different email clients.

Alan

-- 
RISC OS - you know it makes cents

[toc] | [prev] | [next] | [standalone]


#5719

FromAlan Adams <alan@adamshome.org.uk>
Date2019-03-15 09:54 +0000
Message-ID<b3a2139557.Alan.Adams@ArmX6.adamshome.org.uk>
In reply to#5718
In message <gemini.poehk10006tcz02hc.usenet@alanwrigley.me.uk>
          Alan Wrigley <usenet@alanwrigley.me.uk> wrote:

> Roger Darlington <rogerarm@freeuk.com> wrote:

>> Have Google written their Gmail thing correctly?
>> 
>> Or maybe I haven't written my code correctly?
>> 
>> How do I make it work for whatever e-mail client folk are using?
>> 
>> Does the code need to be 3 pages long to work?

> I always put a contact form on my websites. It avoids putting email
> addresses directly into a web page and also does away with the need to cater
> for different email clients.

> Alan

I'd agree with that.

The problem with mailto: is that different browsers respect different 
parts of the message - some only fill in the TO address -  and then they 
need to be able to launch the email client on the computer, which doesn't 
always work.

A contact form does require server-side processing, often using php.

-- 
Alan Adams, from Northamptonshire
alan@adamshome.org.uk
http://www.nckc.org.uk/

[toc] | [prev] | [next] | [standalone]


#5720

FromAlan Wrigley <usenet@alanwrigley.me.uk>
Date2019-03-15 11:08 +0000
Message-ID<gemini.poemxj004c4g802hc.usenet@alanwrigley.me.uk>
In reply to#5719
Alan Adams <alan@adamshome.org.uk> wrote:

> A contact form does require server-side processing, often using php.

And adequate traps to ensure it can't be misused by spammers. It can be
quite surprising how ingenious they can be in exploiting weaknesses in the
script that processes the form.

Alan

-- 
RISC OS - you know it makes cents

[toc] | [prev] | [next] | [standalone]


#5721

FromTheo <theom+news@chiark.greenend.org.uk>
Date2019-03-15 11:29 +0000
Message-ID<V+y*SmUix@news.chiark.greenend.org.uk>
In reply to#5719
Alan Adams <alan@adamshome.org.uk> wrote:
> The problem with mailto: is that different browsers respect different 
> parts of the message - some only fill in the TO address -  and then they 
> need to be able to launch the email client on the computer, which doesn't 
> always work.

As a general rule mailto: doesn't work when your mail client runs on a
different computer from your browser.  Either physically different (browse
on your phone, email on your laptop), or you use some cloud webmail and your
browser doesn't know about it.  There are some cases where that can be made to
work (eg Chrome and Gmail) but in the general case you might be using, say,
your employer's webmail and to your browser it's just another website.

> A contact form does require server-side processing, often using php.

It's also a spam risk, unless you lock it down (eg to only send emails to
yourself, not having the destination email address in the HTML).

Theo

[toc] | [prev] | [next] | [standalone]


#5738

FromAlexander Ausserstorfer <bavariasound@chiemgau-net.de>
Date2019-04-06 18:18 +0100
Message-ID<17b790a057.Alex@eclipso.at>
In reply to#5719
In message <b3a2139557.Alan.Adams@ArmX6.adamshome.org.uk>
          Alan Adams <alan@adamshome.org.uk> wrote:

> A contact form does require server-side processing, often using php.

A new law in the EU requires that the contact form have to use TLS / SSL
- so be happy to go out from the EU finally!

Is it possible to use Javascript for a contact form to avoid server-side
processing?

A.

-- 
http://home.chiemgau-net.de/ausserstorfer/
Und aus!

[toc] | [prev] | [next] | [standalone]


#5739

FromSteve Fryatt <news@stevefryatt.org.uk>
Date2019-04-07 10:16 +0100
Message-ID<mpro.ppl33q00dxui601uy.news@stevefryatt.org.uk>
In reply to#5738
On 6 Apr, Alexander Ausserstorfer wrote in message
    <17b790a057.Alex@eclipso.at>:

> In message <b3a2139557.Alan.Adams@ArmX6.adamshome.org.uk>
>           Alan Adams <alan@adamshome.org.uk> wrote:
> 
> > A contact form does require server-side processing, often using php.
> 
> A new law in the EU requires that the contact form have to use TLS / SSL -
> so be happy to go out from the EU finally!

Have you a cite for that claim?

-- 
Steve Fryatt - Leeds, England

http://www.stevefryatt.org.uk/

[toc] | [prev] | [next] | [standalone]


#5740

FromAlexander Ausserstorfer <bavariasound@chiemgau-net.de>
Date2019-04-07 19:12 +0100
Message-ID<487a19a157.Alex@eclipso.at>
In reply to#5739
In message <mpro.ppl33q00dxui601uy.news@stevefryatt.org.uk>
          Steve Fryatt <news@stevefryatt.org.uk> wrote:

> On 6 Apr, Alexander Ausserstorfer wrote in message
>    <17b790a057.Alex@eclipso.at>:
>
>> In message <b3a2139557.Alan.Adams@ArmX6.adamshome.org.uk>
>>           Alan Adams <alan@adamshome.org.uk> wrote:
>>
>> > A contact form does require server-side processing, often using php.
>>
>> A new law in the EU requires that the contact form have to use TLS / SSL -
>> so be happy to go out from the EU finally!
>
> Have you a cite for that claim?

Claim? Every provider here is telling you that:

https://gdpr-info.eu/art-32-gdpr/

A.

-- 
http://home.chiemgau-net.de/ausserstorfer/
Und aus!

[toc] | [prev] | [next] | [standalone]


#5741

FromSteve Fryatt <news@stevefryatt.org.uk>
Date2019-04-09 21:33 +0100
Message-ID<mpro.pppnqu01nr1ch01jo.news@stevefryatt.org.uk>
In reply to#5740
On 7 Apr, Alexander Ausserstorfer wrote in message
    <487a19a157.Alex@eclipso.at>:

> In message <mpro.ppl33q00dxui601uy.news@stevefryatt.org.uk>
>           Steve Fryatt <news@stevefryatt.org.uk> wrote:
> 
> > On 6 Apr, Alexander Ausserstorfer wrote in message
> >    <17b790a057.Alex@eclipso.at>:
> >
> > > A new law in the EU requires that the contact form have to use TLS /
> > > SSL - so be happy to go out from the EU finally!
> >
> > Have you a cite for that claim?
> 
> Claim? Every provider here is telling you that:
> 
> https://gdpr-info.eu/art-32-gdpr/

Oh, the GDPR. So only contact forms containing personal data, then? Not
hugely unreasonable...

The browser manufacturers are ahead of the EU, since they more or less
mandate HTTPS for /all/ sites containing forms -- with scary warnings for
users on sites which dare not to conform.

-- 
Steve Fryatt - Leeds, England

http://www.stevefryatt.org.uk/

[toc] | [prev] | [next] | [standalone]


#5722

FromJim Nagel <jnews18c@abbeypress.co.uk>
Date2019-03-15 23:41 +0000
Message-ID<8d535f9557.jim@6.abbeypress.net>
In reply to#5717
Roger Darlington  wrote on 15 Mar:

> In my Wildflowerfinder website I have put the following line for
> readers who wish to contact me:
> <a href="mailto:rogerarm@freeuk.com?subject=Submitted%3A%20Unknown%20W
> ildflower%20Photograph&body=Where%20Found:%0A%0DDate%20Found:%20%0A">
...
> How do I make it work for whatever e-mail client folk are using?
> Does the code need to be 3 pages long to work?

No need for "mailto" code or forms.  Since you have your own domain 
(wildflowerfinder.org.uk), why not just set up an address -- e.g. 
contact19a@wildflowerfinder.org.uk -- that you simply publish openly on 
your site.  The spambots will inevitably find it, but probably not for 
several months, whereupon you can just scrap that address and set up a 
different one.

In the webhost's control panel, make this inital-contact address redirect 
to your "real" address.  Never publish the real address; you don't want 
spambots to see it.

In your email client (Messenger Pro), you could filter such 
initial-contact messages to a designated folder.

When you receive a genuine message via the initial-contact address, you 
can reply to that person from your real address.

-- 
Jim Nagel                        www.archivemag.co.uk
>> "From" address is genuine but will change.  Website has current one.

[toc] | [prev] | [next] | [standalone]


#5723

FromRoger Darlington <rogerarm@freeuk.com>
Date2019-03-16 07:41 +0000
Message-ID<694e8b9557.rogerarm@rogerarm.freeuk.com>
In reply to#5722
On 15 Mar 2019, Jim Nagel  wrote:
> Roger Darlington  wrote on 15 Mar:

>> In my Wildflowerfinder website I have put the following line for
>> readers who wish to contact me:
>> <a href="mailto:rogerarm@freeuk.com?subject=Submitted%3A%20Unknown%20W
>> ildflower%20Photograph&body=Where%20Found:%0A%0DDate%20Found:%20%0A">
> ...
>> How do I make it work for whatever e-mail client folk are using?
>> Does the code need to be 3 pages long to work?

> No need for "mailto" code or forms.  Since you have your own domain
> (wildflowerfinder.org.uk), why not just set up an address -- e.g.
> contact19a@wildflowerfinder.org.uk -- that you simply publish openly on
> your site.  The spambots will inevitably find it, but probably not for
> several months, whereupon you can just scrap that address and set up a
> different one.

> In the webhost's control panel, make this inital-contact address redirect
> to your "real" address.  Never publish the real address; you don't want
> spambots to see it.

> In your email client (Messenger Pro), you could filter such
> initial-contact messages to a designated folder.

> When you receive a genuine message via the initial-contact address, you
> can reply to that person from your real address.

OK, thanks Nigel.

That looks a simpler strategy.


-- 

Cheers
Roger
Where there's a Will, there's a Hey.

[toc] | [prev] | [next] | [standalone]


#5724

FromAlan Wrigley <usenet@alanwrigley.me.uk>
Date2019-03-16 09:01 +0000
Message-ID<gemini.pogbpq00062oz02gg.usenet@alanwrigley.me.uk>
In reply to#5723
Roger Darlington <rogerarm@freeuk.com> wrote:

> On 15 Mar 2019, Jim Nagel  wrote:
> > Roger Darlington  wrote on 15 Mar:
> 
> > No need for "mailto" code or forms.  Since you have your own domain
> > (wildflowerfinder.org.uk), why not just set up an address -- e.g.
> > contact19a@wildflowerfinder.org.uk -- that you simply publish openly on
> > your site.  The spambots will inevitably find it, but probably not for
> > several months, whereupon you can just scrap that address and set up a
> > different one.

> That looks a simpler strategy.

It does mean, though, that people can't just click on a button but will
haver to copy/paste or type the address into their mail client.

Personally I prefer solutions that make it simpler for the user, not for the
coder.

Alan 

-- 
RISC OS - you know it makes cents

[toc] | [prev] | [next] | [standalone]


#5729

FromJim Nagel <jnews18c@abbeypress.co.uk>
Date2019-03-16 13:11 +0000
Message-ID<d87fa99557.jim@6.abbeypress.net>
In reply to#5724
Roger writ:
>> That looks a simpler strategy.

Alan Wrigley  wrote on 16 Mar:
> It does mean, though, that people can't just click on a button but will
> have to copy/paste or type the address into their mail client.

Hmm.  Contrary to what I wrote about "no mailto", I see this is what I 
have on the Archive site (site actually designed by the late David 
Worden):

     <A HREF = "mailto:contact19a@archivemag.co.uk"> 
     contact19a@archivemag.co.uk </A>

As far as I am aware, readers can just click the link to cause a new 
message to open in their email client. (Have tested only with Windows 
FIrefox and Android tablet.) It doesn't supply subject line etc, but not 
really needed, given that the ersatz contact address carries the clue.

Similar on other sites I do, e.g. http://glastonburyconservation.org.uk

In my experience, the openly published address is OK for a year to 18 
months before enough spam arrives to bother setting up a new contact 
address.  (Applies also for the throwaway "From" address I use for 
newsgroups, such as c.s.a.)

Dunno which webhost Roger uses for his wildflower site.  Host might have a 
readymade contact form of the sort Alan suggests.

-- 
Jim Nagel                        www.archivemag.co.uk
>> "From" address is genuine but will change.  Website has current one.

[toc] | [prev] | [next] | [standalone]


#5730

FromRichard Darby <news@rjdarby.co.uk>
Date2019-03-16 16:54 +0000
Message-ID<5795bdf2ffnews@rjdarby.co.uk>
In reply to#5729
In article <d87fa99557.jim@6.abbeypress.net>,
   Jim Nagel <jnews18c@abbeypress.co.uk> wrote:
[snip]

> Dunno which webhost Roger uses for his wildflower site.  Host might have
> a readymade contact form of the sort Alan suggests.

I use FormMail which is a php script, very comprehensive and
customizeable.  Obtainable from here:
https://www.tectite.com/


Richard Darby

-- 

Richard Darby.
website: http://www.rjdarby.co.uk
Do not reply to this address all mail is deleted.
Reply to: <my first name> at <my domain>

[toc] | [prev] | [next] | [standalone]


#5725

From"John Williams (News)" <UCEbin@tiscali.co.uk>
Date2019-03-16 09:18 +0000
Message-ID<5795943424UCEbin@tiscali.co.uk>
In reply to#5723
In article <694e8b9557.rogerarm@rogerarm.freeuk.com>,
   Roger Darlington <rogerarm@freeuk.com> wrote:

> OK, thanks Nigel.

I think we should all call Jim Nigel from now on!

John

-- 
John Williams, now back in the UK - no attachments to these addresses!
Non-RISC OS posters change user to johnrwilliams or put 'risc' in subject!
Who is John Williams? http://petit.four.free.fr/picindex/author/

[toc] | [prev] | [next] | [standalone]


#5726

FromAlan Wrigley <usenet@alanwrigley.me.uk>
Date2019-03-16 10:30 +0000
Message-ID<gemini.pogfvg003dkzu02gg.usenet@alanwrigley.me.uk>
In reply to#5725
"John Williams (News)" <UCEbin@tiscali.co.uk> wrote:

> In article <694e8b9557.rogerarm@rogerarm.freeuk.com>,
>    Roger Darlington <rogerarm@freeuk.com> wrote:
> 
> > OK, thanks Nigel.
> 
> I think we should all call Jim Nigel from now on!

Would that be Jam Nigel?

Alan

-- 
RISC OS - you know it makes cents

[toc] | [prev] | [next] | [standalone]


#5728 — Re: HTML code f / OT jammy

FromJim Nagel <jnews18c@abbeypress.co.uk>
Date2019-03-16 12:42 +0000
SubjectRe: HTML code f / OT jammy
Message-ID<76d9a69557.jim@6.abbeypress.net>
In reply to#5726
Alan Wrigley  wrote on 16 Mar:

>> I think we should all call Jim Nigel from now on!

> Would that be Jam Nigel?

I like it.  I have occasionally been called jammy dodger; having been 
brought up Canadian, though, I've never been quite sure of the allusion.


-- 
Jim Nagel                        www.archivemag.co.uk
>> "From" address is genuine but will change.  Website has current one.

[toc] | [prev] | [next] | [standalone]


#5727

FromSteve Fryatt <news@stevefryatt.org.uk>
Date2019-03-16 10:19 +0000
Message-ID<mpro.pogfd40129spe021k.news@stevefryatt.org.uk>
In reply to#5722
On 15 Mar, Jim Nagel wrote in message
    <8d535f9557.jim@6.abbeypress.net>:

> Roger Darlington  wrote on 15 Mar:
> 
> > In my Wildflowerfinder website I have put the following line for readers
> > who wish to contact me: <a
> > href="mailto:rogerarm@freeuk.com?subject=Submitted%3A%20Unknown%20W
> > ildflower%20Photograph&body=Where%20Found:%0A%0DDate%20Found:%20%0A">
> ...
> > How do I make it work for whatever e-mail client folk are using? Does
> > the code need to be 3 pages long to work?
> 
> No need for "mailto" code or forms.  Since you have your own domain
> (wildflowerfinder.org.uk), why not just set up an address -- e.g.
> contact19a@wildflowerfinder.org.uk -- that you simply publish openly on
> your site.  The spambots will inevitably find it, but probably not for
> several months, whereupon you can just scrap that address and set up a
> different one.

That doesn't actually address Roger's question of how to have a link set up
the email details, however.

The short answer is that mailto: is supported differently by different email
clients, and that is always going to be the case. If you're collecting
specific data fields, a web form is very likely to be the way to go -- not
least because you can then validate what has been entered before accepting
it from the user.

> In the webhost's control panel, make this inital-contact address redirect
> to your "real" address.  Never publish the real address; you don't want
> spambots to see it.

The words "just set up an address" also hides a potential world of pain if
Roger doesn't currently have an email account on the wildflower domain.
Depending on what inbound mail checks are applied by FreeUK, mail forwarders
can be unreliable (in the sense of legitimate messages being detected as
spam and deleted, because they tickle DMARC in the wrong way).

-- 
Steve Fryatt - Leeds, England

http://www.stevefryatt.org.uk/

[toc] | [prev] | [next] | [standalone]


#5731

FromDavid Higton <dave@davehigton.me.uk>
Date2019-03-16 18:51 +0000
Message-ID<e4a7c89557.DaveMeUK@my.inbox.com>
In reply to#5717
In message <81dd079557.rogerarm@rogerarm.freeuk.com>
          Roger Darlington <rogerarm@freeuk.com> wrote:

>
>In my Wildflowerfinder website I have put the following line for 
>readers who wish to contact me:
>
><a href="mailto:rogerarm@freeuk.com?subject=Submitted%3A%20Unknown%20W 
>ildflower%20Photograph&body=Where%20Found:%0A%0DDate%20Found:%20%0A">

You have two line feeds and a carriage return in there.  I don't
think you should.

Dave

[toc] | [prev] | [next] | [standalone]


#5732

FromAlex Macfarlane Smith <nospam@archifishal.co.uk>
Date2019-03-17 21:43 +0000
Message-ID<JOGdnZlW-ZPhIhPBnZ2dnUU78QOdnZ2d@brightview.co.uk>
In reply to#5731
On 16/03/2019 18:51, David Higton wrote:
> In message <81dd079557.rogerarm@rogerarm.freeuk.com>
>           Roger Darlington <rogerarm@freeuk.com> wrote:
> 
>>
>> In my Wildflowerfinder website I have put the following line for 
>> readers who wish to contact me:
>>
>> <a href="mailto:rogerarm@freeuk.com?subject=Submitted%3A%20Unknown%20W 
>> ildflower%20Photograph&body=Where%20Found:%0A%0DDate%20Found:%20%0A">
> 
> You have two line feeds and a carriage return in there.  I don't
> think you should.
> 
> Dave
> 
That's fine (or at least works in some mail clients) -
https://stackoverflow.com/questions/11507387/mailto-body-formatting

Although %0D%0A is possibly more conventional.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.acorn.programmer


csiph-web