Hi All,
I need to send an e-mail from jsp???
does anyone have a code snippet for this?
thanks as always!!
take care
tonywhat os are you using? i have the setup for Linux but not NT
chris<pixelmonkey>:monkey:I'm sorry -
i should have been more spacific in my request -
we have a intel box running win2k
but
we are using orion as our server (i know)
thanks for the assistance!!
take care
tonysorry i cant help ya on that one... however i will get some links posted for assistance...
checking with whkoh
chris<pixelmonkey>:monkey:after diggin around - i found the stuff -
here is the code snippet
>>
String from="[email protected]";
String to="[email protected]";
try
{
SmtpClient client = new SmtpClient("mail.xxxxx.xxx");
client.from(from);
client.to(to);
PrintStream message = client.startMessage();
message.println("To: Update Group");
message.println("Subject: test");
message.println("blah blah blah");
message.println();
client.closeServer();
}
catch (IOException e)
{
System.out.println("ERROR SENDING EMAIL:"+e);
}
Thanks for the help!!
take care
tony
I need to send an e-mail from jsp???
does anyone have a code snippet for this?
thanks as always!!
take care
tonywhat os are you using? i have the setup for Linux but not NT
chris<pixelmonkey>:monkey:I'm sorry -
i should have been more spacific in my request -
we have a intel box running win2k
but
we are using orion as our server (i know)
thanks for the assistance!!
take care
tonysorry i cant help ya on that one... however i will get some links posted for assistance...
checking with whkoh
chris<pixelmonkey>:monkey:after diggin around - i found the stuff -
here is the code snippet
>>
String from="[email protected]";
String to="[email protected]";
try
{
SmtpClient client = new SmtpClient("mail.xxxxx.xxx");
client.from(from);
client.to(to);
PrintStream message = client.startMessage();
message.println("To: Update Group");
message.println("Subject: test");
message.println("blah blah blah");
message.println();
client.closeServer();
}
catch (IOException e)
{
System.out.println("ERROR SENDING EMAIL:"+e);
}
Thanks for the help!!
take care
tony