Link to home
Start Free TrialLog in
Avatar of Pedro Chagas
Pedro ChagasFlag for Portugal

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of tdlewis
tdlewis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of Pedro Chagas

ASKER

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
The correct form of a mailto link includes the email address of the recipient:

mailto:user@domain.com&subject=something&body='.$mailtobd.'

It's hard to say how the link will be processed if it does not include the recipient.
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
Avatar of valain
valain

Hi,

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?