UrbanCode / Send-SMTP-Email-UCD

This plugin provides a mechanism to send SMTP emails in your deployment process.
https://developer.ibm.com/urbancode/plugin/send-smtp-email/
3 stars 10 forks source link

Sender Email Address field is not getting over ridden with value from Global Settings #5

Open pramodkhs opened 7 years ago

pramodkhs commented 7 years ago

When I have separate Sender Email Address field for each environment so that I know the mail is being triggered for which environment, the email address is not getting overridden. The value of Mail Server Sender Address property from General Settings is always shown.

Let me know if this is a bug or am I missing something

nhmathis commented 7 years ago

Hi,

Are you specifying just the one Sender Email Address or all properties? If you do not want to use the default server values, you will need to specify the host, port, sender email address, and secure properties. If at least one of these properties is missing, then the default server values will replace all defined values, such as in the case of your Sender Email Address value.

-Nick

Code Reference: https://github.com/IBM-UrbanCode/Send-SMTP-Email-UCD/blob/master/src/main/zip/send_smtp_email.groovy#L40