Solved

Automatic e-mail

Posted on 1998-11-23
7
161 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
  • 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
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…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now