Write an application in Java that would generate a fake e- mail bounce. Such an application can be useful in reducing the amount of received SPAM.
Your program should have the GUI that allows to enter your e-
mail address, your e-mail SMTP server, and the spamer's address,
and looks similar to one shown below:
When the SUBMIT button is clicked the following sequence of events should happen:
***DDDDDD(DDD)*** with the 9 random digits, e.g. 123456(789) . (The same numbers acress the entire message.)*** INSERT spammer'S-EMAIL HERE *** with the e-mail address entered into the appropriate GUI text field*** INSERT YOUR-EMAIL HERE *** with the e-mail address entered into the appropriate GUI text fieldPostmaster@*** INSERT YOUR-EMAIL-SERVER HERE ****** INSERT SPAMMER'S-MESSAGE HERE *** with the actual contents typed or pasted by the user into GUI
From: Mail Administrator <Postmaster@*** INSERT YOUR-EMAIL-SERVER HERE ***>
To: *** INSERT SPAMMER'S-EMAIL HERE ***
Reply-To: Mail Administrator <Postmaster@*** INSERT YOUR-EMAIL-SERVER HERE ***>
Subject: Mail System Error - Returned Mail
MIME-Version: 1.0
Content-Type: multipart/mixed; Boundary="===========================_ _= ***DDDDDD(DDD)***"
--===========================_ _= ***DDDDDD(DDD)***
Content-Type: text/plain
This Message was undeliverable due to the following reason:
Each of the following recipients was rejected by a remote mail server.
The reasons given by the server are included to help you determine why
each recipient was rejected.
Recipient: <*** INSERT YOUR-EMAIL HERE ***>
Reason: 5.1.1 <*** INSERT YOUR-EMAIL HERE ***>... User unknown
Please reply to Postmaster@*** INSERT YOUR-EMAIL-SERVER HERE ***
if you feel this message to be in error.
--===========================_ _= ***DDDDDD(DDD)***
Content-Type: message/rfc822
Content-Disposition: attachment
*** INSERT SPAMMER'S-MESSAGE HERE ***
--===========================_ _= ***DDDDDD(DDD)***--
Hints:
Write and compile a short program in PERL that reads two lines of text ($a and $b), chomps them, and prints the result of the following operations one per line:
$a , $b$a . $b$a + $b$a - $b$a * $b$a / $b$a % $b$a == $b$a <=> $b$a eq $b$a cmp $bRun your program several times for both numeric and non- numeric data. Do the results (including runtime errors) surprise you?
Attach all source code in files with proper names and extensions (*.html, *.java, *.pl, *.php, .htaccess e.t.c.). Do not ZIP files together or include compiled files (e.g. *.class). In case of Web pages (HTML), dynamic Web pages (HTML, JavaScript, CGI) or Java applets also send the complete URL (including http://) that points to a page on your Web site that demonstrates your homework. Send your homework via e- mail to the instructor at olekmali at cegt201.bradley.edu. Please set the message subject to: web-hw8.
Thank you.