Return to the send email thread Login to post to this thread
send email
Apostolos Michaloudis
28 Posts
Hello! I have a text area in my simulation. I want to send the content with email to myself.
Is there a way to do this?
I tried some examples i fount from the internet but didn't work. For example, i tried to import javax.mail.*; but it does not accept it (to the menu where we should do imports)
EjS does not provide an easy way to do this, I am afraid. I don't know if this can be done using plain standard Java. I guess not, but am not sure.
There seems to be a way of doing this by asking the user to install some other library. I just found this on the internet: http://www.tutorialspoint.com/java/java_sending_email.htm
Once installed, there should be no reason why you cannot use this Java code in an EjsS simulation.