GithubHelp home page GithubHelp logo

sendmail's Introduction

sendmail

Send mail using spring boot I. Cấu hình jobmail ngoài liferay thêm những không tin sau: 1. Add line to "portal-setup-winzard.properties" : opencps.notify.job.mail=true 2. Thư mục file config.properties : /opt/SendMail/

II. Start mail với spring boot 1. Start bang cách tạo service với systemd - Tạo file : SendMail.service in path : /etc/systemd/system/ - Nội dung file: [Unit] Description=SendMail After=syslog.target

        [Service]
        #Type=forking
        User=tomcat
        Group=tomcat
        ExecStart=/opt/SendMail.jar
        SuccessExitStatus=143

        [Install]
        WantedBy=multi-user.target

    - Chú thích : 
            + Description : Tên app
            + User : user start app
                VD: tomcat =>  Create user : useradd tomcat
                    Change permission : chown -R tomcat:tomcat : /opt/SendMail.jar 
            + ExecStart : Đường dẫn chứa thư mục jar
    
    - Gõ lệnh: systemctl enable SendMail
                systemctl start/stop/restart SendMail
    
    - Xem log: tail -f /var/log/message

sendmail's People

Contributors

tranvietlam92 avatar

Watchers

 avatar  avatar

Forkers

trungnt-ksnb

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.