> -----Original Message----- > From: [email protected] On Behalf Of pieroxy > Sent: 12 September 2011 13:12 > To: Trac Users > Subject: [Trac] TracNotification issue with SMTP > > Hi there, > > I was trying to get TracNotification to work, and I almost got there. > I am using Ubuntu (11.04) with trac from the repos (0.11.7) > > First of all, the wiki page is misleading. It lets you believe the > "Example configuration (SMTP)" is enough to get it to work, when the > crucial "email_sender = SmtpEmailSender" is missing.
Really? I do not have that line in my config and I have been using smtp happily for quite a while. In fact, according to http://trac.edgewall.org/wiki/TracNotification, `email_sender` is only "since 0.12" so should have no effect in your 0.11.7 setup! > Second, whenever I activate SMTP (smtp_enabled = true), I get the > following message in the logs (and an error page): > > 2011-09-12 13:44:38,524 Trac[notification] INFO: Sending SMTP > notification to smtp.free.fr:25 to [u'pierre@...'] > 2011-09-12 13:44:42,916 Trac[main] ERROR: Internal Server Error: > Traceback (most recent call last): > File "/usr/lib/python2.7/dist-packages/trac/web/main.py", line 450, > in _dispatch_request > dispatcher.dispatch(req) > File "/usr/lib/python2.7/dist-packages/trac/web/main.py", line 217, > in dispatch > self._post_process_request(req, *resp) > File "/usr/lib/python2.7/dist-packages/trac/web/main.py", line 309, > in _post_process_request > resp = f.post_process_request(req, *resp) > File "build/bdist.linux-x86_64/egg/acct_mgr/web_ui.py", line 869, in > post_process_request > email=email, link=link)))) > TypeError: __call__() got an unexpected keyword argument 'link' The traceback shows that your error is coming from the `acct_mgr` egg and not Trac (note all the previous lines use /python2.7/dist-packages/trac/ but the error is from /egg/acct_mgr/)... > The email are sent allright. > > Another issue, I receive the email verification mail every time. I can > clic on the link and log in, it doesn't do anything. I do not understand, what are you expecting? > Thanks for your help. > > Note: my trac.ini notifications section: > > [notification] > admit_domains = > always_notify_owner = true > always_notify_reporter = true > always_notify_updater = true > ignore_domains = > mime_encoding = none > smtp_always_bcc = > email_sender = SmtpEmailSender > smtp_always_cc = > smtp_default_domain = > smtp_enabled = false Umm, how are you getting emails when your ini file has not enabled SMTP ??? > smtp_from = pierre@... > smtp_from_name = Pierre > smtp_password = > smtp_port = 25 > smtp_replyto = pierre@... > smtp_server = my.isp.smtp.server.name > smtp_subject_prefix = __default__ > smtp_user = > ticket_subject_template = $prefix #$ticket.id: $summary > use_public_cc = false > use_short_addr = false > use_tls = false ~ mark c -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
