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


Groups > comp.lang.php > #4870

Re: e-mail Hyperlink Code

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!news.weisnix.org!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Content-Type text/plain; charset="UTF-8"
Message-ID <2270241.FRqVoOGUtd@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <php@PointedEars.de>
Organization PointedEars Software (PES)
Date Sat, 18 Feb 2012 01:09:48 +0100
User-Agent KNode/4.4.11
Content-Transfer-Encoding 8Bit
Subject Re: e-mail Hyperlink Code
Newsgroups comp.lang.php
References <MPG.29a498abdf5bf1719896f6@news.eternal-september.org>
Followup-To comp.lang.php
MIME-Version 1.0
Lines 24
NNTP-Posting-Date 18 Feb 2012 01:09:48 CET
NNTP-Posting-Host 30d379ef.newsspool3.arcor-online.net
X-Trace DXC=^obc[GM5VL;i6K;>iZ]763McF=Q^Z^V384Fo<]lROoR18kF<OcfhCO;jWdeJAGglJ1DZm8W4\YJN<b@mF9jNikd5U[[_>Eh^067H9\9;114NW4
X-Complaints-To usenet-abuse@arcor.de
Xref x330-a1.tempe.blueboxinc.net comp.lang.php:4870

Followups directed to: comp.lang.php

Show key headers only | 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