Skip to content
/ mail Public

Simple text only smtp, sendmail and linux style file based quene.

Notifications You must be signed in to change notification settings

gotamer/mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gotamer/mail

GoDoc Send

$ sendmail -h
  -b string
        Mail body text
  -c string
        Config file location (default "/etc/sendmail.json")
  -d    Debug mode
  -f string
        Mail From email address
  -h    Display help
  -now
        Send message now, message will not be added to Queue
  -run
        Process Queue
  -s string
        Mail subject line
  -t string
        Mail To email address

Sending mail with sendmail over smtp

$ go get github.com/gotamer/mail/cmd/sendmail
# mkdir  /var/spool/queue
# chown mail:mail /var/spool/queue
# cd /usr/local/bin
# ln -s $GOBIN/sendmail
$ sudo runuser -u mail -- sendmail -t user@example.com -s "My subject" -b "Body of mail"
$ sudo runuser -u mail -- sendmail -run

gotamer/mail/send also implements the io.Writer interface.

gotamer/mail/imap

GoDoc Imap

gotamer/mail/imap to get mail from an imap server

About

Simple text only smtp, sendmail and linux style file based quene.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages