Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #4813 > unrolled thread
| Started by | mrc2323@cox.net (Mike Copeland) |
|---|---|
| First post | 2012-02-14 16:14 -0700 |
| Last post | 2012-02-18 01:09 +0100 |
| Articles | 7 — 6 participants |
Back to article view | Back to comp.lang.php
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
| From | mrc2323@cox.net (Mike Copeland) |
|---|---|
| Date | 2012-02-14 16:14 -0700 |
| Subject | e-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]
| From | Michael Fesser <netizen@gmx.de> |
|---|---|
| Date | 2012-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]
| From | "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> |
|---|---|
| Date | 2012-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]
| From | mrc2323@cox.net (Mike Copeland) |
|---|---|
| Date | 2012-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]
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Date | 2012-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]
| From | Captain Paralytic <paul_lautman@yahoo.com> |
|---|---|
| Date | 2012-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]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2012-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