How to use data-saferedirecturl in a tag in PHP?

All links in Gmail are interpreted in the browser. The data-saferedirecturl tag is added automatically. So the href shows the link that you will be clicking in the bottom of your browser but sends you to a google-originated URL like https://www.google.com/url?hl=en-GB&site.com/324dd3. This way the third party don’t have access to sensitive data.

How to send to BCC address when using PHPMailer to format MIME message for Gmail API?

PHPMailer will track the BCC recipients internally and if you were to send the message with PHPMailer it would specify the BCC recipients during the SMTP envelope. However, when you extract the raw message from PHPMailer you lose the internal recipient list that PHPMailer was tracking. The raw message does not include the BCC information. … Read more