473,831 Members | 2,231 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Pass a querystring through <a href="mailto:xx xx .... 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 *@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?
Jul 16 '05 #1
2 13307
Bill Petrol wrote:
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?


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
Jul 16 '05 #2
bp********@hotm ail.com (Bill Petrol) shaped the electrons to say:
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?


mailto: is *extremely* unreliable. Hell, even the ?subject and ?body
extensions are not reliable. Anything beyond mailto:us**@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:me* *****@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
Jul 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
11446
by: DrTebi | last post by:
Hello, I have the following problem: I used to "encode" my email address within links, in order to avoid (most) email spiders. So I had a link like this: <a href="mailto:DrTebi@yahoo.com">DrTebi</a> This would work like a regular mailto link in any browser, but wouldn't be visible to spiders if they don't have a function to decode it.
22
2556
by: David. E. Goble | last post by:
Hi All; I have a few of these; sigsImages="sigs/finished1.jpg" sigsImages="sigs/foghorn.jpg" lower I have;
5
1888
by: Alexander Myodov | last post by:
Hello, Having heard that Python 2.5 offers some kind of RIIA concept via PEP343, got it downloaded (Windows version) and tried. But it did not work as expected and as wanted. For the time since I first learned Python, the only reason why I just could not use it was inability to localize the lifetime of some variables inside some syntactical "blocks", especially ones in "for"/"while"/"if" statements, but possibly in any "manually...
2
11746
by: kj | last post by:
Here's a puzzle I can't figure out. I visited the page http://validator.w3.org, and confirmed that it validates itself. Then I *saved* it to my docroot directory using my browser's save-as function, and then tried to submit this saved page for validation. Now it generates 17 errors, of the form: end tag for "link" omitted, but OMITTAG NO was specified.
1
3411
by: Chicagoboy27 | last post by:
It seems when I use GridView1.Columns.Insert(2, nameColumn); to dynamically insert a column into a grid I loose all items that are bound using <asp:TemplateField HeaderText="E-Mail" > <ItemTemplate> <a href='mailto:<%# Eval("email")%>' target="new"><asp:Label ID="email" runat="server" Text='<%# Bind("email")%>'></asp:Label></a>
6
2695
by: Otto Wyss | last post by:
I've tried to start the local mail program with window.open('mailto:email@address.com'); but that doesn't work. Is this somehow possible? O. Wyss
3
3293
by: Aaron | last post by:
I'm trying to parse a table on a webpage to pull down some data I need. The page is based off of information entered into a form. when you submit the data from the form it displays a "Searching..." page then, refreshes and displays the table I want. I have code that grabs data from the page using cURL but when I look at the data it contains the "Searching..." page and not the table that I want. below is the code i have so far....Thanks...
2
7657
by: hotflash | last post by:
Hi All, I found the best pure ASP code to upload a file to either server and/or MS Access Database. It works fine for me however, there is one thing that I don't like and have tried to fix but don't have any luck is to do a form validation. This script requires the files: db-file-to-disk.asp and _upload.asp. There is a DESCRIPTION field in the db-file-to-disk.asp file, what I want to do is the user has to field out this fied before...
2
5154
by: GArlington | last post by:
"G. Morgan" <no_em@il.invalidwrote in message news:8787770faf30b1bd48f393baa1a89fdbnp@mypost.invalid... <snap> <snap> Did you try <cr><lf combination? ** Posted from http://www.teranews.com **
0
9793
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10777
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10494
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10534
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7748
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5620
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4417
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3076
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.