noamtm kirjoitti:
> What you need is sending mail from the hook script, not from Trac. I
> recommend using Python's smtplib module:
> http://www.python.org/doc/2.5.2/lib/module-smtplib.html
> 
> See usage example here:
> http://www.python.org/doc/2.5.2/lib/SMTP-example.html
> 
> Just put the mail-sending code (as a function) in a .py file together
> with the contributed hook script, and do something like:
>    if not cmd_groups:
>       send_mail(chgset)
> 
> right after the line that says:
>    cmd_groups = command_re.findall(self.msg)

I just meant that if there is helpers in Trac so I could avoid 
handcrafting all necessary fields since I open trac environment that 
contains all necessary settings and user e-mail addresses.

Yeah, question was poorly constructed...

basically I'm looking something like:

sendmail(env, 'username', 'subject', 'body') or similiar...

-- 
Jani Tiainen

"Tein sein mihin näillä lahjoilla pystyin.
  Tein sen, en yhtään enempää." - Martti Servo & Napander


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to