APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

send email post and replies

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)


Replies to send email

Re: send email -
Francisco Esquembre
228 Posts

Hello,

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.

Paco



OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book