<div dir="ltr">I will have a try, Thanks for your kindly help.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-11 19:24 GMT+08:00 Pierre Tardy <span dir="ltr"><<a href="mailto:tardyp@gmail.com" target="_blank">tardyp@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Several options come to mind.<div><br></div><div>- You could run a python2 master just for the mail reporter (with bb multimaster capabilities)</div><div>- You could use pushjet or pushover notifiers which have email support and also sms <a href="http://docs.buildbot.net/latest/manual/cfg-reporters.html#pushover-notifications" target="_blank">http://docs.buildbot.net/<wbr>latest/manual/cfg-reporters.<wbr>html#pushover-notifications</a></div><div>- write a new reporter based on the basenotifier class which sends mail using smtplib <a href="https://www.tutorialspoint.com/python3/python_sending_email.htm" target="_blank">https://www.tutorialspoint.<wbr>com/python3/python_sending_<wbr>email.htm</a></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Pierre</div></font></span></div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Sun, Jun 11, 2017 at 11:03 AM Drago Trusk <<a href="mailto:drago.trusk@gmail.com" target="_blank">drago.trusk@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Hi GK,<br>
      <br>
      unfortunately twisted-mail isn't ported to Python 3 and I don't
      think it will be ported at all:
      <a class="m_5672155966734507458m_-143342854189956216moz-txt-link-freetext" href="http://fedora.portingdb.xyz/pkg/python-twisted-mail/" target="_blank">http://fedora.portingdb.xyz/<wbr>pkg/python-twisted-mail/</a><br>
      If you can live with Python 2, you will have mail sending
      capabilities.<br>
      <br>
      I didn't had time to research if it's possible and how to change
      Buildbot to use different mail package so I'm not sure if such
      option is available in case of BB for Python 3.<br>
      <br>
      Bye,<br>
      Drago<br>
    </p></div><div text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="m_5672155966734507458m_-143342854189956216moz-cite-prefix">On 06/09/2017 08:07 AM, GK Gk wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Recently i try to deploy my project into buildbot.
        Buildbot work prefect except mail module. it always show
        error"twisted-mail is not installed. cannot send mail" when i
        update master.cfg. below is email moudle <span>relevant
          code in master.cfg:</span>
        <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
          <div><font face="Tahoma, Arial, 宋体, Malgun Gothic" color="#434343"><span style="font-size:12px"><br>
              </span></font></div>
          <div><font face="Tahoma, Arial, 宋体, Malgun Gothic" color="#434343"><span style="font-size:12px">Env:</span></font></div>
          <div><font face="Tahoma, Arial, 宋体, Malgun Gothic" color="#434343"><span style="font-size:12px">python3.4
                 ubuntu16.04 server </span></font></div>
          <div><font face="Tahoma, Arial, 宋体, Malgun Gothic" color="#434343"><span style="font-size:12px">Code:</span></font></div>
        </blockquote>
        <blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
          <div>
            <div><font face="Tahoma, Arial, 宋体, Malgun Gothic" color="#434343">
                <div><span style="font-size:12px">c['services'] = []</span></div>
              </font></div>
          </div>
          <div><font face="Tahoma, Arial, 宋体, Malgun Gothic" color="#434343">
              <div><span style="font-size:12px">from
                  buildbot.reporters.mail import MailNotifier</span></div>
            </font></div>
          <div><font face="Tahoma, Arial, 宋体, Malgun Gothic" color="#434343">
              <div><span style="font-size:12px">mn =
                  MailNotifier(fromaddr='<a href="mailto:xx@gmail.com" target="_blank">xx@<wbr>gmail.com</a>',
                  relayhost="<a href="http://smtp.gmail.com" target="_blank">smtp.gmail.com</a>",<wbr>extraRecipients=["<a href="mailto:xx@gmail.com" target="_blank">xx@gmail.com</a><wbr>"],
                  smtpPort=587, smtpUser="xxx", smtpPassword="xxx")</span></div>
            </font></div>
          <div><font face="Tahoma, Arial, 宋体, Malgun Gothic" color="#434343">
              <div><span style="font-size:12px">c['services'].append(mn)</span></div>
              <div><span style="font-size:12px"><br>
                </span></div>
            </font></div>
        </blockquote>
        <font face="Tahoma, Arial, 宋体, Malgun Gothic" color="#434343"><span style="font-size:12px"> i have installed twisted using "pip
            install Twisted", and as my consideration, buildbot cannot
            work if i failed to install it. </span></font><span>Is my code error or i have not
          installed necessary library, anyone could give me some
          comment, appreciate your help.</span>
        <div><br>
        </div>
        <div>
          <div>
            <div><span><br>
              </span></div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="m_5672155966734507458m_-143342854189956216mimeAttachmentHeader"></fieldset>
      <br>
      <pre>______________________________<wbr>_________________
users mailing list
<a class="m_5672155966734507458m_-143342854189956216moz-txt-link-abbreviated" href="mailto:users@buildbot.net" target="_blank">users@buildbot.net</a>
<a class="m_5672155966734507458m_-143342854189956216moz-txt-link-freetext" href="https://lists.buildbot.net/mailman/listinfo/users" target="_blank">https://lists.buildbot.net/<wbr>mailman/listinfo/users</a></pre>
    </blockquote>
    <br>
  </div>

______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@buildbot.net" target="_blank">users@buildbot.net</a><br>
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/<wbr>mailman/listinfo/users</a></blockquote></div>
</div></div><br>______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@buildbot.net">users@buildbot.net</a><br>
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/<wbr>mailman/listinfo/users</a><br></blockquote></div><br></div>