mailersend / mailersend-java Goto Github PK
View Code? Open in Web Editor NEWThe official MailerSend Java SDK
Home Page: https://developers.mailersend.com
License: MIT License
The official MailerSend Java SDK
Home Page: https://developers.mailersend.com
License: MIT License
To better enforce security on our SDKs and avoid incidents, please avoid suggesting our users set explicit declaration of the API/SMTP token in the code and instead suggest setting the API key as an environment variable.
We have a new parameter called "inbound_priority" on our Inbound Routes. This parameter allows our users to create multiple inbound routes per inbound subdomain. Each one of the routes will be processed in a descending order. Values can be between 0 and 100. 0 has more importance than 100.
We should allow overriding base API url
https://github.com/mailersend/mailersend-go/blob/main/mailersend.go#L15
Fix bug when sending email with template, variables are not being filled
The fix is quite simple, after line 292 in the Email.java file add the code:
this.templateVariables.add(var);
We have information on how to verify a signature in PHP but do not provide more code examples, please provide one and share here so we can publish it to the dev docs.
Hello, does 1.0.0 not support jdk1.8?
By convention in Java methods start with lowercase. They are documented as such in the readme, but wrong in the code (1.0.0).
For instance AddBcc
should be addBcc
, also many others...
public void AddRecipient(Recipient recipient) {
this.recipients.add(recipient);
}
public void AddRecipients(Recipient[] recipients) {
this.recipients.addAll(Arrays.asList(recipients));
}
public void AddCc(String name, String email) {
Recipient recipient = new Recipient(name, email);
this.cc.add(recipient);
}
public void AddCc(Recipient recipient) {
this.cc.add(recipient);
}
public void AddBcc(String name, String email) {
Recipient recipient = new Recipient(name, email);
this.bcc.add(recipient);
}
public void AddBcc(Recipient recipient) {
this.bcc.add(recipient);
}
public void AddReplyTo(Recipient replyTo) {
this.replyTo = replyTo;
}
public void AddReplyTo(String name, String email) {
this.replyTo = new Recipient(name, email);
}
We added two parameters for our domains: ignore duplicated recipients and add a precedence bulk header. Both of these parameters have to be added to our related Domains endpoints.
Please update the list of all webhook events in the documentation or any place where they are mentioned:
SOFT_BOUNCED = "activity.soft_bounced",
HARD_BOUNCED = "activity.hard_bounced",
OPENED = "activity.opened",
OPENED_UNIQUE = "activity.opened_unique",
CLICKED = "activity.clicked",
CLICKED_UNIQUE = "activity.clicked_unique",
UNSUBSCRIBED = "activity.unsubscribed",
SPAM_COMPLIANT = "activity.spam_complaint",
SURVEY_OPENED = "activity.survey_opened",
SURVEY_SUBMITTED = "activity.survey_submitted",
IDENTITY_VERIFIED = "sender_identity.verified",
MAINTENANCE_START = "maintenance.start",
MAINTENANCE_END = "maintenance.end",
We recently added the in-reply-to option to the header.
Please include it in the SDK, under the Send an email endpoint. Documentation is here.
would like to give it a spin without having to build it myself...
We recently changed activity fetch in our app so the pagination wasn’t working anymore for the API, could you update the Activity endpoint to match the most recent update?
The package com.google.code.gson:gson before 2.8.9 are vulnerable to Deserialization of Untrusted Data via the writeReplace() method in internal classes, which may lead to DoS attacks.
Please add the following endpoints on the new Sender Identity section, below the Domains.
Fix bug when sending email with template, variables are not being filled
The fix is quite simple, after line 341 in the Email.java file add the code:
this.templateVariables.add(var);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.