Search in sources :

Example 1 with ClientOptions

use of com.mailjet.client.ClientOptions in project java-docs-samples by GoogleCloudPlatform.

the class MailjetSender method main.

public static void main(String[] args) throws MailjetException, MailjetSocketTimeoutException {
    final String mailjetApiKey = "YOUR-MAILJET-API-KEY";
    final String mailjetSecretKey = "YOUR-MAILJET-SECRET-KEY";
    MailjetClient client = new MailjetClient(mailjetApiKey, mailjetSecretKey, new ClientOptions("v3.1"));
    MailjetSender sender = new MailjetSender();
    sender.sendMailjet(args[0], args[1], client);
}
Also used : ClientOptions(com.mailjet.client.ClientOptions) MailjetClient(com.mailjet.client.MailjetClient)

Aggregations

ClientOptions (com.mailjet.client.ClientOptions)1 MailjetClient (com.mailjet.client.MailjetClient)1