Business-API-Ecosystem icon indicating copy to clipboard operation
Business-API-Ecosystem copied to clipboard

can an email notification be sent to the owner when a product is purchased?

Open Trophime opened this issue 7 years ago • 5 comments

Hi, it would be great to be notified by email when a product has been purchased I mean when a product order is pending.... since we (the owner) are not always connected into the MArketplace.

Trophime avatar Jun 12 '18 12:06 Trophime

This feature is supported by the system, the only thing you need to do is configuring your email settings in the settings.py file of the BAE charging backend

fdelavega avatar Jun 12 '18 13:06 fdelavega

Do you mean to change these lines?

ADMINS = (
    # ('Your Name', '[email protected]'),
)

Trophime avatar Jun 12 '18 13:06 Trophime

Nope, I mean:

WSTOREMAILUSER = 'email_user' WSTOREMAIL = 'wstore_email' WSTOREMAILPASS = 'wstore_email_passwd' SMTPSERVER = 'wstore_smtp_server' SMTPPORT = 587

With all the information needed for using an email provider to send an email, you have details in the configuration section of the installation guide:

http://business-api-ecosystem.readthedocs.io/en/latest/installation-administration-guide.html#configuring-the-charging-backend

fdelavega avatar Jun 12 '18 15:06 fdelavega

thanks

Trophime avatar Jun 12 '18 19:06 Trophime

Hi @fdelavega ,

We stopped the containers, changed charging settings.py email settings (using port 465 for smtp server), removed *.pyc files in configuration and start again. We are in debug mode for now.

Email is configured in the product owner account, but still no email is sent to the owner when a purchase is made.

emepetres avatar Jun 13 '18 08:06 emepetres