<?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 email with different address in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/sending-email-with-different-address/m-p/278671#M231801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the moment, in my workflow, I have an email task that sends emails to a specific address.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But my problem is that this uses always the same address to send the mail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I need is to send the email with the address of the workflow initiator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can get this address but it always sends the email with the default address.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var mail = actions.create("mail");&lt;BR /&gt;mail.parameters.subject = "";&lt;BR /&gt;mail.parameters.from = execution.getVariable('util_mailInitiator');&lt;BR /&gt;mail.parameters.to = execution.getVariable('util_mailRequester'); &lt;BR /&gt;mail.parameters.text = "…";&lt;BR /&gt;mail.execute(bpm_package);&lt;BR /&gt;&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;/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;This will send email with the default email in my SMTP configuration (mail.username) as "from" parameters. And it will not use the "execution.getVariable('util_mailInitiator')"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My SMTP configuration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;mail.from.enabled=true&lt;BR /&gt;mail.from.default=cgt@alfresco.org&lt;BR /&gt;mail.host=smtp.live.com&lt;BR /&gt;mail.port=587&lt;BR /&gt;mail.username=****@wavenet.be&lt;BR /&gt;mail.password=****&lt;BR /&gt;mail.protocol=smtp&lt;BR /&gt;mail.smtp.starttls.enable=true&lt;BR /&gt;mail.smtp.auth=true&lt;BR /&gt;mail.encoding=UTF-8&lt;BR /&gt;&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;/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;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;BR /&gt;&lt;SPAN&gt;Is there a way to change this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this clear&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jun 2014 07:15:29 GMT</pubDate>
    <dc:creator>theoryoflinkin</dc:creator>
    <dc:date>2014-06-20T07:15:29Z</dc:date>
    <item>
      <title>Sending email with different address</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-email-with-different-address/m-p/278671#M231801</link>
      <description>Hi everyone,For the moment, in my workflow, I have an email task that sends emails to a specific address.But my problem is that this uses always the same address to send the mail.What I need is to send the email with the address of the workflow initiator.I can get this address but it always sends th</description>
      <pubDate>Fri, 20 Jun 2014 07:15:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-email-with-different-address/m-p/278671#M231801</guid>
      <dc:creator>theoryoflinkin</dc:creator>
      <dc:date>2014-06-20T07:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email with different address</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-email-with-different-address/m-p/278672#M231802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It should work.&amp;nbsp;&amp;nbsp; Sorry I can't see an error in what you have posted.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 15:22:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-email-with-different-address/m-p/278672#M231802</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-06-20T15:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email with different address</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-email-with-different-address/m-p/278673#M231803</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;Thank you for this answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact, you're right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a custom class for sending mail with attachment. And when I try to send mail with default alfresco bean, it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the problem is in my custom class…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 06:33:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-email-with-different-address/m-p/278673#M231803</guid>
      <dc:creator>theoryoflinkin</dc:creator>
      <dc:date>2014-06-23T06:33:06Z</dc:date>
    </item>
  </channel>
</rss>

