Solved

Automatic e-mail

Posted on 1998-11-23
7
183 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java DateChooser? 3 36
Error trying to install RTMT Win7 5 60
spring jars download 1 27
printf performancy 11 36
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
The viewer will learn how to implement Singleton Design Pattern in Java.

776 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