Send custom email message from Teamcity Follow
Hi, in my plugin I need to send email to user. What is a correct way to do it: fetch SMTP settings from teamcity (how to do it?) and send email using Java Mail API or it should be done using teamcity notificators (can't find how to send a custom text there)?
Thanks
Please sign in to leave a comment.
Hello,
Does the email have to be sent out from your plugin? If not, I would just use my build script to have it send out emails. My preference is PowerShell because I run my TeamCity server on a Windows machine.
Hi Hayato,
yes it is not a part of build process, so it is responsibility of a plugin to send an email. I'm still stuck with it, I was able to find smtp setings in teamcity config, but password is encrypted there :) Looks like I'll need to create a copy of smtp settings for my plugin, that is not perfect from UX point of view, but at least it works..