<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Sending mails with Activiti using Gmail as SMTP in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/sending-mails-with-activiti-using-gmail-as-smtp/m-p/9128#M3146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wanted to use Gmail as SMTP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;conf.setMailServerHost("smtp.gmail.com");&lt;BR /&gt;conf.setMailServerPort(587);&lt;BR /&gt;conf.setMailServerUsername("myname@gmail.com");&lt;BR /&gt;conf.setMailServerPassword("mypassword");&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;But at first it did not work because Gmail requires TLS. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I added the following line in org.activiti.engine.impl.bpmn.MailActivityBehavior.setMailServerProperties()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;email.setTLS(true)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;And now it works!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be great if you add setMailTLS or something like that to the conf API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Dec 2010 04:53:32 GMT</pubDate>
    <dc:creator>matias</dc:creator>
    <dc:date>2010-12-15T04:53:32Z</dc:date>
    <item>
      <title>Sending mails with Activiti using Gmail as SMTP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-mails-with-activiti-using-gmail-as-smtp/m-p/9128#M3146</link>
      <description>I wanted to use Gmail as SMTP.I did …conf.setMailServerHost("smtp.gmail.com");conf.setMailServerPort(587);conf.setMailServerUsername("myname@gmail.com");conf.setMailServerPassword("mypassword");‍‍‍‍But at first it did not work because Gmail requires TLS. So I added the following line in org.activiti</description>
      <pubDate>Wed, 15 Dec 2010 04:53:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-mails-with-activiti-using-gmail-as-smtp/m-p/9128#M3146</guid>
      <dc:creator>matias</dc:creator>
      <dc:date>2010-12-15T04:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sending mails with Activiti using Gmail as SMTP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-mails-with-activiti-using-gmail-as-smtp/m-p/9129#M3147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Matias,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems like a valid addition to email-task configuration. Can you create an issue for this in Jira &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT&lt;/A&gt;&lt;SPAN&gt; ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 08:00:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-mails-with-activiti-using-gmail-as-smtp/m-p/9129#M3147</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2010-12-15T08:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sending mails with Activiti using Gmail as SMTP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-mails-with-activiti-using-gmail-as-smtp/m-p/9130#M3148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Matias,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I managed to make it works by setting the system properties on application startup using the following groovy codes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;["mail.smtp.auth":"true",&lt;BR /&gt; "mail.smtp.socketFactory.port":"465",&lt;BR /&gt; "mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",&lt;BR /&gt; "mail.smtp.socketFactory.fallback":"false",&lt;BR /&gt; "mail.smtp.starttls.required": "true"].each { k, v -&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.setProperty k, v&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;But I think your suggestion is good idea.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chee Kin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Dec 2010 13:14:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-mails-with-activiti-using-gmail-as-smtp/m-p/9130#M3148</guid>
      <dc:creator>limcheekin</dc:creator>
      <dc:date>2010-12-19T13:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sending mails with Activiti using Gmail as SMTP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-mails-with-activiti-using-gmail-as-smtp/m-p/9131#M3149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've just added a patch to &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-456" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-456&lt;/A&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 11:59:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-mails-with-activiti-using-gmail-as-smtp/m-p/9131#M3149</guid>
      <dc:creator>tstephen</dc:creator>
      <dc:date>2011-10-12T11:59:45Z</dc:date>
    </item>
  </channel>
</rss>

