How to send customized mails from task configuration
Hi Monica,
If your intention is to modify the content of your Bamboo notifications that sends email updates upon build success/failure, you can do so for each of the notification types as below.
The notification templates reside in WEB-INF/classes/notification-templates/
All you need to do is to copy the respective notification template into the {BAMBOO_HOME}/templates/notification-templates folder and make changes to them accordingly.
templates/notification-templates
This is explained in this page.
If you wanted to send emails from a script task within your plan, you can do so with the respective mail agent like below:
echo "Subject: sendmail test" | sendmail -v user@email.com
Hi Jeyanthan,
Is there any possible way to change the predefined events which appears under Add notification option?Other one is, I have tried the inline script task method but no luck. How to configure sendmail and the smtp server for this.
Is there any possible way to change the predefined events which appears under Add notification option?
You can only use the notification options available in your plan configuration explained here.
Other one is, I have tried the inline script task method but no luck. How to configure sendmail and the smtp server for this.
Configuring sendmail can be found on their documentation. Googling it for your operating system should give you more practical steps on how to set this up.
Once configured, you may test it outside Bamboo via command prompt and then use the same using a script task within your plan.
Thanks for your answer. I have another doubt of adding cc for mail notifications. Is there any possible way to add cc recipient for the mail notification.
It looks like you're new here. Sign in or register to get started.