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


Groups > comp.lang.php > #4870

Re: e-mail Hyperlink Code

Message-ID <2270241.FRqVoOGUtd@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2012-02-18 01:09 +0100
Subject Re: e-mail Hyperlink Code
Newsgroups comp.lang.php
References <MPG.29a498abdf5bf1719896f6@news.eternal-september.org>
Followup-To comp.lang.php

Followups directed to: comp.lang.php

Show all headers | View raw


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).

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

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

csiph-web