Giter VIP home page Giter VIP logo

ngrok-mailer's Introduction

ngrok

  1. Download ngrok
  2. Extract
  3. Move ngrok binary in mailer folder

Mail

Install

sudo apt install msmtp msmtp-mta ca-certificates

Enable less secure apps on gmail - Possibly not needed

https://myaccount.google.com/lesssecureapps and check the toggle

Enable 2FA and create an App Password

Google Account/2Fa
Google Account/Security/App Password

Setup msmtp config

sudo vim /etc/msmtprc

Content

# Generics
defaults
auth           on
tls            on
# following is different from ssmtp:
tls_trust_file /etc/ssl/certs/ca-certificates.crt
# user specific log location, otherwise use /var/log/msmtp.log, however,
# this will create an access violation if you are user pi, and have not changes the access rights
logfile        ~/.msmtp.log

# Gmail specifics
account        gmail
host           smtp.gmail.com
port           587

from           dummy
user           [email protected]
password       App Password

# Default
account default : gmail

Local Videos

/var/lib/motioneye/Camera1/

Ngrok mailer

/home/pi/mailer

Crontab

crontab -e
@reboot sleep 30 && /home/pi/mailer/ngrokmailer.sh
@weekly /home/pi/mailer/ngrokmailer.sh

ngrok-mailer's People

Contributors

developerfromjokela avatar

Watchers

 avatar

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.