Log in

View Full Version : Resolved ahref mail to NOT WORKING



vineet
12-20-2008, 11:14 AM
hi

i m using


<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

Schmoopy
12-20-2008, 01:25 PM
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.

vineet
12-20-2008, 01:49 PM
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

Snookerman
12-20-2008, 03:03 PM
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 (vineet@vineet.com)

vineet
12-20-2008, 03:16 PM
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 (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

jscheuer1
12-20-2008, 08:28 PM
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.

vineet
12-21-2008, 03:50 AM
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

owt200x
12-21-2008, 08:00 AM
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"

vineet
12-21-2008, 08:05 AM
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