How to make email sending options - html

What i want to achieve is , when i click my contact us link a pop up should open which says "This link needs to be opened with an application". An below there should be options for opening the link using either gmail or outlook or yahoo.

When you create a hyperlink of type <a href="mailto:your#emailadres.com"?subject=mysubject>Contact me</a> then the webbrowser will open the link in the user's default email program.
You can't "force" a user to open a specific email application or webmail system and it isn't usefull either because every user has it's own default email (web)application.

Related

href is not recognized in email

I am trying to send a reset-password link to users email when they click forgot password in react-native app. The email is sent from Strapi using email template and includes the following code:
<p>click to reset password</p>
Reset password
The problem is that the link is not clickable in the email apps on either android nor ios. It just shows as text. However, when inspecting, the code in the email looks like:
<p>click to reset password</p>
Reset password
Is the problem the href url or is it a problem within the email providers that they don't support that kind of url?
This is a duplicate question and the solution is that "deep-links" are not widely supported in email providers. The solution is to use redirect using a normal link. For further reading see:
How to display iOS app's deep links on email as links

Hyperlink to email address

I'm trying to create a clickable email address which when clicked on, opens up the visitors' email application with the email address in the "send to".
I tried using:
mailto:emailaddress#whatever.com
It works well when the link is displayed on a mobile. It opens up the Gmail application. However, when I try to click on it on the web it does nothing.
Thank you!
Your link is valid.
mailto links are signal for your browser to open a default e-mail application.
Try specifying default E-Mail application in your OS or another browser.
P.S. Email Us also works well
That is possible, if your visitor has a default mail app on their computer. Same way as they have gmail/iosmail/anymailapp on their phone.

Link to mail server from website

I have an email page on my website with a form and tinyMCE and all that fancy stuff, but I also want to add a couple of links to the popular mail servers such as gmail, yahoo, and hotmail.
I've seen some links that go to the my Microsoft Office Outlook (which I never use), and I've also seen a gmail link that opens up gmail in a new tab with a form already open and a mailto: value already given. Just wondering how this is done if I, lets say, have a mailto: value to send and perhaps a subject and message.
Just to make it clear, I want three or four image links on my page, each one for a different mail server (gmail, yahoo...) and when clicked on, it opens a form partly filled out (a mailto:value and possibly a subject and/or message) fullscreen. Thanks.
It's not going to be easy, as you'll have to integrate with each one of these services. How about going at it a different way? For GMail (at least on Chrome) you can figure the web app as the handler for your mailto: links. With that, you can create a link that opens GMail, optionally with subject and body filled in. See RFC2368 for details, or try this link.
Most users don't have accounts on all of the web mail services you mentioned anyways, and using the mailto link allow the mail to the sent using the user's default e-mail client (may it be Outlook, or GMail) which most people prefer anyways.

how to force email client to open attachment using html

I'm working on a email template with HTML that have a button like "print your ticket", and I would like that when the user click the button, automatically, the client open or download the attachment. Is this possible using only HTML? Are there other solution?
Regards
You can't do this with an attachment. You could however do this by directing the user to a remote link where the attachment was stored using a Print your ticket

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