The tag mailto: in a link opens the default email client. However, many of the people I want to code for use GMail.
So, is there a way to craft an email and access the user's gmail tab so that the all she/he has to do is to click send?
I am afraid that there isn't such way. It's not something that you should be attempting to solve in your web application because user agents might behave differently. So just leave it that way.
Use the anchor like that:
"Crafting an email and access the user's gmail tab" = XSS which is unethical.
One way to achieve what you want is to ask your users to make their Gmail handle mailto: links by following this guide -> https://support.google.com/mail/answer/10966?hl=en
No such way to set it from inside your applications. But gmail does provide you setting to open mailto links in gmail.
Related
User will register using his email. Probably he will use gmail or outlook.
How to make link that opens gmail.com when user registered with gmail account, or outlook account?
Is there some universal solution?
I am trying to avoid something like this:
if (user.email.endsWith("#gmail.com"))
link.href="https://gmail.com"
else if...
else if...
There is no way to tell how a user reads their email. They might use a webmail service. They might use a desktop application. Even if they use GMail, they might not use the GMail website.
Presumably, you want to give the user a link so they can see the confirmation email to prove they can access email at the address they gave you.
There's no reliable way to help them do that (the approach you are trying to avoid is the most likely to work (for a small value of "most")).
Just trust that the user knows how to read their own email instead.
Depends on what it is that you need to actually use it for, but if you need to open the link so that the user can send an email to an email address, you could always just use mailto:
<div> Click to send an email to Jon Doe</div>
This will will open the user's default mail service.
I am creating a website and there is a page with people that are part of the company. Each person has an email that i want for the user to be able to get the email for the person that he/she want.
If we were in 2011 i would have used mailto: html tag. But really not so many people are using desktop email clients.
I thought about linking to a link so a new window would open in gmail and a new message would be created with recepient the pressed email. BUT not everyone uses gmail.
The only posible "solution" that i though that when the user clicks on the email this would be copied automatically in the clipboard. It would have the same result as doing CTRL & C at something. BUT this requires a lot of time and i dont want to get my hands dirty with javascript.
Is there any other way to do this ?
You should probably still use mailto:. mailto: is not intended for just desktops, it identifies a handler for the client. A mobile device would be able to recognize it just as well, and launch its preferred MTU.
With a lot of addons like smartaddon contact form and foxyform available out there, you could add them to your html code.
But, if you could use php, it to would just take few statements of code to set up the contact form on your own. Refer this post which explains clearly on how to set up your contact form using php.
I developed a web page in asp.net to send HTML email.
I did the coding for sending the mail in asp.net.
The issue is, after sending the mail I need to open a popup window from the mail using hyperlink.
Is this possible?
From a comment on another answer:
I need to open it as a popup window. Not in a new tab.
That requires JavaScript. You cannot run JavaScript in an email. Therefore you cannot achieve what you want.
Try:
description
This should make it open as a pop-up (unless default browser setting are different)
Although it's not recommended to use pop ups anymore because most users find it extremely annoying.
Hope this helped.
It's possible, just put your:
<a href='yourULR'>description</a>
in your email
So,
Imagine that I have this link:
Test
How do you deal with people that visit your site and don't have any email handler? What are the possible solutions? Like showing the email, for example? Any other solutions?
Thanks
EDIT: This solution requires you putting the email in between the anchor links. Why would you not?
I would not worry about it. Most browsers (all modern ones) would allow a user to right click and copy the email to their clipboard in the worst case. Its not such a mission critical feature that I would worry about it. If they do click it, I believe the browser will ask the user what mail client they would like to associatemailto links to.
The only other choice would to allow them to fill out a form that your mail server will generate into an email and then send to the appropriate recipients.
On mouse over it could show a tool tip above the link with the email?
If you don't want to be dependant on client settings, you ll need to provide the service server side. Meaning allow ppl to send an email from your site using some simple text box and a SMTP plugin.
You might find this question helpful: Has anyone ever come up with a way to detect the email program a recipient is using?
Essentially, there's no possible way to check if there's an outside program to handle email, so short of writing a submission forum that automatically sends the email to the intended recipient, there's probably not much you can do.
Can I send an email that contains an HTML form with one combobox, that upon changing the value a reply would be send back?
From the research I've made it seems that it is not possible...
http://en.wikipedia.org/wiki/HTML_e-mail
Is that true?
Thanks,
Eden
Yes it is possible.
But there are restrictions.Different mail clients and web mails behave in different manners.
For example, Yahoo web mail, upon submitting form brings up a dialog box which warns about sending some info outside Yahoo. You have to disable Javascript if you want your submission work properly, otherwise it doesn't send submit buttons by REQUEST (POST or GET).
In outlook express I checked and it works without any problem.
Because of this problem, I think it isn't recommendable to do form embedding inside email. I suggest to make a web form and send a link to it via email. Although by this approach you may lose some lazier users, but it seems that lose will be lesser than lose arising from problems of email embedded form submission.
Yes that is true. It is not possible. What you can do is provide a link to a webpage and do the combobox action on that website.
You can create a form in google docs and share it via 'email', I have tested it and it shown inline at-least in gmail.
https://docs.google.com/forms