Detect Email program

Posted on 2009-12-17
Last Modified: 2012-05-08
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
Question by:Pedro Chagas
    LVL 10

    Accepted 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.
    LVL 5

    Expert Comment

    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.
    LVL 3

    Author Comment

    by:Pedro Chagas
    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
    LVL 10

    Expert Comment

    The correct form of a mailto link includes the email address of the recipient:'.$mailtobd.'

    It's hard to say how the link will be processed if it does not include the recipient.
    LVL 3

    Author Comment

    by:Pedro Chagas
    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
    LVL 1

    Expert Comment


    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

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
    In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
    In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now