Results 1 to 9 of 9

Thread: ahref mail to NOT WORKING

  1. #1
    Join Date
    Jun 2008
    Posts
    121
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default ahref mail to NOT WORKING

    hi

    i m using
    Code:
    <a href="mailto:vineet@vineet.com">vineet@vineet.com</a>
    its not opening email client means outlook express or microsoft outlook.

    i m using IE7 and FF3

    whats wrong.

    vineet
    Last edited by vineet; 12-21-2008 at 08:08 AM. Reason: resolved

  2. #2
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    That is the correct code, but mailto links are always a bit iffy, as whatever your default mail program is, the mailto link opens it, maybe you have this disabled so nothing happens - I would suggest using a form instead.

  3. #3
    Join Date
    Jun 2008
    Posts
    121
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default mail to

    Quote Originally Posted by Schmoopy View Post
    That is the correct code, but mailto links are always a bit iffy, as whatever your default mail program is, the mailto link opens it, maybe you have this disabled so nothing happens - I would suggest using a form instead.

    hi schmoopy

    how will a form solve this purpose

    vineet

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    With a contact form, the user can fill in the message directly in the website and it will be sent to the required email address with PHP. That way, there is no need to log in to Outlook or whatnot.

    However, if you really want the link to open the default email program then you might want to test that link on a different computer, or look over your default email program settings, because the code you have posted looks just fine and should work properly.

    Try clicking this link to see if your default email program opens up: vineet@vineet.com

  5. #5
    Join Date
    Jun 2008
    Posts
    121
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default mail to

    Quote Originally Posted by Snookerman View Post
    With a contact form, the user can fill in the message directly in the website and it will be sent to the required email address with PHP. That way, there is no need to log in to Outlook or whatnot.

    However, if you really want the link to open the default email program then you might want to test that link on a different computer, or look over your default email program settings, because the code you have posted looks just fine and should work properly.

    Try clicking this link to see if your default email program opens up: vineet@vineet.com

    hi snooker

    thats what i think. my code is perfect and need to check it on another system. because i have use same code earlier also and it worked fine.

    vineet

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    There is no requirement that a given computer have a default mail program configured. In fact, if all users of a given machine use a third party host (like gmail or hotmail) for their email, it is preferable not to, as having a default mail program that cannot interface with these third party hosts would only lead to errors and/or confusion.

    That is why it is always preferable on a web page that has link for email to use a form that activates your site's host's native email program. The advantage there is that it can mail wherever you like and doesn't depend upon the user having a default email program configured. The disadvantage is that in order to get a return email address from the user, he or she must enter it into the form properly.

    If your site's host doesn't have an email program available to you, there are third party email hosts (some free - with or without ads) you may use.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Jun 2008
    Posts
    121
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default mail

    Quote Originally Posted by jscheuer1 View Post
    There is no requirement that a given computer have a default mail program configured. In fact, if all users of a given machine use a third party host (like gmail or hotmail) for their email, it is preferable not to, as having a default mail program that cannot interface with these third party hosts would only lead to errors and/or confusion.

    That is why it is always preferable on a web page that has link for email to use a form that activates your site's host's native email program. The advantage there is that it can mail wherever you like and doesn't depend upon the user having a default email program configured. The disadvantage is that in order to get a return email address from the user, he or she must enter it into the form properly.

    If your site's host doesn't have an email program available to you, there are third party email hosts (some free - with or without ads) you may use.
    hi jscheuer

    i understood that we never know on whose computer email client is configured or not.

    so to be on safer side i have now on my page both the email address link and a contact form.

    between two of these one will definately work.

    vineet

  8. #8
    Join Date
    Nov 2008
    Posts
    19
    Thanks
    1
    Thanked 3 Times in 3 Posts

    Default

    if you need a contact form you can use mine check it out at http://www.owt200x.us/contactform

    If you want to use a contactf orm template you have, then let me know, I can integrate the processing code for my contact form into yours.

    Barry "OwT"

  9. #9
    Join Date
    Jun 2008
    Posts
    121
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default mail

    Quote Originally Posted by owt200x View Post
    if you need a contact form you can use mine check it out at http://www.owt200x.us/contactform

    If you want to use a contactf orm template you have, then let me know, I can integrate the processing code for my contact form into yours.

    Barry "OwT"

    thanks owt200

    i already have a contact form which is working fine.

    just was having trouble with email link. i have checked it on other friends system and its working fine there.

    otherwise my php contact form is working fine.

    vineet

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •