Solved

Automatic e-mail

Posted on 1998-11-23
7
201 Views
Last Modified: 2010-03-30
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
0
Comment
Question by:andhan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 16

Expert Comment

by:heyhey_
ID: 1228055
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
0
 

Author Comment

by:andhan
ID: 1228056
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
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 1228057
>> 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 ...
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:hemadri
ID: 1228058
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.
0
 
LVL 16

Accepted Solution

by:
heyhey_ earned 100 total points
ID: 1228059
if you visit this url

http://jars.developer.com/classes/jediSearch.cgi?string=SMTP&matchcase=NO&names=YES&keywords=YES&descriptions=YES&authorid=NOID&lastname=NONAME&age=NOAGE&start=NODATE&end=NODATE&maxhits=25&type=ALL&category=ALL&language=ALL&source=YES&nosource=YES&wholeword=NO&submit=Submit

you'll see a great number of mail-related resources - most of them with source code
the one i like is
http://www2.gasou.edu/student/gsi01417/java/mailwin/mailwin.html
+ code
http://www2.gasou.edu/student/gsi01417/java/mailwin/mailwin.java

this example is interactive. all that you have to do so that  the applet "sends you an e-mail every time someone visits your homepage" is to put the appropriate code the 'init' method of your applet.

if you really need this, i can take this example, rewrite it little and post the full working code here ...
hope this helps
  heyhey
0
 

Author Comment

by:andhan
ID: 1228060
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
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 1228061
hey, andhan  :)

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

keep on good coding
  heyhey

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question