Emailing from a hudson job - smtp configuration


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Emailing from a hudson job - smtp configuration
# 1  
Old 02-09-2012
Emailing from a hudson job - smtp configuration

Hello everyone,

I'm trying to send an email from a Hudson (integration server) job but the error below happens:

Code:
Sending e-mails to: xxxxxx
ERROR: smtp
javax.mail.NoSuchProviderException: smtp
 at javax.mail.Session.getService(Session.java:782)
 at javax.mail.Session.getTransport(Session.java:708)
 at javax.mail.Session.getTransport(Session.java:651)
 at javax.mail.Session.getTransport(Session.java:631)
 at javax.mail.Session.getTransport(Session.java:686)
 at javax.mail.Transport.send0(Transport.java:166)
 at javax.mail.Transport.send(Transport.java:98)
 at hudson.tasks.MailSender.execute(MailSender.java:110)
 at hudson.tasks.Mailer.perform(Mailer.java:111)
 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558)
 at hudson.model.Build$RunnerImpl.post2(Build.java:157)
 at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
 at hudson.model.Run.run(Run.java:1348)
 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
 at hudson.model.ResourceController.execute(ResourceController.java:88)
 at hudson.model.Executor.run(Executor.java:139)

Why is this issue happening?
I think it could be due to the wrong configuration of Hudson server because the 'SMTP server' is empty. If so, how can I get the name of the SMTP server? (It's in the same unix machine that Hudson).

Or maybe, there is not the right javax.mail class in the hudson classpath. Which would the right class be?

Thanks in advance for your answers!

Aurea
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Web Development

SMTP Server Configuration

Hello list, I want to be able to send email directly from my linux box. I have both a CentOS and Debian installation. I am by no means an expert when it comes to all of the SMTP servers. I have been testing different configs by installing and uninstalling sendmail, postfix, and exim4. ... (2 Replies)
Discussion started by: landossa
2 Replies

2. Shell Programming and Scripting

Crontab 2>&1 not emailing

I have a script that emails me when I run it manually, but the crontab I'm using must be 'silencing' the output? Here's what I have: */15 * * * * /usr/src/blah.sh > /dev/null 2>&1 I don't want it to email me every time it runs, just when I run the sendmail command inside the script if the... (13 Replies)
Discussion started by: unclecameron
13 Replies

3. Shell Programming and Scripting

Need help on conditional emailing

Hi All, The following databse table maintains VENDOR and EMAIL details. VENOR_NAME VENDOR_EMAIL DELL surendra@dell.com HP rajkamal@hp.com ACER sumathi@acer.com NOKIA kunal@nokia.com SONY sinu@sony.com We have to find emaild id of a vendor based... (7 Replies)
Discussion started by: ROCK_PLSQL
7 Replies

4. Solaris

.muttrc configuration for smtp

Hi, I need to configure .muttrc for an internal smtp server. Scenario is that i want to send an email to an external email address (i.e. hotmail or gmail etc) with mutt from solaris sparc server. the server has connectivity to an internal smtp server but i am enable to configure .muttrc file.... (3 Replies)
Discussion started by: adeel
3 Replies

5. Shell Programming and Scripting

autosys job configuration for job failure.

We need to configure autosys that when a job fails continously for 3 times, we need to call another job. Is this possible in Autosys, or can anyone advice on the alternative. (2 Replies)
Discussion started by: sangea
2 Replies

6. Solaris

SMTP Configuration

Hello everyone, I've got this Java script which needs to know the SMTP host in order to send out mails from a particular mail ID. But I have no idea how or what to configure in SMTP for getting this code up and running.(All I know is SMTP=Simple Mail Transfer Protocol). I'm using Solaris 5.8.... (1 Reply)
Discussion started by: Rajat
1 Replies

7. Shell Programming and Scripting

Copying files and emailing them out

Hello everybody, I'm trying to create a script that will cd into a directory and then copy the file with yesterday's date on it and then cd into another directory doing the same thing. Afterwards, i'm trying to zip up the two files, and email them out to people. Can anyone help? thanks a... (1 Reply)
Discussion started by: jhofilena
1 Replies

8. UNIX for Dummies Questions & Answers

SMTP - emailing issue

We are running an application engine program that sends email to a list of users. In our Test Env, users are able to receive the emails but in our Prod environment, they do not. We are running the same program, and using the same stmp config. any idea on how to troubleshoot? (3 Replies)
Discussion started by: tads98
3 Replies
Login or Register to Ask a Question