Could you post the code you are using to send emails?<br><br><div class="gmail_quote">On 24 July 2011 11:22, Dr. Trigon <span dir="ltr"><<a href="mailto:dr.trigon@surfeu.ch">dr.trigon@surfeu.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello all!<br>
<br>
I am searching desperately for a solution to following problem.<br>
DrTrigonBot is written such that in case of an (not severe) error<br>
the bot should send an email with a notification to me. BUT the<br>
strange thing I do not understand is; userlib.py is not able to<br>
send emails about 50% of the tries...<br>
<br>
Some info can be found in (at the very end):<br>
<a href="http://toolserver.org/~drtrigon/DrTrigonBot/20110724.log" target="_blank">http://toolserver.org/~drtrigon/DrTrigonBot/20110724.log</a><br>
<br>
The error raised is<br>
'UserActionRefuse("You don't have permission to send mail",)'<br>
<br>
Does anyone have an idea how to solve this? In my view this is<br>
triggered by "if not self.site().isAllowed('sendemail'):" in<br>
"userlib.sendMail" but WHY is this 'sendemail' flags sometimes<br>
true and sometimes false...?!?<br>
<br>
Thanks a lot for your help and time<br>
Greetings to all!<br>
DrTrigon<br>
<br>
_______________________________________________<br>
Pywikipedia-l mailing list<br>
<a href="mailto:Pywikipedia-l@lists.wikimedia.org">Pywikipedia-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l</a><br>
</blockquote></div><br>