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


Groups > comp.lang.php > #4813 > unrolled thread

e-mail Hyperlink Code

Started bymrc2323@cox.net (Mike Copeland)
First post2012-02-14 16:14 -0700
Last post2012-02-18 01:09 +0100
Articles 7 — 6 participants

Back to article view | Back to comp.lang.php


Contents

  e-mail Hyperlink Code mrc2323@cox.net (Mike Copeland) - 2012-02-14 16:14 -0700
    Re: e-mail Hyperlink Code Michael Fesser <netizen@gmx.de> - 2012-02-15 00:32 +0100
    Re: e-mail Hyperlink Code "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2012-02-14 23:37 +0000
      Re: e-mail Hyperlink Code mrc2323@cox.net (Mike Copeland) - 2012-02-14 21:13 -0700
        Re: e-mail Hyperlink Code Denis McMahon <denismfmcmahon@gmail.com> - 2012-02-15 09:13 +0000
        Re: e-mail Hyperlink Code Captain Paralytic <paul_lautman@yahoo.com> - 2012-02-15 02:46 -0800
    Re: e-mail Hyperlink Code Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-18 01:09 +0100

#4813 — e-mail Hyperlink Code

Frommrc2323@cox.net (Mike Copeland)
Date2012-02-14 16:14 -0700
Subjecte-mail Hyperlink Code
Message-ID<MPG.29a498abdf5bf1719896f6@news.eternal-september.org>
   How do I code the syntax to get the e-mail link at the end of the 
code below to (1) show it's a hyperlink and (2) call the user's e-mail 
client to create and send the e-mail request?  I'm able to do this in 
HTML code and file (e.g. href="mailto:..."), but it doesn't work in a 
PHP file.  Please advise.  TIA

<div class="eventInfo">To request a confirmation e-mail be resent or to 
update a participant e-mail, send the participant name and e-mail 
address to: patsrun@pattillmanfoundation.org.</div>

[toc] | [next] | [standalone]


#4814

FromMichael Fesser <netizen@gmx.de>
Date2012-02-15 00:32 +0100
Message-ID<9grlj7pclftok0ibnq37g7n1l76lk9lobi@mfesser.de>
In reply to#4813
.oO(Mike Copeland)

>   How do I code the syntax to get the e-mail link at the end of the 
>code below to (1) show it's a hyperlink and (2) call the user's e-mail 
>client to create and send the e-mail request?  I'm able to do this in 
>HTML code and file (e.g. href="mailto:..."), but it doesn't work in a 
>PHP file.  Please advise.  TIA

If you can do it with HTML, you can do it with PHP. There's no
difference, since PHP just outputs HTML.

><div class="eventInfo">To request a confirmation e-mail be resent or to 
>update a participant e-mail, send the participant name and e-mail 
>address to: patsrun@pattillmanfoundation.org.</div>

This is pure HTML, but it doesn't contain a link, so it won't work as
expected. You have to use an 'a' element and a 'mailto' URL, as you've
already mentioned above.

Micha

-- 
http://mfesser.de/blickwinkel

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


#4815

From"Beauregard T. Shagnasty" <a.nony.mous@example.invalid>
Date2012-02-14 23:37 +0000
Message-ID<jher7h$f3q$1@dont-email.me>
In reply to#4813
Mike Copeland wrote:

> How do I code the syntax to get the e-mail link at the end of the code
> below to (1) show it's a hyperlink and (2) call the user's e-mail client
> to create and send the e-mail request?  I'm able to do this in HTML code
> and file (e.g. href="mailto:..."), but it doesn't work in a PHP file. 
> Please advise.  TIA
> 
> <div class="eventInfo">To request a confirmation e-mail be resent or to
> update a participant e-mail, send the participant name and e-mail
> address to: patsrun@pattillmanfoundation.org.</div>

Use the mailto.

<div class="eventInfo">To request a confirmation e-mail be resent or to
update a participant e-mail, send the participant name and e-mail address
to: <a 
href='mailto:patsrun@pattillmanfoundation.org'>patsrun@pattillmanfoundation.org</
a>.</div>

I'd recommend using some method of obfuscating it though, to keep the 
spammer bots from harvesting the address.

-- 
   -bts
   -This space for rent, but the price is high

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


#4816

Frommrc2323@cox.net (Mike Copeland)
Date2012-02-14 21:13 -0700
Message-ID<MPG.29a4deb8ddf0bf619896f7@news.eternal-september.org>
In reply to#4815
> > How do I code the syntax to get the e-mail link at the end of the code
> > below to (1) show it's a hyperlink and (2) call the user's e-mail client
> > to create and send the e-mail request?  I'm able to do this in HTML code
> > and file (e.g. href="mailto:..."), but it doesn't work in a PHP file. 
> > Please advise.  TIA
> > 
> > <div class="eventInfo">To request a confirmation e-mail be resent or to
> > update a participant e-mail, send the participant name and e-mail
> > address to: patsrun@pattillmanfoundation.org.</div>
> 
> Use the mailto.
> 
> <div class="eventInfo">To request a confirmation e-mail be resent or to
> update a participant e-mail, send the participant name and e-mail address
> to: <a 
> href='mailto:patsrun@pattillmanfoundation.org'>patsrun@pattillmanfoundation.org</
> a>.</div>
> 
> I'd recommend using some method of obfuscating it though, to keep the 
> spammer bots from harvesting the address.
> 
   Perfect.  Thanks you...  8<}}

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


#4817

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2012-02-15 09:13 +0000
Message-ID<4f3b771f$0$29674$a8266bb1@newsreader.readnews.com>
In reply to#4816
On Tue, 14 Feb 2012 21:13:02 -0700, Mike Copeland wrote:

>> > How do I code the syntax to get the e-mail link at the end of the
>> > code below to (1) show it's a hyperlink and (2) call the user's
>> > e-mail client to create and send the e-mail request?

It's very rare that this will send the email request, normally it will 
open the user's email client and create a message ready to send.

There's no "proper" way for the web browser to activate the send button 
in the users email client.

Just think how bad it would be if I could make you send any email content 
I wanted to any recipient(s) I wanted from you when you clicked on a link 
on my website.

Rgds

Denis McMahon

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


#4818

FromCaptain Paralytic <paul_lautman@yahoo.com>
Date2012-02-15 02:46 -0800
Message-ID<9941fdc7-1451-43aa-89c4-490ce0b4bc5c@i2g2000vbv.googlegroups.com>
In reply to#4816
On Feb 15, 4:13 am, mrc2...@cox.net (Mike Copeland) wrote:
> > > How do I code the syntax to get the e-mail link at the end of the code
> > > below to (1) show it's a hyperlink and (2) call the user's e-mail client
> > > to create and send the e-mail request?  I'm able to do this in HTML code
> > > and file (e.g. href="mailto:..."), but it doesn't work in a PHP file.
> > > Please advise.  TIA
>
> > > <div class="eventInfo">To request a confirmation e-mail be resent or to
> > > update a participant e-mail, send the participant name and e-mail
> > > address to: pats...@pattillmanfoundation.org.</div>
>
> > Use the mailto.
>
> > <div class="eventInfo">To request a confirmation e-mail be resent or to
> > update a participant e-mail, send the participant name and e-mail address
> > to: <a
> > href='mailto:pats...@pattillmanfoundation.org'>pats...@pattillmanfoundation.org</
> > a>.</div>
>
> > I'd recommend using some method of obfuscating it though, to keep the
> > spammer bots from harvesting the address.
>
>    Perfect.  Thanks you...  8<}}

Considering that so many people nowadays do not use an email client,
instead using web mail, I would hardly call this Perfect since it will
fail so often.

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


#4870

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2012-02-18 01:09 +0100
Message-ID<2270241.FRqVoOGUtd@PointedEars.de>
In reply to#4813
Mike Copeland wrote:

>    How do I code the syntax to get the e-mail link at the end of the
> code below to (1) show it's a hyperlink and (2) call the user's e-mail
> client to create and send the e-mail request?  I'm able to do this in
> HTML code and file (e.g. href="mailto:..."), but it doesn't work in a
> PHP file.  Please advise.  TIA

That is an ill-conceived approach as it presupposes the availability of an 
e-mail client application.  In a decade where Google Mail is widely used, 
such a program to be installed *and* properly configured on the client 
computer is even more improbable than it was in the previous decade, of 
Internet cafés.

In any case, `mailto:' *does* work to that extent in a "PHP file" (you 
should think of "PHP files" as scripts, as *computer programs* instead).  
But it will never, anywhere, automatically submit the e-mail.

Use a form-mailer instead.


PointedEars
-- 
When all you know is jQuery, every problem looks $(olvable).

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web