Link to home
Start Free TrialLog in
Avatar of andhan
andhan

asked on

Automatic e-mail

I am trying to make an applet that should send me an
e-mail every time someone visits my homepage.

Please if you have a codesample to point out the way
that would make me really happy.

Anders
Avatar of heyhey_
heyhey_

you have to implement SMTP protocol and send a message in your applet init's method
you can find some examples of SMTP implementation (with sources) at
www.gamelan.com, www.jars.com (just search for SMTP)

if you can't find anything or if you have more specific porblems please post them here

hope this helps
  heyhey
Avatar of andhan

ASKER

Maybe I am wrong, this is my first question here. But i think
that for 100 points the answer should be a little more specified.

I am sorry heyhey
>> the answer should be a little more specified.

 what do you need exactly ?

P.S. expert are suppost to give advices, suggestions and maybe code examples, not to write full workinig applications ...
P.P.S. Look at the latest PAQ / Answered questions - there is at least one SMTP question with source code published. if i have a free hour, i can build such an applet and post it here ...
open a socket connection on port 25 of SMTP server. Then send SMTP commands like From, Recepient, etc,. then finally send the data after the DATA command. Finally send "CRLF.CRLF". CRLF depends on the type of OS. It may be \r\n or \r. For detailed explaination of SMPT commands see in RFC'c.
ASKER CERTIFIED SOLUTION
Avatar of heyhey_
heyhey_

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of andhan

ASKER

Thank you heyhey
Now i am satisfied with the answer, you don´t have to post any
code here. This is only something i´m doing for the fun of it.

But i hope that i someday in the future will be able to return
the help you gave me.

Once again
Thank you

andhan
hey, andhan  :)

no problems.
i'm satisfied too - i'm already in top15 :)

keep on good coding
  heyhey