iobroker.email

1.2.2 • Public • Published

Logo

ioBroker email

Number of Installations Number of Installations NPM version

Test and Release Translation status Downloads

Send emails from ioBroker.

The adapter uses nodemailer to provide the functionality.

This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0.

To use Gmail you may need to configure "Allow Less Secure Apps" in your Gmail account unless you are using 2FA in which case you would have to create an Application Specific password. You also may need to unlock your account with "Allow access to your Google account" to use SMTP.

Usage

To send email from ScriptEngine just write:

// send email to all instances of email adapter
sendTo("email", "Email body");

// send email to specific instance of email adapter
sendTo("email.1", "Email body");

// To specify subject or other options
sendTo("email", {
    from:    "iobroker@mydomain.com",
    to:      "aabbcc@gmail.com, xxyyzz@gmail.com", // comma separated multiple recipients.
    subject: "Message from ioBroker",
    text:    "This is test email to you!"
});

// To send attachments
sendTo("email", {
    attachments: [
       // use file on disk as attachment
       {path: "/pathToImage/picture1.jpg"},
       {   // use URL as an attachment
            filename: 'license.txt',
            path: 'https://raw.github.com/andris9/Nodemailer/master/LICENSE'
       }
    ]
});

// To send in html format
sendTo("email", {
    html: "<p>Embedded image: <img src='cid:image1'/></p>",
    attachments:[
        {path: "path/to/file/image1.jpg", cid: "image1"}
    ]
});

To send email from other adapter use adapter.sendTo function.

Supported services

  • 1und1 / ionos
  • AOL
  • DebugMail.io
  • DynectEmail
  • FastMail
  • GandiMail
  • Gmail
  • Godaddy
  • GodaddyAsia
  • GodaddyEurope
  • hot.ee
  • Hotmail
  • iCloud
  • ith
  • mail.ee
  • Mail.ru
  • Mailgun
  • Mailjet
  • Mandrill
  • Naver
  • Office365
  • OpenMailBox
  • Postmark
  • QQ
  • QQex
  • SendCloud
  • SendGrid
  • SES
  • SES-US-EAST-1
  • SES-US-WEST-2
  • SES-EU-WEST-1
  • Sparkpost
  • Yahoo
  • Yandex
  • Zoho
  • User specific (Server, port and security defined manually)

For other services see documentation of Nodemailer: [https://github.com/nodemailer/nodemailer](https://github.com/nodemailer/nodemailer)

Changelog

1.2.2 (2023-12-25)

  • (foxriver76) trim host messages from notification-manager correctly

1.2.1 (2023-12-08)

  • (foxriver76) send the actual message too via notification-manager

1.2.0 (2023-06-02)

1.1.4 (2022-10-08)

  • (Apollon77) Prepare compatibility with future js-controller versions

1.1.3 (2022-05-30)

  • (Apollon77) Make sure the STARTTLS configuration field is displayed

1.1.2 (2022-05-18)

  • (Apollon77) Fix mail.ee settings

1.1.1 (2022-05-18)

  • (Apollon77) Allow to use connections to port 25 unencrypted

1.1.0 (2022-05-11)

  • (Apollon77) Adjust default settings for web.de and 1und1 and add ionos
  • (Apollon77) Add "Always use STARTTLS" option for custom SMTP settings

1.0.10 (2021-07-06)

  • (Apollon77) Optimize for js-controller 3.3

1.0.9 (2021-02-22)

  • (Apollon77) Call message callback always with error or without

1.0.7 (2020-06-11)

  • (Apollon77) Make sure adapter is not crashing on stop in some edge cases
  • (Apollon77) Add Sentry for crash reporting with js-controller >=3.x

1.0.6 (2019-12-29)

  • (bluefox) Compact mode supported

1.0.5 (2019-09-18)

  • (Apollon77/bluefox) js-controller 2.0 compatibility, dependency updates

1.0.4 (2018-03-26)

  • (skraw.iobroker) Add ith

1.0.3 (2018-03-04)

  • (bluefox) fix blockly
  • (bluefox) Admin3 ready

1.0.2 (2017-01-31)

  • (instalator) fix translations

1.0.1 (2016-12-20)

  • (bluefox) add Office365

1.0.0 (2016-10-12)

  • (bluefox) support of blockly

0.2.1 (2016-09-03)

  • (bluefox) fix sending emails after first one

0.2.0 (2016-08-29)

  • (bluefox) filter out double messages
  • (bluefox) use new nodemailer packet

0.1.2 (2015-04-30)

  • (bluefox) fix settings if "user defined" was selected

0.1.1 (2015-04-28)

  • (bluefox) update configuration page and decode errors

0.1.0 (2015-01-02)

  • (bluefox) prepare npm

0.0.4 (2014-11-2)

(bluefox) support of new naming concept

0.0.3 (2014-10-09)

  • (bluefox) support of daemon mode
  • (bluefox) add Gruntfile.js

License

The MIT License (MIT)

Copyright (c) 2014-2023 bluefox

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Dependencies (2)

Dev Dependencies (7)

Package Sidebar

Install

npm i iobroker.email

Weekly Downloads

198

Version

1.2.2

License

MIT

Unpacked Size

87.1 kB

Total Files

11

Last publish

Collaborators

  • foxriver76
  • iobluefox
  • bluefox
  • apollon77
  • ldittmar
  • alcalzone
  • mcm1957
  • pmant
  • matten-matten
  • simatec
  • dkleber89
  • raintonr
  • issi
  • ciddi89
  • dutchmannl
  • patrickwaltherh
  • ruhr70
  • arteck
  • meistertr
  • prinzeisenherz1
  • nisiode
  • zefau
  • algar42
  • garfonso
  • forelleblau
  • buzzy1337
  • pdbjjens
  • unclesamswiss
  • _shojo_
  • swedish.chef
  • thiemoh
  • sven-s-ter