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);
}
Aggregations