typpo / textbelt

Free API for outgoing SMS
https://textbelt.com/
MIT License
3.01k stars 508 forks source link

Getting error message, but text still sends. #158

Open clarkhacks opened 3 years ago

clarkhacks commented 3 years ago
curl -X POST http://localhost:9090/text -d number=REDACTED -d "message=Testing www.test.com"
{"success":false,"message":"Communication with SMS gateway failed. Did you configure mail transport in lib/config.js?  Error message: 'Data command failed: 421 4.3.0 Temporary System Problem.  Try again later (10). l21sm4796570otd.0 - gsmtp'"}

lib/config.js

const SENDMAIL_TRANSPORT = {
  // This transport uses the local sendmail installation.
  sendmail: true,
  newline: 'unix',
  path: '/usr/sbin/sendmail',
};

const SMTP_TRANSPORT = {
  service: 'Gmail', // no need to set host or port etc.
  auth: {
      user: 'REDACTED',
      pass: 'REDACTED'
  }
};

module.exports = {
  transport: SMTP_TRANSPORT,
  mailOptions: {
    from: '"REDACTED" REDACTED',
  },
  debugEnabled: false,
};
aaron3238 commented 3 years ago

Same troubles

brytisioma commented 3 years ago

Can some one help me setup text belt. Contact me via Sharedlife58@gmail.com. @smslord (telegram)