Coder Social home page Coder Social logo

Comments (5)

tomazy avatar tomazy commented on September 3, 2024

@almothafar there haven't been any changes to the Postmark's API and it should l be working as expected - Postmark allows up to 50 recipients as comma separated list in a string:
https://postmarkapp.com/developer/api/templates-api#email-with-template

It seems to me that there is something wrong with the string you're passing as the "To" field. It is not [email protected],[email protected] but "[email protected],[email protected]" (note the surrounding quotes) instead - could you check that?

You can also show us how you're constructing that message with multiple recipients.

from postmark-java.

almothafar avatar almothafar commented on September 3, 2024

@tomazy I don't have any quotes around emails, also, I checked logs everything was working fine from 28th of Oct to 7th of Nov, we did 0 changes to the code, and we didn't do any deployment on the 7th of 8th of Nov. where the issue starts to happen, I did another deployment in 14th of Nov. but still having the same issue.

I have something like this:

String from = "[email protected]";
String to = "[email protected],[email protected]";
Integer templateId = 123;
String subject = "Test subject";

final TemplatedMessage templatedMessage = new TemplatedMessage(from, to, templateId);
templatedMessage.setReplyTo(from);
templatedMessage.setTemplateModel(Json.toJson(templateData));
client.deliverMessageWithTemplate(templatedMessage);

from postmark-java.

almothafar avatar almothafar commented on September 3, 2024

OK, finally I saw the issue, To was "Name" <[email protected],[email protected]> when I debugged it inside the postmark code itself, I found the reason for this, but I'm still confused, it was working like that before and now not working, or the change that deployed in 14th Nov. that written in 11th of Nov. somehow deployed to production in 7th to 8th of Nov., is that myself traveled in the time? or again that "Name" <[email protected],[email protected]> was working and now not.

I'm totally confused...

Anyway, I fixed this from my side.

from postmark-java.

almothafar avatar almothafar commented on September 3, 2024

And still, if you can see my other notes in bullets will be nice, I can open another issue of these bullets if you want.

from postmark-java.

tomazy avatar tomazy commented on September 3, 2024

@almothafar glad you were able to locate and fix the problem. I'm going to close this ticket and please open separate ticket for other issues you have with the library.

from postmark-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.