Email Notification on File Upload for Public Shared Library

I’m wondering if this feature is possible and how to do so. I have a Library set up with a public download and public upload link. I’d like to receive an email notification whenever a file is uploaded to the library. Is this possible?

this feature is only supported in pro edition.

for more info about email notification, you can see http://manual.seafile.com/config/sending_email.html

I think this Feature is currently Not avaliable. @lian are you sure? I cant find it in Manuel.

i tested it in pro server 5.1.10 this morning, and everything works fine.

first, add the following lines to ../conf/seahub_settings.py to enable Email sending

EMAIL_USE_TLS = False
EMAIL_HOST = 'smtp.example.com'        # smpt server
EMAIL_HOST_USER = 'username@example.com'    # username and domain
EMAIL_HOST_PASSWORD = 'password'    # password
EMAIL_PORT = 25
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
SERVER_EMAIL = EMAIL_HOST_USER

If you are using Gmail as email server, use following lines:

EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'username@gmail.com'
EMAIL_HOST_PASSWORD = 'password'
EMAIL_PORT = 587
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
SERVER_EMAIL = EMAIL_HOST_USER

then, add the following to ../conf/seafevents.conf

[SEAHUB EMAIL]

## must be "true" to enable user email notifications when there are new unread notifications
enabled = true

## interval of sending seahub email. Can be s(seconds), m(minutes), h(hours), d(days)
interval = 30m

and don’t forget to restart seafile/seahub.

NOTE:Seafile will only sent unread notifications

1 Like