Code Monkey home page Code Monkey logo

Comments (17)

Aconcagua-CTO avatar Aconcagua-CTO commented on August 29, 2024 1

from extensions.

Aconcagua-CTO avatar Aconcagua-CTO commented on August 29, 2024 1

In my case I'm using it on the emailTemplates collection
I added a field on each document
The field name is "text"
The value is " "
Like this
image

Hope it helps

from extensions.

belwalravi avatar belwalravi commented on August 29, 2024 1

Thanks @Aconcagua-CTO bro it helped. Mail are getting delivered now. Now we need to add a text field with a space to get your code working.

from extensions.

pr-Mais avatar pr-Mais commented on August 29, 2024

I can reproduce, looking into it.

from extensions.

Aconcagua-CTO avatar Aconcagua-CTO commented on August 29, 2024

Hi guys, not sure if this is related. I upgraded from 0.1.29 to 0.1.32 yesterday, and my mails are failing with
"Error: String expected for text"
image

I send my messages using html, and always kept text: null.
This was working on 0.1.29, but not on 0.1.32.

I'll keep testing on my side and let you know if I find anything else.

Regards

from extensions.

pr-Mais avatar pr-Mais commented on August 29, 2024

@Aconcagua-CTO are you using sendgrid?

from extensions.

Aconcagua-CTO avatar Aconcagua-CTO commented on August 29, 2024

Yes

from extensions.

pr-Mais avatar pr-Mais commented on August 29, 2024

Tried with the following and it was sent successfully (using SendGrid)

Screenshot 2024-03-26 at 5 44 21 PM

from extensions.

pr-Mais avatar pr-Mais commented on August 29, 2024

It seems that when using https://www.npmjs.com/package/nodemailer-sendgrid the response doesn't include a delivery info in the response & it uses SendGrid v3 API, which I used in the newest version for SendGrid as it enabled using Dynamic Templates.

from extensions.

Aconcagua-CTO avatar Aconcagua-CTO commented on August 29, 2024

In my case, I'm using emailTemplates collection to populate my emails.
I just confirmed that the template now needs non-empty text field to work.
On production, extension is 0.1.29 and text field is not in the emailTemplate collection, emails are sent without problem.

On 0.1.32 I tested with a null text field
image
It failed
Tested an empty string and it failed
image

Now I'm testing a single space and it's working again
image

Seems we have separate issues :D

from extensions.

pr-Mais avatar pr-Mais commented on August 29, 2024

@Aconcagua-CTO interesting, might also be related to the last update to SendGrid, checking now.

from extensions.

pr-Mais avatar pr-Mais commented on August 29, 2024

@Aconcagua-CTO I faced some issues using the templates collection as well, mostly caused by the new SendGrid transporter. We can get back the old transporter which appears to use SendGrid v2, but this will remove the support for Dynamic Templates. Thinking of introducing a new param for users who would like to use v3.

from extensions.

belwalravi avatar belwalravi commented on August 29, 2024

Hi @Aconcagua-CTO @pr-Mais @KoheiKanagu ,
I am also facing a similar kind of issue, after upgrading to the latest version of the extension I am not able to send mails, while using collection templates but with the previous version It was working. Can someone assist with this?

Screenshot 2024-04-04 at 6 34 01 PM

from extensions.

Aconcagua-CTO avatar Aconcagua-CTO commented on August 29, 2024

Hi @belwalravi did you try adding a field "text" with a single space? Look at my past message.

from extensions.

belwalravi avatar belwalravi commented on August 29, 2024

Yes @Aconcagua-CTO I read those comments. Could be please let me know how will the object be looking in my case with text. I mean where should I place this text.

Screenshot 2024-04-04 at 7 51 39 PM

from extensions.

belwalravi avatar belwalravi commented on August 29, 2024

Hi @Aconcagua-CTO This is how my template collection doc is. If you are talking about this? Do you mean I should keep the text field here?

Screenshot 2024-04-04 at 8 03 23 PM

from extensions.

Aconcagua-CTO avatar Aconcagua-CTO commented on August 29, 2024

Yes, that was the collection I was referring to.
Glad to help!

from extensions.

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.