How do i create a function so that i can sent email in java?

Hello

im new to java and would like to ask some newbie question

Im learning to creating a GUI and I was wondering how do i actually create a function where a user click click on a button so that the email program will appear and the user can send a email to the intended receipent

Can anybody teach me how to do this or is there any website where i can reference frm?

thank you
tomleo
[425 byte] By [tomleo16] at [2007-11-19 7:10:05]
# 1 Re: How do i create a function so that i can sent email in java?
Hi
the question is, do u want to write that e-mail program by urself, or u want to send it by normal windows e-mail application?
first case- u need java mail api, by using this u can send pop and webmail.
seccond case -take a look at the java runtime class, then theire is some overloaded exec() method , they will help u.
but mind it u may find difficulties during to switch from java to windows
minhaz
minhaz at 2007-11-10 2:24:22 >