I have an alarm notification pipeline setup with a notification block. I can pass in a custom message using associated data on the alarm(s). However, when I tried to pass in a custom "From Address" I get an error message in the gateway logs. I think this is because the Notification block does not allow custom addresses but wanted to verify.
The manual doesn't mention any limitations or capabilities.
https://docs.inductiveautomation.com/display/DOC81/Notification+Block
https://docs.inductiveautomation.com/display/DOC81/Pipeline+-+Filter+on+Alarm+Associated+Data
[emailProfile=custom_SMTP] Error sending message to user 'usr-prov:null:/usr:Mike'. Remaining tries=0
com.sun.mail.smtp.SMTPSendFailedException: 501 5.1.7 Invalid address
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2358)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1823)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1300)
at javax.mail.Transport.send0(Transport.java:255)
at javax.mail.Transport.send(Transport.java:124)
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.sendMessage(EmailNotificationProfile.java:819)
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.buildAndMaybeSendMessage(EmailNotificationProfile.java:807)
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.run(EmailNotificationProfile.java:721)
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile.lambda$sendNotification$0(EmailNotificationProfile.java:535)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: com.sun.mail.smtp.SMTPSenderFailedException: 501 5.1.7 Invalid address
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1832)
... 10 common frames omitted
So when i type in
[email protected]
in the associated data under a variable FromAddress and put {FromAddress} in the actual pipeline I get this error; however, if I type
[email protected]
directly in the notification block it works fine.