Thanx again,
I have not had the time to check the last code but i'm sure it will work
fine.
The checkbox is also fine to leave out, the only problem would be if someone
gets mail and tells me he don't like to have it, but they will have to live
with it. I always have the possibility to erase their address in the
comment.
Is it ok if i add a feature request and adds this sample code? and adds you
to the reference Mr NAKAI?
/Niklas
On 12/20/06, Yusuke NAKAI <[EMAIL PROTECTED]> wrote:
Hi,
> I tried to find where to change to BCC but could not find the right
> reference, i agree with this beeing a problem, is it hard to change?.
Notification mail is send by cbtool.send_mail() method:
--------------------------------------------------
...
mgsheader = """To: %s
From: %s
Mime-Version: 1.0
Content-Type: text/plain; Charset=utf-8
""" % (to_addr,from_addr)
cbtool.send_mail(mgsheader+msgbody, to_addr, from_addr, ...
^^^^^^^^^^^^^^^^
--------------------------------------------------
This method is defined in COREBlog2/COREBlogTool.py from line 238. And
this uses send() method of SecureMailHost. But this method can't handle
BCC.
To handle BCC, using secureSend() method of SecureMailHost is needed.
But this approach seems to be a bit trouble. How about taking separate
sending approach?
To send mail separately, you can use 'for' loop for addr_list.
For example:
--------------------------------------------------
#Send notify mail if need
if context.getSend_comment_notification():
try:
for addr in addr_list:
to_addr = addr
...
--------------------------------------------------
> This might be to ask for to much but i will still ask, is it a hard job
> to add a check box (notify me when furter comments are added to this
> post) in the comment form and have the mails selected bu this check
box?
It seems to be hard. At least beyond my reach.
Regards,
--
Yusuke NAKAI
mail: [EMAIL PROTECTED]
web : http://nagosui.org
_______________________________________________
COREblog-en mailing list
[email protected]
http://postaria.com/mailman/listinfo/coreblog-en
Unsubscription writing to [EMAIL PROTECTED]
--
With best regards / med vänlig hälsning
Niklas
_______________________________________________
COREblog-en mailing list
[email protected]
http://postaria.com/mailman/listinfo/coreblog-en
Unsubscription writing to [EMAIL PROTECTED]