Hey Jan!

The SMTP access data and the "from" field comes from the
ConfigigurationService directly, so you can't overwrite that from the
Workflows:
https://github.com/apache/oozie/blob/master/core/src/main/java/org/apache/oozie/action/email/EmailActionExecutor.java#L185-L188

I don't see any reason why we couldn't add the possibility to set the
"from" address as well in the emailAction just like it's possible to set
the "cc" and the "bcc" fields.
Feel free to file a Jira for this.
Best,
gp

On Sat, Nov 11, 2017 at 12:16 PM, Jan Hentschel <
jan.hentsc...@ultratendency.com> wrote:

> Hello,
>
>
>
> I’m currently trying to create a workflow, which has an email action
> sending an HDFS file as an attachment. I didn’t configure the SMTP settings
> in the oozie-site to prevent a restart of the service. Instead I tried to
> set them directly in the workflow, but wasn’t able to do that.
>
>
>
> Before opening a ticket to also make this available in the workflow
> configuration, I wanted to make sure that there’s no other way than
> configuring the SMTP settings in the oozie-site. Setting some settings
> directly in the workflow would have the advantage to use a different FROM
> address for different workflows instead of one central address.
>
>
>
> Thanks for your help.
>
>
>
> Best, Jan
>
>
>
>


-- 
Peter Cseh
Software Engineer
<http://www.cloudera.com>

Reply via email to