Client extending the client_sendeR for the Gmail service. In addition to any fields in the client_sendeR this one contains an email, a key and a secret fields which are needed to send a message via the Gmail Send API. For additional information on how to get required credentials see details.

client_gmail(email, key, secret, ...)

Arguments

email

an email of a sender of the message.

key

a key created in a Google API application.

secret

a secret key created in a Google API application.

...

named arguments with additional fields which will be passed to set_fields during client creation.

Details

To get Google credentials just follow the tutorial https://developers.google.com/adwords/api/docs/guides/authentication

See also

Examples

if (FALSE) { client <- client_gmail("my_email", "my_key", "my_secret") # Variant with default parameters set client2 <- client_gmail("my_email", "my_key", "my_secret", message = "Default email template", destination = "my_email") }