Closed sivagollapalli closed 11 years ago
Have you configured the smtp settings?
If not, take a look at the sample file at (https://github.com/c42/goldberg/blob/master/config/initializers/email.rb.sample) & make a copy of that with a '.rb' extension and your specific values filled in.
Let me know if you have already done that and we can dig in deeper to see what else might have gone wrong.
I have configured smtp settings with the sample file that you have given on initializers.
I hope there is a bug on mail sending. I just made debugging statements on callbacks in goldberg_config.rb. Before this line it prints whatever the debugging statements we write.
notification.from('ci@test.com').to('sivagollapalli@yahoo.com').with_subject("build for #{build.project.name} #{build.status}").send
I am confused that neither above line executes nor it generates error. So please help me!!!
@aakashd worked on this stuff. I'm asking him to take a look at this.
@aakashd One more observation which might help for you to debug.
I just replaced below line with
notification.from('ci@test.com').to('sivagollapalli@yahoo.com').with_subject("build for #{build.project.name} #{build.status}").send
with
BuildStatusMailer.status_mail!('test@test.com','sivagollapalli@yahoo.com','Test build', build).deliver
which sends mail but there is no content on received mail. I also observed that there is no method with name as 'status_mail!' on entire project. I didn't understand how it works.
@aakashd Finally it's working. I just deleted entire installation and configure the mail before I start nginx server.
Previously I configured after server started. After configured I restarted the server but somehow it doesn't pick up the mail settings.
Oh cool. Thanks for letting us know. And sorry, we weren't able to help you out. We've been a bit busy just now.
I just configured your CI server. Everything works fine and it builds properly. But it doesn't sends any notification upon build completion. I configured action mailer that you have provided on initializers.
My goldberg_config.rb looks like this:
Could you please let me know where I went wrong. Thanks!!