SimonSellick
Programmer
Hi,
I'm trying to use javamail to send an email to a local address from a logged-on PC running WinXP, but with no success.
Do I need to connect to the local mail server, or can I use the MS Exchange object - which is already logged on to the mail server - perhaps with a Class.forName(xxx) to return an ActiveX object? Or is there some other way that I should be using?
I need only to send messages, not receive them or even to make sure that they get delivered.
So far, I have downloaded the java activation and mail JAR files and a demo mail send program which I have adapted to use the local mail server. It fails always at the .connect method of the transport object, with the Exception:
Any assistance would be welcomed.
Simon.
I'm trying to use javamail to send an email to a local address from a logged-on PC running WinXP, but with no success.
Do I need to connect to the local mail server, or can I use the MS Exchange object - which is already logged on to the mail server - perhaps with a Class.forName(xxx) to return an ActiveX object? Or is there some other way that I should be using?
I need only to send messages, not receive them or even to make sure that they get delivered.
So far, I have downloaded the java activation and mail JAR files and a demo mail send program which I have adapted to use the local mail server. It fails always at the .connect method of the transport object, with the Exception:
Code:
javax.mail.MessagingException: Could not connect to SMTP host: gbbdy01z001, port: 25;
Any assistance would be welcomed.
Simon.