-
Notifications
You must be signed in to change notification settings - Fork 52
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
Trouble with SendGrid Provider: Sender From Name #118
Comments
Thank you!! This is your first issue on this repo |
Could you please try the following code: strapi
.plugin('email-designer')
.service('email')
.sendTemplatedEmail({
to: sendTo,
+ from: `${process.env.DEFAULT_FROM_EMAIL_NAME} <${process.env.DEFAULT_FROM_EMAIL}>`,
- from: {
- email: process.env.DEFAULT_FROM_EMAIL,
- name: process.env.DEFAULT_FROM_EMAIL_NAME
- }
}, {
templateReferenceId: templateReferenceId
}, {
...result,
registeredDate: moment(result.createdAt).format("DD-MM-YYYY")
})
.catch(e => {
console.error("Send email fail", e);
strapi.log.error("Send mail error", e);
}); This change should get the result you want without the need to change anything on package side |
@creazy231 thank you so much |
You're welcome 🙌 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Describe the bug
From name for Strapi Sendgrid email provider.
Steps to reproduce the behavior
Change "from" in SendOptions from string to object for Sender Name in SendGrid Api will cause Error
It will got error in node_modules/strapi-plugin-email-designer/server/services/email.js
I have to modify it to work with SendGrid email provider
Does have any another way to do it but not modify library code
System
The text was updated successfully, but these errors were encountered: