Code Monkey home page Code Monkey logo

strapi-provider-email-mailjet's People

Contributors

ndokutovich avatar sboutet06 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

bacce

strapi-provider-email-mailjet's Issues

Line return

When I send a message like this one :
"test
test2
test3
test4"
with this provider, it appears in my mailbox like this :
"test test2 test3 test3"
How can I manage to make the line return efficient ?

From and Reply To

In code you have kept order of initialization of from & replyto as

options.from = options.from || config.mailjet_default_from
options.replyTo = options.replyTo || config.mailjet_default_replyto

Due to this, strapi default from straipi.io is being used even when users configure from address which creates problem in sending emails. I think it should be switched as below (config first):

options.from = config.mailjet_default_from || options.from
options.replyTo = config.mailjet_default_replyto || options.replyTo

Can't Install the Package

Hey,

I am not able to install the package. The Git mentioned in the logs returns 404

bash-4.4# npm i strapi-provider-email-mailjet
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/mailjet/mailjet-api                                                       v3-nodejs.git

line return missing

Hi,

I use this in my strapi :

let opts = JSON.parse(ctx.request.body)
await strapi.plugins['email'].services.email.send({
to: '[email protected]',
from: '[email protected]',
subject: opts.subject,
text:
Nom : ${opts.name}
Email : ${opts.from}
${opts.text},
});

But when I receive my mails, all is in one line in the text section ?
Any ideas why ?

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.