Révision 02ed310e
Ajouté par Serghei Mihai (congés, retour 15/05) il y a plus de 7 ans
corbo/models.py | ||
---|---|---|
141 | 141 |
handler = HTML2Text() |
142 | 142 |
activate(settings.LANGUAGE_CODE) |
143 | 143 |
template = loader.get_template('corbo/announce.html') |
144 |
message = Message(subject=self.announce.title, mail_from=settings.CORBO_DEFAULT_FROM_EMAIL,
|
|
144 |
message = Message(subject=self.announce.title, mail_from=settings.DEFAULT_FROM_EMAIL, |
|
145 | 145 |
html=template.render( |
146 | 146 |
Context({'content': self.announce.text, |
147 | 147 |
'unsubscribe_link_placeholder': UNSUBSCRIBE_LINK_PLACEHOLDER}))) |
corbo/settings.py | ||
---|---|---|
120 | 120 |
RSS_LINK = '' |
121 | 121 |
RSS_LINK_TEMPLATE = '/#announce{0}' |
122 | 122 |
|
123 |
# default mass emails expeditor |
|
124 |
CORBO_DEFAULT_FROM_EMAIL = 'webmaster@localhost' |
|
125 |
|
|
126 |
|
|
127 | 123 |
# Authentication settings |
128 | 124 |
try: |
129 | 125 |
import mellon |
Formats disponibles : Unified diff
use DEFAULT_FROM_EMAIL as sender address (#14111)