GithubHelp home page GithubHelp logo

egg-mailer's Introduction

Repositories pending

  • nav 🔍 Discovery Navigation: A purely static, powerful navigation website that supports SEO and online editing
  • tomato-work 🍅 Tomato Work for React
  • tomato-work-server 🍅 Tomato Work Server for Egg.js
  • boomb 💣 Manage your pictures easily for Github/Gitee
  • gosh 🛺 Golang utility library, With additional functions such as JavaScript/Python!
  • vue-authorized Used for vue3 based on ABAC permission verification component
  • git-manual :octocat: git command reference manual
  • linux-manual 🐧 Linux command reference manual
  • awesome-web-editor 🔨 Open source WEB editor summary
  • github-oauth2 Github OAuth2 for Go
  • wifi 📶 Quickly fetch your WiFi password and if needed, generate a QR code of your WiFi to allow phones to easily connect.
  • ...

egg-mailer's People

Contributors

xjh22222228 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

egg-mailer's Issues

"app.mailer.send is not a function"

为什么经常出现 "app.mailer.send is not a function"
这个1.3.2版本有很大问题。退回1.2.0就可以。查看了app.mailer的不同,发现好像根本没有初始化
console.log(app.mailer)

Singleton {
  clients: Map(0) {},
  app: {
    env: 'local',
    name: '',
    baseDir: '',
    subdomainOffset: 2,
    config: '<egg config>',
    controller: '<egg controller>',
    httpclient: '<egg httpclient>',
    loggers: '<egg loggers>',
    middlewares: '<egg middlewares>',
    router: '<egg router>',
    serviceClasses: '<egg serviceClasses>'
  },
  name: 'mailer',
  create: [Function: createMailer],
  options: {
    host: 'smtp.mxhichina.com',
    port: 465,
    secure: true,
    auth: { XXXX}
  }
}

疑惑

app.js中只是定义了一个Mail类,那如何保证Mail类中的构造函数执行,不需要new一个新的对象吗

优化一些内容

采用 addSingleton 加载对象,从而支持用户配置多个 nodemialer 对象进行使用
加载过程增加 coreLogger 日志输出到核心插件日志中,方便评估加载进度
增加单元测试,方便持续集成测试

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.