Pass a querystring through <a href="mailto:xxxx .... using PHP variables

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bill Petrol

    Pass a querystring through <a href="mailto:xxxx .... using PHP variables

    I'm trying to send a link with a querystring as the body of an email
    message. My HTML syntax looks something like this:

    <a href="mailto:xx x@yyy.com?Subje ct=<? print $subject ?>&Body=<? print
    urlencode($url) ?>">Send an Email</a>

    (I've had to URLENCODE the variables first, and it works. If I don't
    do so, then it doesn't work.)

    The problem occurs when it is time to display the encoded version. It
    automatically translates it into the appropriate URL in certain email
    clients (like OUTLOOK) but leaves it encoded in others (like
    Groupwise).

    Basically, I would like to be able to email a link in the body with
    querystring in such a way that it appears on ALL email clients. I've
    tried lots of things, but nothing seems to work. Any suggestions?
  • Adam i Agnieszka Gasiorowski FNORD

    #2
    Re: Pass a querystring through &lt;a href=&quot;mail to:xxxx .... using PHPvariables

    Bill Petrol wrote:
    [color=blue]
    > Basically, I would like to be able to email a link in the body with
    > querystring in such a way that it appears on ALL email clients. I've
    > tried lots of things, but nothing seems to work. Any suggestions?[/color]

    mailto: is simply unreliable. You cannot
    help it in any way, except flushing it and using
    your own form to send emails.

    --
    Seks, seksiæ, seksolatki... news:pl.soc.sek s.moderowana
    http://hyperreal.info { iWanToDie } WiNoNa ) (
    http://szatanowskie-ladacznice.0-700.pl foReVeR( * )
    Poznaj jej zwiewne kszta³ty... http://www.opera.com 007

    Comment

    • MegaZone

      #3
      Re: Pass a querystring through &lt;a href=&quot;mail to:xxxx .... using PHP variables

      bpetrolman@hotm ail.com (Bill Petrol) shaped the electrons to say:[color=blue]
      >Basically, I would like to be able to email a link in the body with
      >querystring in such a way that it appears on ALL email clients. I've
      >tried lots of things, but nothing seems to work. Any suggestions?[/color]

      mailto: is *extremely* unreliable. Hell, even the ?subject and ?body
      extensions are not reliable. Anything beyond mailto:user@dom ain.tld
      is up for grabs and known not to work in various clients. I think
      some of the extensions were finally codified in an RFC, but the
      original RFC covering mailto only specified the address - so
      everything else was a non-standard extension, and various clients
      didn't always agree on what to support or even how to support a given
      feature.

      Putting that aside (and that is a LOT to put aside) you really have no
      control over what the different email clients do with the content.
      What is truly correct? Decoding the content? Or sending it as is? I
      can see arguments for both.

      (Personally I mailto: links tend not to work for me at all - I don't
      keep email clients configured on my desktops, I read my email on a
      UNIX shell in mutt over an ssh link. So mailto links either just
      don't do anything, or they open the mailer on the box - but it isn't
      configured to send anything anyway.)

      -MZ, RHCE #80619929990054 1, ex-CISSP #3762
      --
      <URL:mailto:meg azone@megazone. org> Gweep, Discordian, Author, Engineer, me..
      "A little nonsense now and then, is relished by the wisest men" 508-755-4098
      <URL:http://www.megazone.or g/> <URL:http://www.eyrie-productions.com/> Eris

      Comment

      Working...