gmail url variables

前端 未结 2 660
情深已故
情深已故 2021-02-04 17:23

I\'ve set up my mailto links so that they open Gmail.

// you can code a url like this to push things into gmail
https://mail.google.com/mail/?view=c         


        
2条回答
  •  长情又很酷
    2021-02-04 18:18

    why bother doing that ? the mailto link will open the default mail client you have installed
    i think having gmail notifier installed is enough
    and that will be better to users with no gmail.
    see here Making Gmail your default mail application or this Make mailto: links open in gmail
    if not i found this example from here:

    https://mail.google.com/mail?view=cm&tf=0" +
    (emailTo ? ("&to=" + emailTo) : "") +
    (emailCC ? ("&cc=" + emailCC) : "") +
    (emailSubject ? ("&su=" + emailSubject) : "") +
    (emailBody ? ("&body=" + emailBody) : "");

提交回复
热议问题