PDA

View Full Version : Kitchen SMTP Problem



thunderbird
02-09-2008, 02:12 PM
Hi Everyone,

I succeed in sending mail from spoon but when I need to run it from command line (ie, kitchen) I got this error :


ERROR 10-02 00:47:54,390 (LogWriter.java:println:400) -Mail to Admin - Problem while sending message: javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com
INFO 10-02 00:47:54,390 (LogWriter.java:println:403) -Send Mail From Environment Variable - Finished jobentry [Mail to Admin ] (result=false)
Is it a bug or there is something I need to add in kitchen's arguments ?

Regards,

Thunderbird

MattCasters
02-09-2008, 02:36 PM
The error means that address "smtp.gmail.com" can't be resolved.
As such, there either isn't a DNS server running or more likely you have no internet connection.

Matt

thunderbird
02-09-2008, 02:39 PM
The error means that address "smtp.gmail.com" can't be resolved.
As such, there either isn't a DNS server running or more likely you have no internet connection.

Matt


Hi Matt,

It is running smoothly under spoon. And my internet connection is okay. Is there any other possible issue ?

Thanks !

Thunderbird

thunderbird
02-09-2008, 03:00 PM
I try to trace it in more detail (Rowlevel). Think that errors I got are clear from these lines of debugging info :



DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 587, isSSL false
ERROR 10-02 01:46:20,640 (LogWriter.java:println:400) -Mail to Admin - Problem while sending message: javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com


Regards,

Thunderbird