Starting Email With Gmail

Hi Experts,

Usually when you want to send an email for a webpage you have
<a href="">send email</a>

Open in new window

But this would normally trigger the email client on the computer, but how would you do this with Gmail?

This is for a small application and later I will need to add appointments in the Gmail Calendar. I am bringing this up in case I need to have a common setup for both?

Thank you
APD TorontoAsked:
Who is Participating?
Lee SavidgeConnect With a Mentor Commented:
The problem is the querystring parameters for gmail aren't, as far as I know, publicly available. Creating an email would be:

This would assume you're logged into Gmail via the browser. I am, but I don't know what happens if you're not.
zephyr_hex (Megan)DeveloperCommented:
The default email client on the client's computer is not something you can change.

But I suspect you might be asking the wrong question.  Are you meaning to ask how to send email via Google's smtp server?
CESNetwork AdministratorCommented:
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

KimputerConnect With a Mentor Commented:
If you're not logged in, you'll be presented with the Google Login page. The original URL is saved, so you will get the correct page after that.

However, since you're not psychic, no one knows which email link to use. Even if you implement the Gmail link, the next step would be to implement a MS Live account link, and then this, and then that.

So if it's important, just make a working email form.
Lee SavidgeCommented:
I would imagine this is not for the general public. From the question I would say this is an internal application so they won't have to cater for any other email clients. If you were doing it for all clients, you'd be as well to just use <a href=mailto... and let the computer decide which client to load.
APD TorontoAuthor Commented:
Yes, it is internal.  I will know the user's GMail credentials
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.