Questions tagged [mailjet]

All in one email provider accessible via API or SMTP. Offers transactional emails, marketing emails, newsletter template editor, realtime analytics, inbound email processing.

All in one email provider accessible via API or SMTP. Offers transactional emails, marketing emails, newsletter template editor, realtime analytics, inbound email processing. Website: http://dev.mailjet.com/

198 questions
2
votes
1 answer

Node js mail jet method chaining stub

Here, I want to assert that callback function is called or not. So how can I do it using sinon js. Please suggest. var send = function (templateId, callback) { const request = mailjet .post("send") .request(params) request …
Jigar Pancholi
  • 1,209
  • 1
  • 8
  • 25
2
votes
1 answer

Node js make test stub for method chaining

My function is sendMail i want to stub function mailjet and it has a method chain mailjet.post('send').request... I want to assert callback is called on mail success or fail. So how i stub this method chain? var sendMail = function (templateName,…
Apoorva Shah
  • 632
  • 1
  • 6
  • 15
2
votes
3 answers

MailJet nested loops

we are building our emails with mailJet which works fine so far. Our current problem is, that we would like to have a loop within a loop within a loop (so nested loops) the first loop works fine, and also the second inner loop is working fine, but…
Alexander Kiefer
  • 546
  • 1
  • 13
  • 30
2
votes
1 answer

How to solve Script error for: node module?

I try to use the Mailjet Wrapper for Node.js for my Ionic app. Now I try to connect to the Mail by using following code :- var connection = require(['node-mailjet'], function(mailjet){ mailjet.connect('api key', 'api secret'); }); But I'm…
2
votes
1 answer

mailjet send email with attachments in txt form

Another program send to my script already finished letter: http://pastebin.com/XvnMrKzE So, i parse from_email and to_email, do some changes in text and send it with mailjet. When i did this with smtp: def send(sender, to, message): smtp =…
Arti
  • 7,356
  • 12
  • 57
  • 122
2
votes
1 answer

How to render a view when a (Mailjet) cURL request is finnished?

I'm stuck on this problem and can't figure out how to solve it. I'm using CakePhp 2.x, as a framework, and Mailjet to send mails, and get their status. (Mailjet is a French competitor of Mailchimp). I want to display in my index all the campaigns…
2
votes
1 answer

Mailjet: Adding email to list does not work

I have started to use Mailjet to store the subscription emails using a form. The library I used for this task is "https://github.com/mailjet/mailjet-apiv3-php-simple" include("php-mailjet-v3-simple.class.php"); $apiKey = "xxx"; $secretKey =…
Teshan N.
  • 2,307
  • 3
  • 30
  • 59
2
votes
0 answers

Delayed Jobs with Action Mailer using Mailjet API on a Heroku Rails App

Looking to send a delayed jobs mailer with Mailjet's API, but the emails are not being sent. All works locally with Foreman, but again, on development on Heroku is not sending. The delayed jobs table was created. Here's the gemfile gem…
jpn
  • 285
  • 2
  • 15
2
votes
0 answers

Fastest Way to Send SMTP E-mail Using MailJet

I'm trying to find a faster way to send e-mail using MailJet. The function below is called within a loop so each loop iteration is an individual e-mail. In my test case it was taking 19 seconds to send 10 emails. Their support recommended turning…
gfrobenius
  • 3,987
  • 8
  • 34
  • 66
2
votes
2 answers

How to specify a template in a transational email with mailjet

I am using the mailjet gem in my rails app. In the Gemfile gem 'mailjet' And some config: initializers/mailjet.rb Mailjet.configure do |config| config.api_key = 'your-api-key' config.secret_key = 'your-secret-key' config.default_from =…
Benjamin Crouzier
  • 40,265
  • 44
  • 171
  • 236
2
votes
1 answer

Net::SMTPServerBusy Relay access denied Mailjet

I am receiving this error when trying to send Mailjet email from my production server: Net::SMTPServerBusy (454 4.7.1 : Relay access denied ) Here is my config/initializers/mail.rb file: ActionMailer::Base.delivery_method =…
Richard74
  • 89
  • 2
  • 11
1
vote
1 answer

Missing Mandatory Parameter while sending the API request to Mailjet

I am trying to integrate Mailjet API to send Bulk mails, where I read the documentation and wrote the necessary code to send the request, but I get the error as "ErrorCode" => "mj-0003". The mandatory parameters are From , To , TextPart. Even though…
Pravin
  • 11
  • 3
1
vote
0 answers

Mailjet not send the template language part in the message

I am using mailjet to send notification to user if they upload a file. So I created a template like that But when i got the message it only send the title and first description part, it does not send the template language part. I dont know if I…
sayinmehmet47
  • 490
  • 5
  • 21
1
vote
0 answers

Mailjet - Perform string and array manipulation

I couldn’t find an answer to my question, including on the Mailjet documentation so here I am. Can someone tell me if it is possible (and if so, how) in Mailjet's templating language to : check if a variable contains a specific string add an…
OneMinute
  • 25
  • 8
1
vote
1 answer

MailJet require().connect is not a function

I'm attempting to verify sending with MailJet, but I literally can't, since it's throwing a stupid error. This is what error I'm encountering. const mailjet = require('node-mailjet').connect('****************************1234',…
Bee
  • 117
  • 7
1 2
3
13 14