如何在我的网站中插入 gmail 撰写按钮

2022-01-23 00:00:00 gmail php

我有 gmail 邮件图标链接.当我单击该链接时,它将打开 gmail 撰写消息(当用户已经登录时),否则它将转到 gmail 登录页面.

i have gmail mail icon link.when i click the link it will open gmail compose message(when user already login) otherwise it will goto gmail login page.

非常像 mynthra 网站

Exatly like mynthra site

http://www.myntra.com/Shirts/Mast-Harbour/Mast-Harbour-Men-Navy-Erida-Slim-Smart-Casual-Shir/123607/buy?nav_id=7&searchQuery=men-casual-shirts&ser​​p=2&uq=false#!

在上面的链接中,产品图片下方有gmail图标,我需要同样的操作

in above link,below the product image have gmail icon is there,same operation i need

推荐答案

快速谷歌搜索,这里就是你的答案.只需使用给定的 URL 而不是 mailto:

A quick google search and here is your answer. Just use the given URL instead of mailto:

例子:

<a target="_blank" href="https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=youremail@gmail.com&body=my-text">Click here to email</a>

来源

相关文章