开发者

Provide a link to allow users to email our company even if they do not have outlook/outlook express installed

We want to put a link on our site "Subscribe", when you click this link this is the href

href="mailto:subscriber@org.com&subject=i want to subscribe?body=whatever"

This works great, it's super easy too, but the problem is for anyone who does not have outlook/outlook express installed. 开发者_运维百科

Without real development of any new features is it possible to make this work for gmail/yahoo/aol/etc.... email users?


The mailto URL scheme works in all browsers and only in email clients that support it.

In essence, when clicked it will launch the default email client on the computer and set the to address, subject and body.

You can't make it work in a web based email client, since they can't be set as default email clients.


The action that takes place when a user clicks on a "mailto" link is end user dependent.


There's no way with HTML to determine whether or not a client has Outlook or other client apps installed.


You can sidestep all email clients/webmail services if you instead have a form for submitting messages, with a place to put the email address the company should reply to. A simple CGI or PHP script can turn that to an email on the server side.

This page has a PHP example. http://www.w3schools.com/PHP/php_mail.asp

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜