[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support to send predefined email template #36

Merged
merged 2 commits into from
Apr 3, 2021

Conversation

VitaliiBV
Copy link
Contributor

in MailContent.java deleted formating tag as ./gradlew install resulted into failed build because of it.

@@ -6,7 +6,9 @@
/**
* This class is deprecated. Don't use it. See below for instructions on how to
* migrate current code.
* <h3>Migration guide</h3>
*
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When i run ./gradlew install it fails with this error
image

Not sure if that my local issue only or anything I can do about it.

build.gradle Outdated
@@ -9,7 +9,7 @@ apply plugin: "jacoco"

group 'net.sargue'
archivesBaseName = 'mailgun'
version '1.9.2'
version '1.9.3'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version should be 1.10.0 because it changes the API.

@@ -225,6 +225,26 @@ public MailBuilder content(Body body) {
return text(body.text()).html(body.html());
}

/**
* Sets the name of the pre saved template that will be used to be sent by Mailgun.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rephrase this line, it's hard to understand.

* @param templateName the name of pre saved template on Mailgun
* @return this builder
*/
public MailBuilder template(String templateName){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep existing formatting convetions: space between ) and { at the end of the line.

* @param variables custom JSON data to be attached to the message.
* @return this builder
*/
public MailBuilder variables(String variables){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix formatting.

Copy link
Owner
@sargue sargue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review done. Some questions asked, some changes requested. Awaiting reply.

@VitaliiBV
Copy link
Contributor Author
VitaliiBV commented Mar 31, 2021 via email

@sargue
Copy link
Owner
sargue commented Apr 1, 2021

Thanks for the changes.

The javadoc error is really weird. First time I see it.

Which JDK are you using to build?

@VitaliiBV
Copy link
Contributor Author
VitaliiBV commented Apr 2, 2021 via email

@sargue
Copy link
Owner
sargue commented Apr 3, 2021

I was using Java 8 but when switching to 11 or 15 I indeed can reproduce the problem.

There are also failing steps. And also sigh JFrog is sunsetting bintray/jcenter so I need to switch also those parts.

I guess I need to work a bit on the gradle / build part before merging the PR.

@sargue
Copy link
Owner
sargue commented Apr 3, 2021

Actually, I think it would be better to merge the PR and then work on the upgrade build configuration.

@sargue sargue merged commit b9455fa into sargue:master Apr 3, 2021
@VitaliiBV
Copy link
Contributor Author
VitaliiBV commented Apr 5, 2021 via email

@sargue
Copy link
Owner
sargue commented Apr 5, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants