diff --git a/mailgun/README.rst b/mailgun/README.rst index 32c0535..1ce53ae 100644 --- a/mailgun/README.rst +++ b/mailgun/README.rst @@ -1,6 +1,6 @@ -============== - Mail Mailgun -============== +========= + Mailgun +========= With this module you can receive incoming messages from mailgun. There is no IMAP or POP3 servers on mailgun that is to be used with odoo. @@ -21,7 +21,7 @@ Sponsors Further information =================== -HTML Description: https://apps.odoo.com/apps/modules/9.0/mail_mailgun/ +HTML Description: https://apps.odoo.com/apps/modules/9.0/mailgun/ Usage instructions: ``_ diff --git a/mailgun/__openerp__.py b/mailgun/__openerp__.py index f0b5872..50f9277 100644 --- a/mailgun/__openerp__.py +++ b/mailgun/__openerp__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- { - 'name': "Mail Mailgun", + 'name': "Mailgun", 'author': "IT-Projects LLC, Ildar Nasyrov", 'license': 'LGPL-3', 'website': "https://twitter.com/nasyrov_ildar", diff --git a/mailgun/controllers/main.py b/mailgun/controllers/main.py index 1e46977..90652bb 100644 --- a/mailgun/controllers/main.py +++ b/mailgun/controllers/main.py @@ -20,7 +20,7 @@ class MailMailgun(http.Controller): "recipient" : "admin@iledarn.ru" }) - @http.route('/mail_mailgun', auth='public', csrf=False) + @http.route('/mailgun', auth='public', csrf=False) def incoming_mail(self, **kw): print '\n\n\n', 'in incoming_mail ', 'kw ', kw, '\n\n\n\n' res = self.get_logs() @@ -38,7 +38,7 @@ class MailMailgun(http.Controller): print item print '\n' - @http.route('/mail_mailgun_mime', auth='public', csrf=False) + @http.route('/mailgun_mime', auth='public', csrf=False) def incoming_mail_mime(self, **kw): print '\n\n\n', 'in incoming_mail_mime ', 'kw ', kw, '\n\n\n\n' body_mime = kw.get('body-mime') diff --git a/mailgun/doc/index.rst b/mailgun/doc/index.rst index e7e3c49..33ccd49 100644 --- a/mailgun/doc/index.rst +++ b/mailgun/doc/index.rst @@ -1,12 +1,13 @@ -============== - Mail mailgun -============== +========= + Mailgun +========= Usage ===== -* register on http://mailgun.com -* On https://mailgun.com/app/domains click on sandbox123...mailgun.org domain. Here you can see all information needed to configure odoo outgoing mail feature +* register or log in http://mailgun.com +* On https://mailgun.com/app/domains click on you domain, e.g. sandbox123...mailgun.org domain. Here you can see all information needed to configure odoo outgoing mail feature + * if you in sandbox domain, add Authorized Recepient * Copy API Key value into odoo * Open menu ``Settings / Parameters / System Parameters`` @@ -29,15 +30,10 @@ Usage * Username: e.g. ``postmaster@sandbox123....mailgun.org`` * Password: ``...`` (copy ``Default Password`` from mailgun) -* From odoo menu ``Settings / General Settings`` edit Alias Domain - - * Put your mailgun domain here. E.g. sandbox123...mailgun.org - * Click 'Apply' button - -* Set admin's email alias. Open menu ``Settings / Users / Users`` - - * choose your user and click ``[Edit]`` - * On Preference tab put alias into Messaging Alias field and click ``[Save]``. E.g. ``admin@sandbox...mailgun.org`` + * From odoo menu ``Settings / General Settings`` edit Alias Domain + + * Put your mailgun domain here. E.g. sandbox123...mailgun.org + * Click 'Apply' button * From https://mailgun.com/cp/routes create new route @@ -45,6 +41,11 @@ Usage * Filter expression: ``catch_all()`` * Actions: ``store(notify="http:///mailgun/notify")`` +* Set admin's email alias. Open menu ``Settings / Users / Users`` + + * choose your user and click ``[Edit]`` + * On Preference tab put alias into Messaging Alias field and click ``[Save]``. E.g. ``admin@sandbox...mailgun.org`` + * Via your favorite mail client (e.g. gmail.com) send email to ``admin@sandox...mailgun.org`` * Open ``Discuss`` in odoo * See your message there