Making your webapp react to emails
- Follow Lamson's creator Zed Shaw's 30 second install guide ( setup notes in blog post ).
http://lamsonproject.org/docs/getting_started.html
$ easy_install lamson
$ lamson gen -project mymailserver
$ cd mymailserver
$ lamson start
$ lamson log
$ nosetests
$ lamson help -for send
$ lamson send -sender me@mydomain.com -to test@test.com -subject “My test.” -body “Hi there.” -port 8823
$ less logs/lamson.log
$ mutt -F muttrc
-
Create a containing folder.
-
Into the containing folder, download and extract Google GData library:
gdata-2.0.5.tar.gz
and clone this github repo:
git clone https://github.com/drewbuschhorn/lamson_gcal_example.git
-
Edit lamson_gcal_example/simplifiedCalendarExample.py and replace 'REPLACEME' with GCal credentials.
-
Navigate to lamson_gcal_example/mymailserver and run:
lamson start
-
Run this command to create a entry on your calendar:
lamson send -sender me@localhost -to me@localhost -subject "My test." -body "Hi there. Let's meet from 7pm until 9pm. Does that sound good?" -port 8823
-
Check your error logs for any issues:
tail logs/lamson*