• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 438
  • Last Modified:

Detect Email program

Hi E's, I have a system that work via pipe email (write in php), client send a email to my server and my server send new email to the sender, it's like a auto responder but more complex.
In one of the parts of the email I send, I put a link with 'mailto' (with email, subject and body). The problem is each email program do different things with the mailto function, I made a tests and just work very fine in outlook.
For resolve the issue, I need to know the program (or server) that will receive my server mail.
What is the best way to resolve the issue?

Regards, JC
Pedro Chagas
Pedro Chagas
1 Solution
You may be able to examine the email headers and make an educated guess about what email client sent the message, but there is no way to determine what email client will receive your response.
The standard mailto: function does basically the same thing on every mail client. It brings up a compose message window. This will likely not be too different between clients.
Pedro ChagasWebmasterAuthor Commented:
Hi, I will test different email programs for view the difference between each one. If I can identify the program the sender use for send the email, when I send my email (my server) the code will be specific for each email program!
I just want identify if was outlook or not!

@sardiskan, I use this code when I use mailto:
.......<A href="mailto:&subject=something&body='.$mailtobd.'">here</A>.</FONT>.....

That code work well in outlook, no matter the server (I tested with different servers), when I use in gmail in firefox, if client click in mailto, gmail open a new message, the problem is all contain of mailto will appear in 'to', when the correct was the subject written and body written too.
In hotmail in browser (IE and firefox), when I click in mailto the system open a new message in outlook.

Regards, JC

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

The correct form of a mailto link includes the email address of the recipient:


It's hard to say how the link will be processed if it does not include the recipient.
Pedro ChagasWebmasterAuthor Commented:
I send some text to my client, and that text is a important text, if client want to send the email to a friend, I don't know the address, so I don't put the email in mailto.
In the beginning I try put the email for made some tests, but the results are the same with email or without email in mailto.

Regards, JC

Why don't you simply develop a small form and script that allows your user to enter his friend's E-mail address, and your PHP script would send out the E-mail?

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now