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 TorontoSoftware DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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:
Lee SavidgeCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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 TorontoSoftware DeveloperAuthor Commented:
Yes, it is internal.  I will know the user's GMail credentials
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.