Solved

Automatic e-mail

Posted on 1998-11-23
7
211 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
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 

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

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
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.

734 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