Browse Source

[DOC] updates to new modules name + improvements in docs

pull/19/head
Ivan Yelizariev 9 years ago
parent
commit
3cd74e354b
  1. 8
      mailgun/README.rst
  2. 2
      mailgun/__openerp__.py
  3. 4
      mailgun/controllers/main.py
  4. 29
      mailgun/doc/index.rst

8
mailgun/README.rst

@ -1,6 +1,6 @@
==============
Mail Mailgun
==============
=========
Mailgun
=========
With this module you can receive incoming messages from 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. There is no IMAP or POP3 servers on mailgun that is to be used with odoo.
@ -21,7 +21,7 @@ Sponsors
Further information 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: `<doc/index.rst>`_ Usage instructions: `<doc/index.rst>`_

2
mailgun/__openerp__.py

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
{ {
'name': "Mail Mailgun",
'name': "Mailgun",
'author': "IT-Projects LLC, Ildar Nasyrov", 'author': "IT-Projects LLC, Ildar Nasyrov",
'license': 'LGPL-3', 'license': 'LGPL-3',
'website': "https://twitter.com/nasyrov_ildar", 'website': "https://twitter.com/nasyrov_ildar",

4
mailgun/controllers/main.py

@ -20,7 +20,7 @@ class MailMailgun(http.Controller):
"recipient" : "admin@iledarn.ru" "recipient" : "admin@iledarn.ru"
}) })
@http.route('/mail_mailgun', auth='public', csrf=False)
@http.route('/mailgun', auth='public', csrf=False)
def incoming_mail(self, **kw): def incoming_mail(self, **kw):
print '\n\n\n', 'in incoming_mail ', 'kw ', kw, '\n\n\n\n' print '\n\n\n', 'in incoming_mail ', 'kw ', kw, '\n\n\n\n'
res = self.get_logs() res = self.get_logs()
@ -38,7 +38,7 @@ class MailMailgun(http.Controller):
print item print item
print '\n' 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): def incoming_mail_mime(self, **kw):
print '\n\n\n', 'in incoming_mail_mime ', 'kw ', kw, '\n\n\n\n' print '\n\n\n', 'in incoming_mail_mime ', 'kw ', kw, '\n\n\n\n'
body_mime = kw.get('body-mime') body_mime = kw.get('body-mime')

29
mailgun/doc/index.rst

@ -1,12 +1,13 @@
==============
Mail mailgun
==============
=========
Mailgun
=========
Usage 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 * Copy API Key value into odoo
* Open menu ``Settings / Parameters / System Parameters`` * Open menu ``Settings / Parameters / System Parameters``
@ -29,15 +30,10 @@ Usage
* Username: e.g. ``postmaster@sandbox123....mailgun.org`` * Username: e.g. ``postmaster@sandbox123....mailgun.org``
* Password: ``...`` (copy ``Default Password`` from mailgun) * 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 * From https://mailgun.com/cp/routes create new route
@ -45,6 +41,11 @@ Usage
* Filter expression: ``catch_all()`` * Filter expression: ``catch_all()``
* Actions: ``store(notify="http://<your odoo domain>/mailgun/notify")`` * Actions: ``store(notify="http://<your odoo domain>/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`` * Via your favorite mail client (e.g. gmail.com) send email to ``admin@sandox...mailgun.org``
* Open ``Discuss`` in odoo * Open ``Discuss`` in odoo
* See your message there * See your message there

Loading…
Cancel
Save