FIWARE-TMForum / Business-API-Ecosystem

The FIWARE/TMForum Business API Ecosystem allows the monetization of different kind of assets (both digital and physical) during the whole service life cycle, from offering creation to its charging, accounting and revenue settlement and sharing
https://business-api-ecosystem.rtfd.io/
GNU Affero General Public License v3.0
39 stars 22 forks source link

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

Open Trophime opened 6 years ago

Trophime commented 6 years ago

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.

fdelavega commented 6 years ago

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

Trophime commented 6 years ago

Do you mean to change these lines?

ADMINS = (
    # ('Your Name', 'your_email@example.com'),
)
fdelavega commented 6 years ago

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

Trophime commented 6 years ago

thanks

emepetres commented 6 years ago

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.