equal
deleted
inserted
replaced
176 'host' : os.environ['HTTP_HOST'], |
176 'host' : os.environ['HTTP_HOST'], |
177 'index': redirects.getPublicRedirect(notification_entity, |
177 'index': redirects.getPublicRedirect(notification_entity, |
178 model_view.notification.view.getParams())} |
178 model_view.notification.view.getParams())} |
179 |
179 |
180 sender = mail_dispatcher.getDefaultMailSender() |
180 sender = mail_dispatcher.getDefaultMailSender() |
|
181 site_entity = site_logic.logic.getSingleton() |
|
182 site_name = site_entity.site_name |
181 |
183 |
182 # get the default mail sender |
184 # get the default mail sender |
183 default_sender = mail_dispatcher.getDefaultMailSender() |
185 default_sender = mail_dispatcher.getDefaultMailSender() |
184 |
186 |
185 if not default_sender: |
187 if not default_sender: |
194 messageProperties = { |
196 messageProperties = { |
195 'to_name': notification_entity.scope.name, |
197 'to_name': notification_entity.scope.name, |
196 'sender_name': sender_name, |
198 'sender_name': sender_name, |
197 'to': to, |
199 'to': to, |
198 'sender': sender, |
200 'sender': sender, |
|
201 'site_name': site_name, |
199 'subject': force_unicode(DEF_NEW_NOTIFICATION_MSG), |
202 'subject': force_unicode(DEF_NEW_NOTIFICATION_MSG), |
200 'notification' : notification_entity, |
203 'notification' : notification_entity, |
201 'notification_url' : notification_url |
204 'notification_url' : notification_url |
202 } |
205 } |
203 |
206 |