You are on page 1of 46

Ma

il
-Cl
i
ent

1
.INTRODUCTI
ON

  Ane
-Ma
ilc
li
enti
sane
mai
lpr
ogr
am;s
oft
war
ede
sig
nedt
ocol
l
ecta
nds
ende
lec
tron
ic
ma
il
.I
tisa
lsor
efe
rre
dtoa
sane
mai
lpr
ogr
am,
orma
ilu
sera
gen
t(MUA).
Thet
erm"
mai
lus
er
a
gen
t"i
sle
ssf
ami
l
iart
oth
eav
era
gepe
rson
,bu
tisu
sedi
nema
ilh
eade
rs.Th
ehe
ade
rsoft
he
e
mai
lsu
ppl
yin
for
mat
iont
oth
ema
ils
erv
ersorc
ompu
ter
sth
ath
andl
etr
ans
fer
rin
gme
ssa
ges
a
cros
sne
twor
ksl
i
ket
heI
nte
rne
t.

  Ne
twor
kin
gst
anda
rdsh
avebe
ene
sta
bli
she
dtoma
kee
xch
ang
eofme
ssa
gespos
si
ble
f
romav
ir
tua
lun
li
mit
edpoolofc
li
ent
s.Tot
hise
nde
ver
yma
ilu
sera
gen
tha
ndl
est
extme
ssa
ges
,
g
raph
icsa
nda
tta
che
dme
ssa
gesi
nas
imi
l
arma
nne
r.Wh
enau
sers
endsa
nema
ila
nar
rayof
i
nfor
mat
ioni
sse
ntwi
tht
heme
ssa
get
oen
sur
eitr
eac
hesi
tsde
sti
nat
ion
.Th
ise
xtr
a"a
ddr
ess
ing
"
i
nfor
mat
ioni
sin
clu
dedi
nth
ehe
ade
rs,
alon
gwi
tht
hen
ameoft
hee
mai
lpr
ogr
ama
sth
e"ma
il
u
sera
gen
t.
"

  Ema
ils
entf
roma
nIn
ter
netS
erv
icePr
ovi
der(
IS
P)i
sha
ndl
edbyt
hatI
SPsma
ils
erv
er,
wh
ichi
sth
eequ
iva
len
tofa
nel
ect
ron
icpos
tof
fi
ce.Th
ema
ilc
ome
sfi
rs
ttot
hema
ils
erv
er,i
s
pr
oce
sse
d,a
ndf
orwa
rde
dtowa
rdst
hede
sti
nat
ion
.An
the
rma
ils
erv
err
esi
desa
tth
ede
sti
nat
ion
.
I
tre
cei
vesa
lli
ncomi
ngma
ila
nde
lec
tron
ica
ll
ysor
tsi
tin
toma
il
box
es.Th
ere
cipi
entpi
cksu
p
e
mai
lbyu
sin
ghi
sorh
ere
mai
lpr
ogr
amt
ocon
nec
ttot
hema
ils
erv
erwh
ichr
equ
esti
te
msf
rom
t
hema
il
box
.

` Th
ispr
oje
ctde
vel
opsas
imi
l
are
-ma
ilc
li
enta
ppl
i
cat
ionu
sin
gJa
vaa
nds
omeJ
avaAPI
s.
Weu
ses
tan
dar
dsoc
ket
san
dne
twor
kin
gan
dwi
tht
hema
ddi
ti
ona
lJa
vaMa
ilAPI
.Th
epr
otoc
ols
u
sedh
erea
reS
MTP,
POP3.
ThePOP3i
sus
edt
ore
cei
vet
hema
il
swh
ichh
asbe
ens
endt
oou
r
a
ddr
ess
.

1
Ma
il
-Cl
i
ent

1
.
1Ex
ist
ings
yst
em

 I
nfor
mert
oMa
ilc
li
entt
her
eex
ist
sas
yst
emc
all
edMa
ilt
hrou
ghbr
ows
er

 Wen
eedt
ous
ema
ils
erv
ice
sli
keYa
hoo,
Goog
le,
andHot
mai
l
.

 Th
eyu
seHTTPpor
t80t
oac
ces
sth
ema
il
s.

1
.
1.
1Li
mit
ati
onsoft
hee
xis
ti
ngs
yst
em:

 Th
ebr
ows
ersa
ren
ots
afet
ose
ndc
onf
ide
nti
alme
ssa
ges
.

 S
omec
ompa
nie
scr
eat
eownma
ils
erv
ice
stos
endma
il
s.

 Th
eyc
anbee
asi
l
yha
cke
dbyh
ack
ers
.

 Th
eva
lua
bleda
tai
smodi
fi
eda
ndi
tma
ybel
ost

1
.
2Pr
opos
edS
yst
em

 Th
eema
ilc
li
enti
saj
avaba
sedpr
ogr
am.

 I
tca
nbeu
sedbyr
unn
ingt
hej
avac
ode
.

 I
tisu
sedt
ose
ndma
il
san
dre
cei
vema
il
sse
cur
ely.

 Cos
tofma
ilc
li
enti
sle
sswh
enc
ompa
redt
oma
ils
erv
ice
s,

2
Ma
il
-Cl
i
ent

2.
REQUI
REMENTANAL
AYS
IS

2.
1Har
dwa
reAn
dSof
twa
reS
pec
if
ic
ati
ons

2.
1
.1Ha
rdwa
re:
-

 NoofS
yst
ems
:2-Cl
i
ent&S
erv
er(
Min
imu
m)

 Pr
oce
ssor
:In
telP4(
Ore
qui
val
ent
)

 Ha
rdDi
sk:
40GB

 RAM:
512MB(
min
imu
m)

Ne
twor
k:S
tan
dar
dWi
red/
Wir
ele
ssn
etwor
kwi
the
it
herAd-h
ocori
nfr
ast
ruc
tur
emode

2.
1
.2S
oft
war
e:
-

 Ope
rat
ingS
yst
em:
Win
dows
,Li
nux

 S
oft
war
e'
s:
Jav
aSDK2,
Bor
lan
dNe
t-Be
ans6.
0

2.
2Sys
temDe
sig
n:
2.
2.
1Ma
il
Cli
ent
:

2.
2.
1.
1
Wha
tisa
nema
ilc
li
ent
?

 
  
  
  
  
  
  
   
Inmos
tca
ses
,you
rema
ila
ccou
nte
xis
tsonac
ent
ral
ser
ver
,an
dnotonyou
r
pe
rson
alc
ompu
terorwor
kst
ati
on.
Ane
mai
lcl
i
enti
sso
ftwa
ret
hata
ll
owsyout
ore
ada
nds
end
e
mai
lth
rou
ghyou
rac
cou
ntbyc
onn
ect
ingt
oth
iss
erv
er.
Ema
ilc
li
ent
sge
ner
all
ypr
ovi
dea
s
impl
ein
ter
fac
eth
rou
ghwh
ichyouc
ana
cce
ssyou
rema
ila
ccou
nt.

3
Ma
il
-Cl
i
ent

 
  
  
  
  
  
  
   
Man
yema
ilc
li
ent
sar
eav
ail
abl
e.S
omei
ncommonu
sea
tIn
dia
naUn
ive
rsi
tyi
ncl
ude
I
UWe
bma
il
,Th
unde
rbi
rd,
Eudor
a,Ma
cOSXMa
il
,Ou
tlookEx
pre
ss,
Ent
our
age
,
Ou
tloo
k,a
ndOu
tlook
WebAc
ces
s.

2.
2.
1.
2Ge
ner
als
endi
nga
ndr
ece
ivi
ngma
il
s:
 

 Cl
i
ent
1wr
it
ese
mai
l
 Cl
i
ent
1se
ndse
mai
l
(Cl
i
cks
end)
,th
eema
ili
sde
li
ver
edt
oSMTPs
erv
er1
 S
MTPs
erv
er1l
ook
supt
hedoma
in,
andf
indsou
tth
atS
MTPs
erv
er2i
sth
ecor
rec
tse
rve
r.
 S
MTPs
erv
er1
sen
dst
hee
mai
ltoS
MTPs
erv
er2
 S
MTPs
erv
er2r
ece
ive
sth
eema
il
,an
dpu
titu
pindr
opf
olde
r(wi
ndowsS
MTP)
 Th
isi
showf
arwoug
etwi
thou
taPOP3s
erv
er(
orI
MAP)
 Wi
thaPOP3s
erv
er,
thePOP3s
erv
erc
hec
kst
hedr
opf
olde
rfore
mai
l
s,t
henmov
eitt
o
t
heor
rec
tma
il
box
 Cl
i
entpc
2(Us
er2)c
onn
ect
stot
hePOP3s
erv
er,
todown
loa
dema
il
,an
dPOP3s
erv
er
"
POP"
uott
hee
mai
ltot
hec
li
entpc
2
 Cl
i
ent
2re
adst
hee
mai
lse
ntbyt
hec
li
ent
1

.
Itou
tli
nesba
sics
tepsi
nvol
vedi
nse
ndi
nga
nema
ilme
ssa
ge

Fi
g2.
1

4
Ma
il
-Cl
i
ent

2.
3Sof
twa
reRe
qui
reme
ntS
pec
if
ic
ati
on
S
oft
war
eRe
qui
reme
ntsS
pec
if
ic
ati
oni
sth
est
art
ingpoi
ntofS
oft
war
ede
vel
opme
nt
a
cti
vi
ty.I
tist
hemos
tdi
ff
ic
ult
yac
ti
vi
tya
ndt
hemos
ter
rorpr
oneS
oft
war
eRe
qui
reme
nts
S
pec
if
ic
ati
oni
same
ansoft
ran
sla
tin
gth
eide
asi
nth
emi
ndsofc
li
ent
sin
toon
efor
mal
doc
ume
nt.

Th
isdoc
ume
nti
sus
edf
ort
heS
oft
war
ePr
oje
ctMa
nag
eme
nt.I
nth
eor
gan
iza
tiont
he
Admi
n,Pr
oje
ctMa
nag
er,Pr
oje
ctL
eade
r,a
ndDe
vel
ope
rth
eus
est
hes
yst
emf
ordi
ff
ere
nt
pu
rpos
esl
i
keEmpl
oye
eDe
tai
l
s,Empl
oye
epe
rfor
man
ce,Cl
i
entDe
tai
l
s,Pr
oje
cts
tat
us,Modu
le
s
tat
us,
repor
tge
ner
ati
onse
tc.

2.
3.
1.
Int
rodu
cti
on:
-

S
RSpl
aysa
nimpor
tan
trol
eint
hede
sig
nin
gapr
oje
ct.
SRSme
etst
hen
eedsf
orpr
oje
ct
de
sig
nin
gan
dde
vel
opi
ng.
Thee
nti
rei
nfor
mat
ionwh
ichi
sne
ede
dfort
hepr
oje
cti
sspe
cif
ie
din
t
hisS
RS.
S
RSc
ont
ain
sth
efe
asi
bil
i
tyc
onc
ept
soft
hepr
oje
ctss
oft
war
e,h
ardwa
rer
equ
ire
men
ts,
du
rat
ionoft
hepr
oje
ct,
cos
tef
for
toft
hepr
oje
cte
tcc
ome
sun
derS
RS.
S
RSg
oesa
sani
npu
ttode
sig
nph
asef
ort
hepr
oje
ct.Fi
rs
t weh
avet
okn
owt
he
de
tai
l
eds
tru
ctu
reoft
hepr
oje
ctwh
ichi
snot
hin
gbu
tSRS
,wh
icht
el
lsu
sth
epr
oje
ctort
askt
hen
pr
oce
edt
ode
sig
nph
ase
.Ba
sedont
hef
eas
ibi
l
it
yst
udyt
heS
RSi
spr
epa
reda
sbe
low.

2.
3.
1.
1
Pur
pos
e:
-
Th
epu
rpos
eoft
hisdoc
ume
nti
stode
scr
ibea
llt
hee
xte
rna
lre
qui
reme
ntsf
ora
or
gan
iza
tion
.Ita
lsode
scr
ibe
sth
ein
ter
fac
esf
ort
hes
yst
em.

5
Ma
il
-Cl
i
ent

2.
3.
1.
2Sc
ope
:-
Th
isdoc
ume
ntde
scr
ibe
sabou
tth
ere
qui
reme
ntsoft
heba
nki
ngs
yst
em.
Itwi
l
lbeu
sedby
t
hede
vel
ope
rsa
ndwi
l
lbet
heba
sisofv
ali
dat
ingt
hef
ina
lde
li
ver
eds
yst
em.
Anyc
han
gesma
de
t
oth
ere
qui
reme
ntsi
nth
efu
tur
ewi
l
lha
vet
ogot
hrou
ghaf
orma
lch
ang
eappr
ova
lpr
oce
ss.
Th
ede
vel
ope
risr
espon
sibl
eforc
lar
if
ic
ati
onswh
eren
ece
ssa
rya
nd wi
l
lno
tma
kea
ny
a
lte
rat
ion
swi
thou
tth
epe
rmi
ss
ionoft
hec
li
ent
.
2.
3.
1.
3Re
fer
enc
es:
-
Ex
ist
ingMa
nua
lSof
twa
rePr
oje
ctMa
nag
eme
nt
2.
3.
1.
4De
vel
ope
rsr
espons
ibi
l
iti
esov
erv
iew:
-
Th
ede
vel
ope
risr
espon
sibl
efor
1
. De
vel
opi
ngt
hes
yst
em
2.I
nst
all
i
ngt
hes
oft
war
eont
hec
li
ent
'sh
ardwa
re
3.Forc
ondu
cti
nga
nyu
sert
rai
ni
ngt
hatmi
ghtben
eede
dforu
sin
gth
esys
tem.
4.Ma
int
ain
ingt
hes
yst
emf
orape
riodoft
imea
fte
rin
sta
ll
ati
on.

2.
3.
2Ge
ner
alDe
scr
ipt
ion
:-
2.
3.
2.
1Us
erCha
rac
ter
is
ti
cs:
-
Th
ema
inu
ser
soft
hes
yst
em wi
l
lbeAdmi
n,Pr
oje
ctL
eade
r,Pr
oje
ctMa
nag
er,a
nd
De
vel
ope
r,wh
oar
eli
te
rat
eabou
tcompu
ter
san
dca
nus
epr
ogr
ams

2.
3.
3Fu
nct
ion
alDe
scr
ipt
ion

2.
3.
3.
1Ge
ner
alde
scr
ipt
ionofI
nput
sandOut
put
s:
-
Th
esys
temh
as3i
npu
tsa
ndpr
odu
ces1ma
jorou
tpu
ts.Th
ege
ner
alde
scr
ipt
ionof
t
hes
ear
easf
oll
ows
.

6
Ma
il
-Cl
i
ent

2.4Ex
3. ter
nalI
nte
rfa
ceRe
qui
reme
nts
:-

2.
3.
4.
1Us
erI
nte
rfa
ce:
-
Th
ema
inu
seroft
heor
gan
iza
tioni
sAdmi
n.Th
eus
eri
nte
rfa
cei
saGUIwi
ndowwh
ere
t
hec
omma
ndn
ame
sre
fl
ectt
hef
unc
ti
ont
heype
rfor
m.
2.
3.
4.
2Ha
rdwa
reI
nte
rfa
ce:
-
Th
ispr
oje
cts
hou
ldber
unonPe
nti
uma
nd51
2RAMs
hou
ldbeu
sed.

2.
3.
4.
3Sof
twa
reI
nte
rfa
ce:
-
Wi
ndowsXPorWi
ndo
wsNTope
rat
ings
yst
ems
hou
ldbeu
sed.

2.
3.5Pe
rfor
man
ceRe
qui
reme
nts
:
-

2.
3.
5.
1St
ati
cRe
qui
reme
nts
:-
Th
esea
ret
her
equ
ire
men
tst
hata
ree
sse
nti
alf
ort
hebe
tte
rpe
rfor
man
ceoft
hes
yst
em
be
for
eth
esys
temg
etse
xec
ute
d.Th
esei
ncl
udet
hen
umbe
rofc
ompu
ter
stobes
uppor
ted,
the
n
umbe
roff
il
esa
ndt
hei
rsi
zest
hes
yst
emh
ast
opr
oce
ss.
Thes
erv
ers
idec
ompu
ter
ssh
oul
dbe
h
igh
lyc
onf
igu
redwi
thame
mor
yca
pac
it
ytos
tor
eal
lth
ecl
assf
il
esa
ndt
heda
taba
se.Cl
i
ent
s
idec
ompu
ter
ssh
oul
dbea
ppr
opr
iat
el
ycon
fig
ure
d.
2.
3.
5.
2Dyna
micRe
qui
reme
nts
:-
Ah
ighc
apa
cit
yRAMa
ndh
ighf
requ
enc
ypr
oce
ssorwi
l
len
abl
eteS
h ys
temt
ope
rfor
m
s
erv
ice
sfa
stl
yan
def
fi
ci
ent
ly.

7
Ma
il
-Cl
i
ent

2.
4Fe
asi
bil
i
tyS
tudy

Fe
asi
bil
i
tys
tudyi
sani
mpor
tan
tph
asei
nth
esof
twa
rede
vel
opme
ntpr
oce
ss.I
t
e
nabl
est
hede
vel
ope
rtoh
avea
nas
ses
sme
ntoft
hepr
odu
ctbe
ingde
vel
ope
d.I
tre
fer
stot
he
f
eas
ibi
l
itys
tudyoft
hepr
odu
cti
nte
rmsoft
hepr
odu
ct,
ope
rat
ion
alu
sea
ndt
ech
nic
als
uppor
t
r
equ
ire
dfori
mpl
eme
nti
ngi
t.
Fe
asi
bil
i
tys
tudys
hou
ldbepe
rfor
medont
heba
sisofv
ari
ousc
rit
eri
aan
dpa
rame
ter
s.Th
e
v
ari
ousf
eas
ibi
l
itys
tudi
esa
re:
 Ec
onomi
cFe
asi
bil
i
ty
 Ope
rat
ion
alFe
asi
bil
i
ty
 Te
chn
ica
lFe
asi
bil
i
ty

2.
4.
1Ec
onomi
cFe
asi
bil
i
ty:
I
tre
fer
stot
hebe
nef
it
sorou
tcome
swea
rede
riv
ingf
romt
he
pr
odu
cta
scompa
redt
oth
etot
alc
ostwea
res
pen
din
gforde
vel
opi
ngt
hepr
odu
ct.I
fth
e
be
nef
it
sar
emor
eorl
esst
hes
amea
sol
ders
yst
em,
the
niti
snotf
eas
ibl
etode
vel
oppr
odu
ct.

2.
4.
2Ope
rat
ion
alFe
asi
bil
i
ty:
I
tre
fer
stot
hef
eas
ibi
l
it
yoft
hepr
odu
ctt
obeope
rat
ion
al.
Some
Pr
odu
ctsma
ywor
kve
rywe
lla
tde
sig
nan
dimpl
eme
nta
tionbu
tma
yfa
ili
nth
ere
alt
ime
e
nvi
ron
men
t.I
tin
clu
dest
hes
tudyofa
ddi
ti
ona
lhu
manr
esou
rcer
equ
ire
dan
dth
eirt
ech
nic
al
e
xpe
rti
se.

2.
4.
3Te
chn
ica
lFe
asi
bil
i
ty:
I
tre
fer
stowh
eth
ert
hes
oft
war
eth
ati
sav
ail
abl
eint
hema
rke
tfu
ll
ysu
ppor
tst
he
pr
ese
nta
ppl
i
cat
ion
.Its
tudi
est
hepr
osa
ndc
onsofu
sin
g pa
rti
cul
ars
oft
war
efort
he
de
vel
opme
nta
ndi
tsf
eas
ibi
l
it
y.I
tal
sos
tudi
est
hea
ddi
ti
ona
ltr
ain
ingn
eede
dtobeg
ive
ntot
he
pe
opl
etoma
ket
hea
ppl
i
cat
ionwor
k.

8
Ma
il
-Cl
i
ent

3.
DES
IGNANAL
YSI
S

3.
1
Uni
fi
edMode
li
ngL
ang
uag
eDi
agr
ams
Th
eun
ifi
edmode
li
ngl
ang
uag
eal
l
owst
hes
oft
war
een
gin
eert
oex
pre
ssa
nan
alys
is
mode
lus
ingt
hemode
li
ngn
ota
tiont
hati
sgov
ern
edbyas
etofs
ynt
act
ics
ema
nti
can
d
pr
agma
ticr
ule
s.

AUMLs
yst
emi
sre
pre
sen
tedu
sin
gfi
vedi
ff
ere
ntv
iewst
hatde
scr
ibet
hes
yst
emf
rom
di
st
inc
tl
ydi
ff
ere
ntpe
rspe
cti
ve.
Eac
hvi
ewi
sde
fi
nedbyas
etofdi
agr
am,
whi
chi
sasf
oll
ows
.

3.
1
.1Us
erMode
lVi
ew
 Th
isv
iewr
epr
ese
ntst
hes
yst
emf
romt
heu
ser
spe
rspe
cti
ve.

 Th
ean
alys
isr
epr
ese
nta
tion de
scr
ibe
sa u
sag
esc
ena
riof
rom t
hee
nd-u
ser
s
pe
rspe
cti
ve.

3.
1
.2S
truc
tur
almode
lvi
ew
 I
nth
ismode
lth
eda
taa
ndf
unc
ti
ona
li
tya
rea
rri
vedf
romi
nsi
det
hes
yst
em.

 Th
ismode
lvi
ewmode
lst
hes
tat
ics
tru
ctu
res
.

3.
1
.3Be
hav
ior
alMode
lVi
ew
I
tre
pre
sen
tst
he dyn
ami
cofbe
hav
ior
ala
spa
rtsoft
hes
yst
em,de
pic
ti
ngt
he
i
nte
rac
ti
onsofc
oll
ect
ionbe
twe
env
ari
ouss
tru
ctu
rale
leme
ntsde
scr
ibe
dint
heu
sermode
l
a
nds
tru
ctu
ralmode
lvi
ew.

3.
1
.4I
mpl
eme
nta
tionMode
lVi
ew
I
nth
ist
hes
tru
ctu
rala
ndbe
hav
ior
ala
spa
rtso
fth
esys
tema
rer
epr
ese
nte
dast
heya
re
t
obebu
il
t.

3.
1
.5Env
ir
onme
nta
lMode
lVi
ew

9
Ma
il
-Cl
i
ent

 I
nth
ist
hes
tru
ctu
rala
ndbe
hav
ior
ala
spe
ctsoft
hee
nvi
ron
men
tinwh
icht
hes
yst
emi
sto
bei
mpl
eme
nte
dar
ere
pre
sen
ted.

 UMLi
sspe
cif
ic
all
ycon
str
uct
edt
hrou
ght
wodi
ff
ere
ntdoma
inst
heya
re

 UMLAnal
ysi
smode
li
ng,
whi
chf
ocu
sesont
heu
sermode
lan
dst
ruc
tur
almode
lvi
ewsof
th
esys
tem
 UMLdesi
gnmodeli
ng,whi
chfocus
esont
hebe
hav
ior
almode
li
ng,i
mpl
eme
nta
tion
mode
li
ngande
nvi
ronment
almode
lvi
ews
.

3.
2Us
eCa
seDi
agr
ams

Th
eac
tor
side
nti
fi
edu
pont
heS
yst
ema
rea
sfol
l
ows
.
 Re
cei
ver

Na
me

Pa
sswor
d

Re
cei
ver
S
mtp
S
erv
er

POP3S
erv
er

Fi
g3.
1

1
0
Ma
il
-Cl
i
ent

Cl
assDi
agr
ams
:

Fi
g3.
2

1
1
Ma
il
-Cl
i
ent

Fi
g3.
3

1
2
Ma
il
-Cl
i
ent

Fi
g3.
4

1
3
Ma
il
-Cl
i
ent

Fi
g3.
5

1
4
Ma
il
-Cl
i
ent

Fi
g3.
6

1
5
Ma
il
-Cl
i
ent

1
6
Ma
il
-Cl
i
ent

Fi
g3.
7

1
7
Ma
il
-Cl
i
ent

4.
SYS
TEMI
MPL
EMENTATI
ON

4.
1Se
lec
tedS
oft
war
e

4.
1
.1AboutJ
AVA:

J
avai
sapr
ogr
ammi
ngl
ang
uag
eor
igi
nal
l
y de
vel
ope
d by J
ame
sGos
li
nga
tSu
n
Mi
cros
yst
emsa
ndr
ele
ase
din1
995a
sac
orec
ompon
entofS
unMi
cros
yst
ems
'Ja
vapl
atf
orm.
Th
ela
ngu
agede
riv
esmu
cho
fit
ssyn
taxf
romCa
ndC++bu
tha
sas
impl
erobj
ectmode
lan
d
f
ewe
rlow-l
eve
lfa
cil
i
ti
es.J
avaa
ppl
i
cat
ion
sar
etypi
cal
l
ycompi
l
edt
obyt
ecode(
cl
assf
il
e)t
hat
c
anr
unona
nyJ
avav
ir
tua
lma
chi
ne(
JVM)r
ega
rdl
essofc
ompu
tera
rch
ite
ctu
re.

4.
1
.1
.1Hi
st
oryofJ
AVA:

J
ame
sGos
li
ngi
ni
ti
ate
dth
eJa
val
ang
uag
epr
oje
cti
nJu
ne1
991f
oru
sei
non
eofh
is
ma
nys
et-t
opboxpr
oje
cts
.[
5]Th
ela
ngu
age
,in
iti
al
lyc
all
edOa
kaf
tera
noa
ktr
eet
hats
tood
ou
tsi
deGos
li
ng'
sof
fi
ce,
als
owe
ntbyt
hen
ameGr
eena
nde
nde
dupl
ate
rre
name
dasJ
ava

 
  
  
  
  
  S
unr
ele
ase
dth
efi
rs
tpu
bli
cimpl
eme
nta
tiona
sJa
va1
.
0in1
995.
Itpr
omi
sed"
Wri
te
On
ce,
RunAn
ywh
ere
"(WORA)
,pr
ovi
din
gno-c
ostr
un-t
ime
sonPOPu
larpl
atf
orms
.Fa
irl
y
s
ecu
rea
ndf
eat
uri
ngc
onf
igu
rabl
ese
cur
it
y,i
tal
l
owe
dne
twor
k-a
ndf
il
e-a
cce
ssr
est
ri
ct
ion
s

 
  
  
  
   
On1
3Nov
embe
r2006,S
unr
ele
ase
dmu
cho
fJa
vaa
sfr
eea
ndope
nsou
rces
oft
war
e
u
nde
rth
ete
rmsoft
heGNUGe
ner
alPu
bli
cLi
cen
se(
GPL
).On8Ma
y2007S
unf
ini
she
dth
e
pr
oce
ss,
mak
inga
llofJ
ava
'sc
orec
odea
vai
l
abl
eun
derf
rees
oft
war
e/ope
n-s
our
cedi
st
ri
but
ion
t
erms
,as
idef
romas
mal
lpor
ti
onofc
odet
owh
ichS
undi
dnoth
oldt
hec
opyr
igh
t.

1
8
Ma
il
-Cl
i
ent

4.
1
.1
.2Fe
atur
esofJ
AVA:
4.
1
.1
.2.
1Por
tabi
l
ity: 

 Compu
terpr
ogr
amswr
it
teni
nth
eJa
val
ang
uag
emu
str
uns
imi
l
arl
yona
nys
uppor
ted
h
ardwa
re/
ope
rat
ing
-sys
templ
atf
orm.
 On
esh
oul
dbea
blet
owr
it
eapr
ogr
amon
ce,
compi
l
eiton
ce,
andr
uni
tan
ywh
ere
.I
tis 
a
chi
eve
dbyc
ompi
l
ingt
heJ
aval
ang
uag
ecode
,nott
oma
chi
nec
odebu
ttoJ
ava
byt
ecode–i
nst
ruc
ti
onsa
nal
ogou
stoma
chi
nec
odebu
tin
ten
dedt
obei
nte
rpr
ete
dby
av
ir
tua
lma
chi
ne(
VM)wr
it
tens
pec
if
ic
all
yfort
heh
osth
ardwa
re.
 En
d-u
ser
scommon
lyu
seaJ
avaRu
nti
meEn
vir
onme
nt(
JRE)i
nst
all
edont
hei
rown
ma
chi
nef
ors
tan
dal
oneJ
avaa
ppl
i
cat
ion
s
 I
nsomeJ
VMv
ers
ion
s,byt
ecodec
anbec
ompi
l
edt
ona
tiv
ecode
,ei
the
rbe
for
eordu
rin
g
pr
ogr
ame
xec
uti
on,
res
ult
ingi
nfa
ste
rex
ecu
tion
.

4.
1
.2J
avaMa
il
:

 
Jav
aMa
ili
saJ
avaAPIu
sedt
ore
cei
vea
nds
ende
mai
lvi
aSMTP,
POP3a
ndI
MAP.
Jav
a
Ma
ili
sbu
il
tin
tot
heJ
avaEEpl
atf
orm,
buta
lsopr
ovi
desa
nopt
ion
alpa
cka
gef
oru
sei
nJa
vaS
E

1
9
Ma
il
-Cl
i
ent

Fi
g4.
1

4.
1
.2.
1I
ntr
oduc
ingJ
avaMa
il
:

 
   
  
  
  
  
  
  Th
eJa
vaMa
ilAP
Ide
fi
nesc
las
sess
ucha
sMe
ssa
ge,
Stor
e,a
ndTr
ans
por
t.Th
eAPI
c
anbee
xte
nde
dan
dca
nbes
ubc
las
sedt
opr
ovi
den
ewpr
otoc
olsa
ndt
oaddf
unc
ti
ona
li
ty
wh
enn
ece
ssa
ry.
Ina
ddi
ti
on,
theAPIpr
ovi
desc
onc
ret
esu
bcl
ass
esoft
hea
bst
rac
tcl
ass
es.
The
se
s
ubc
las
ses
,in
clu
din
gMi
meMe
ssa
gea
ndMi
meBodyPa
rt,
impl
eme
ntwi
del
yus
edI
nte
rne
tma
il
pr
otoc
olsa
ndc
onf
ormt
oth
eRFC822a
ndRFC2045s
pec
if
ic
ati
ons
.Th
eJa
vaMa
ilAPIi
ncl
ude
s
s
uppor
tfort
heI
MAP4,
POP3,
andS
MTPpr
otoc
ols
.

4.
1
.2.
2TheJ
avaMa
ila
rchi
te
ctur
alc
ompone
ntsa
rea
sfol
l
ows
:
Th
eabs
tra
ctl
aye
rde
cla
resc
las
ses
,in
ter
fac
es,
anda
bst
rac
tme
thodsi
nte
nde
dtos
uppor
t
ma
ilh
andl
i
ngf
unc
ti
onst
hata
llma
ils
yst
emss
uppor
t.
 
   
  
  Th
ein
ter
neti
mpl
eme
nta
tionl
aye
rimpl
eme
ntspa
rtoft
hea
bst
rac
tla
yeru
sin
gth
e
RFC822a
ndMI
MEi
nte
rne
tst
anda
rds
.
 
   
  
  J
avaMa
ilu
sest
heJ
ava
Bea
nsAc
ti
vat
ionFr
ame
wor
k(J
AF)t
oen
caps
ula
teme
ssa
geda
ta
a
ndt
oha
ndl
ecomma
ndsi
nte
nde
dtoi
nte
rac
twi
tht
hatda
ta

4.
1
.2.
3Cr
eat
ingaJ
avaMa
ilS
ess
ion
Youc
anc
rea
teaJ
avaMa
ils
ess
ioni
nth
efol
l
owi
ngwa
ys:
 
  
  I
nth
eAdmi
ni
st
rat
ionCon
sol
e,ope
nth
eRe
sou
rce
scompon
enta
nds
ele
ctJ
avaMa
ilS
ess
ion
s.

 
   Us
eth
eas
admi
ncr
eat
e-J
avaMa
il
-re
sou
rcec
omma
nd.

4.
1
.2.
4Ja
vaMa
ilS
ess
ionPr
ope
rti
es
 
  Youc
ans
etpr
ope
rti
esf
oraJ
avaMa
ilS
ess
ionobj
ect
.Ev
erypr
ope
rtyn
amemu
sts
tar
twi
tha

20
Ma
il
-Cl
i
ent

ma
il
-pr
efi
x.Th
eAppl
i
cat
ionS
erv
erc
han
gest
heda
sh(
-)c
har
act
ert
oape
riod(
.
)int
hen
ame
oft
hepr
ope
rtya
nds
ave
sth
epr
ope
rtyt
oth
eMa
il
Con
fig
ura
tiona
ndJ
avaMa
ilS
ess
ionobj
ect
s.
I
fth
ena
meoft
hepr
ope
rtydoe
sn'
tst
artwi
thma
il
-,t
hepr
ope
rtyi
sig
nor
ed.
Fo
rex
ampl
e,i
fyouwa
ntt
ode
fi
net
hepr
ope
rtyma
il
.f
romi
naJ
avaMa
ilS
ess
ionobj
ect
,fi
rs
t
de
fi
net
hepr
ope
rtya
sfol
l
ows
:

 
  *Na
me-ma
il
-fr
om
 
  *V
alu
e-j
ohn
.doe
@su
n.c
om

 
  Af
teryoug
ett
heJ
avaMa
ilS
ess
ionobj
ect
,youc
ang
ett
hema
il
.f
rompr
ope
rtyt
ore
tri
evet
he
v
alu
easf
oll
ows
:
S
tri
ngpa
sswor
d=s
ess
ion
.ge
tPr
ope
rty(
"ma
il
.f
rom"
);

4.
.
13 
. Th
eJa
vaMa
ilAPI:

On
eoft
hemos
tfr
equ
ent
lya
ske
dqu
est
ion
sabou
tJa
vai
showt
ose
nde
mai
lfr
om a
J
avaa
ppl
etora
ppl
i
cat
ion
.Wh
il
eit
'
sce
rta
inl
ypos
si
blet
owr
it
eaJ
avapr
ogr
amt
hatu
ses
s
ock
etst
ocommu
nic
atewi
thma
ils
erv
ers
,th
isr
equ
ire
sde
tai
l
edk
nowl
edg
eofs
omef
air
ly
c
ompl
i
cat
edpr
otoc
ols
,su
cha
sSMTP,
POP,
andI
MAP
.

Th
eJa
vaMa
ilAPIi
sas
tan
dar
dex
ten
siont
oJa
vat
hatpr
ovi
desac
las
sli
bra
ryf
ore
mai
l
c
li
ent
s.I
t'
sar
equ
ire
dcompon
entoft
heJ
ava2Pl
atf
orm,En
ter
pri
seEdi
ti
on(
J2EE)
.Th
eJa
va
Ma
ilAPIc
anbei
mpl
eme
nte
din1
00% Pu
reJ
ava
™us
ings
ock
etsa
nds
tre
ams
,an
din
dee
dSu
n's
r
efe
ren
cei
mpl
eme
nta
tioni
ssoi
mpl
eme
nte
d.Pr
ogr
amsu
set
heJ
avaMa
ilAPIt
ocommu
nic
ate
wi
thS
MTP,POP,a
ndI
MAPs
erv
erst
ose
nda
ndr
ece
ivee
mai
l
.Addi
ti
ona
lpr
ovi
der
sca
nadd
s
uppor
tforot
herma
ils
yst
emss
ucha
sHot
mai
lorMH.
.

Mos
tobv
iou
sly,
youc
anwr
it
est
anda
rde
mai
lcl
i
ent
ssu
cha
sEu
dor
a.Bu
tth
eJa
vaMa
il
APIi
sal
sou
sef
ula
sapa
rtofl
arg
era
ppl
i
cat
ion
sth
ats
impl
yne
edt
ose
ndorr
ece
iveal
i
ttl
e
e
mai
l
.Fori
nst
anc
e,as
erv
er-mon
itor
inga
ppl
i
cat
ions
ucha
sWh
ist
leBl
owe
rca
npe
riodi
cal
l
y

21
Ma
il
-Cl
i
ent

l
oadpa
gesf
romawe
bse
rve
rru
nni
ngonadi
ff
ere
nth
osta
nde
mai
lth
ewe
bma
ste
rift
hewe
b
s
erv
erh
asc
ras
hed.Ana
ppl
etc
anu
see
mai
ltos
endda
tat
oan
ypr
oce
ssorpe
rsonont
he
I
nte
rne
tth
ath
asa
nema
ila
ddr
ess
,ine
sse
nceu
sin
gth
ewe
bse
rve
r'
sSMTPs
erv
era
sas
impl
e
pr
oxyt
obypa
sst
heu
sua
lse
cur
it
yre
str
ict
ion
sabou
twh
oma
nappl
eti
sal
l
owe
dtot
alkt
o.I
n
r
eve
rse
,ana
ppl
etc
ant
alkt
oanI
MAPs
erv
eront
hea
ppl
eth
ostt
ore
cei
veda
taf
rom ma
ny
h
ost
sar
oun
dth
eNe
t.An
ews
rea
derc
oul
dbei
mpl
eme
nte
dasac
ust
om s
erv
icepr
ovi
dert
hat
t
rea
tsNNTPa
sju
ston
emo
reme
ansofe
xch
ang
ingme
ssa
ges
.An
dth
at'
sju
stt
hebe
gin
nin
gof
t
hes
ortofpr
ogr
amst
heJ
avaMa
ilAPIma
kesi
tve
rys
tra
igh
tfor
war
dtowr
it
e.4.
1
.3.
1Wha
tIs
t
heJ
avaMa
ilAPI
?

 Th
eJa
vaMa
ilAPIi
saf
air
lyh
igh
-le
velr
epr
ese
nta
tionoft
heba
sicc
ompon
ent
sofa
ny
e
mai
lsys
tem.Th
ecompon
ent
sar
ere
pre
sen
tedbya
bst
rac
tcl
ass
esi
nth
eja
vax
.ma
il
pa
cka
ge.
Fori
nst
anc
e,t
hea
bst
rac
tcl
assj
ava
x.ma
il
.Me
ssa
ger
epr
ese
ntsa
nema
ilme
ssa
ge.
I
tde
cla
resa
bst
rac
tme
thodst
oge
tan
dse
tva
riou
ski
ndsofe
nve
lopei
nfor
mat
ionf
or
t
heme
ssa
ge,s
ucha
sth
ese
nde
ran
daddr
ess
ee,t
heda
tes
ent
,an
dth
esu
bje
ctoft
he
me
ssa
ge.
Thea
bst
rac
tcl
assj
ava
x.ma
il
.Fol
derr
epr
ese
ntsame
ssa
gec
ont
ain
er.
Itde
cla
res
a
bst
rac
tme
thodst
oge
tme
ssa
gesf
rom af
olde
r,mov
eme
ssa
gesbe
twe
enf
olde
rs,a
nd
de
let
eme
ssa
gesf
romaf
olde
r.
 Th
esec
las
sesa
rea
lla
bst
rac
tbe
cau
set
heydon
'tma
kema
nya
ssu
mpt
ion
sabou
thow
t
hee
mai
liss
tor
edort
ran
sfe
rre
dbe
twe
enma
chi
nes
.Fori
nst
anc
e,t
heydon
ota
ssu
me
t
hatme
ssa
gesa
res
entu
sin
gSMTPort
hatt
hey'
res
tru
ctu
reda
sspe
cif
ie
dinRFC822.
Con
cre
tes
ubc
las
sesoft
hes
ecl
ass
ess
pec
ial
i
zet
hea
bst
rac
tcl
ass
est
o pa
rti
cul
ar
pr
otoc
olsa
ndma
ilf
orma
ts.
Ifyouwa
ntt
owor
kwi
ths
tan
dar
dIn
ter
nete
mai
l
,youmi
ght
u
se 
  
  
ja
vax
.ma
il
.Mi
meMe
ssa
gei
nst
eadofj
ava
x.ma
il
.Me
ssa
ge,j
ava
x.ma
il
.I
nte
rne
tAddr
ess
i
nst
ead of j
ava
x.ma
il
.Addr
ess
, a
nd c
om.
sun
.ma
il
.i
map.
I
MAPS
tor
e i
nst
ead of
j
ava
x.ma
il
.S
tor
e.I
fyouwe
rewr
it
ingc
odef
oraL
otu
sNot
es-ba
seds
yst
em,you
'du
se
di
ff
ere
ntc
onc
ret
eimpl
eme
nta
tionc
las
sesbu
tth
esa
mea
bst
rac
tba
sec
las
ses
.
 S
inc
ema
ila
rri
vesf
romt
hen
etwor
katu
npr
edi
ct
abl
eti
mes
,th
eJa
vaMa
ilAPIr
eli
eson
a
nev
ent
-ba
sedc
all
bac
kme
cha
nis
mtoh
andl
ein
comi
ngma
il
.Th
isi
sex
act
lyt
hes
ame
pa
tte
rn(
eve
nus
ings
omeoft
hes
amec
las
ses
)fou
ndi
nth
eAWTa
ndJ
ava
Bea
ns.Th
e

22
Ma
il
-Cl
i
ent

j
ava
x.ma
il
.e
ven
tpa
cka
gede
fi
nesa
bou
tha
lfadoze
ndi
ff
ere
ntk
indsofma
ile
ven
ts,a
s
we
lla
sth
eas
soc
iat
edl
i
ste
neri
nte
rfa
cesa
nda
dapt
erc
las
sesf
ort
hes
eev
ent
s.
 S
un'
si
mpl
eme
nta
tioni
ncl
ude
sPOP3,
SMTP,
andI
MAPpr
ovi
der
s.Howe
ver
,th
irdpa
rti
es
h
avewr
it
tenpr
ovi
der
sforot
herpr
otoc
olss
ucha
sHot
mai
l
,NNTP,
Exc
han
ge,
andmor
e.

 .

4.
1
.3.
2Look
ingUpaJ
avaMa
ilS
ess
ion
Th
ere
sou
rcel
ook
upi
nth
eappl
i
cat
ionc
odel
ook
sli
ket
his
:

I
ni
ti
alCon
tex
tic=n
ewI
ni
ti
alCon
tex
t()
;
S
tri
ngs
nNa
me="
ja
va:
comp/
env
/ma
il
/MyMa
il
Ses
si
on"
;
S
ess
ions
ess
ion=(
Ses
si
on)
ic
.l
ook
up(
snNa
me)
;

4.
2Pr
otoc
olsUs
ed

4.
2.

SOCK
ET:

As
oft
war
eobj
ectt
hatc
onn
ect
sana
ppl
i
cat
iont
oan
etwor
kpr
otoc
ol.
InJ
ava
,a
pr
ogr
amc
ans
enda
ndr
ece
iveTCP
/IPme
ssa
gesbyope
nin
gas
ock
eta
ndr
eadi
nga
ndwr
it
ing
da
tat
oan
dfr
omt
hes
ock
et.

4.
2.
1.
1
Type
sofS
ock
ets
:
Th
erea
res
eve
ralI
nte
rne
tsoc
kett
ype
s:

 Da
tag
rams
ock
ets
,al
sok
nowna
scon
nec
ti
onl
esss
ock
ets
,wh
ichu
seUs
erDa
tag
ram
Pr
otoc
ol(
UDP)
.
 S
tre
ams
ock
ets
,al
sok
nowna
scon
nec
ti
on-or
ien
teds
ock
ets
,wh
ichu
seTr
ans
mis
si
on
Con
trol
.Pr
otoc
ol(
TCP)orS
tre
amCon
trolTr
ans
mis
si
onPr
otoc
ol(
SCTP)
.
 Raws
ock
ets(
orRa
wIPs
ock
ets
),t
ypi
cal
l
yav
ail
abl
einr
out
ersa
ndot
hern
etwor
k

23
Ma
il
-Cl
i
ent

e
qui
pme
nt.

4.
2.
2 PORTS
:
I
ncompu
tern
etwor
kin
g,apor
tisa
nappl
i
cat
ion
-spe
cif
icorpr
oce
ss-s
pec
if
ics
oft
war
e
c
ons
tru
cts
erv
inga
sac
ommu
nic
ati
onse
ndpoi
ntu
sedbyTr
ans
por
tLa
yerpr
otoc
olsoft
he
I
nte
rne
tPr
otoc
olS
uit
esu
cha
sTr
ans
mis
si
onCon
trolPr
otoc
ol(
TCP)a
ndUs
erDa
tag
ram
Pr
otoc
ol(
UDP)
.

4.
2.
2.
1Por
tnumbe
r:
As
pec
if
icpor
tisi
den
tif
ie
dbyi
tsn
umbe
r,c
ommon
lyk
nowna
sth
epor
tnu
mbe
r,t
heI
P
a
ddr
essi
tisa
ssoc
iat
edwi
th,
andt
hepr
otoc
olu
sedf
orc
ommu
nic
ati
on.
 
   
  
  
  
 Apor
tnu
mbe
risa1
6-bi
tun
sig
nedi
nte
ger
,th
usr
ang
ingf
rom0t
o65535.
Apr
oce
ss
a
ssoc
iat
eswi
thapa
rti
cul
arpor
t(k
nowna
sbi
ndi
ng)t
ose
nda
ndr
ece
iveda
ta,
mea
nin
gth
ati
t
wi
l
lli
st
enf
ori
ncomi
ngpa
cke
tswh
osede
sti
nat
ionpor
tnu
mbe
ran
dIPde
sti
nat
iona
ddr
ess
ma
tcht
hatpor
t,a
nd/
ors
endou
tgoi
ngpa
cke
tswh
oses
our
cepor
tnu
mbe
riss
ett
oth
atpor
t.
Pr
oce
sse
sma
ybi
ndt
omu
lti
plepor
ts.
Por
tnu
mbe
r21i
sforFTP,
 
  
  
  
  
  
  
  
  
  
  23i
sforTe
lne
t,
           25i
sfore
-ma
il
,
 
  
  
  
  
  
  
  
  
  
  79i
sforf
ing
er,
 
  
  
  
  
  
  
  
  
  
  80i
sforHTTP,
 
  
  
  
  
  
  
  
  
  
 11
9isf
orn
etn
ews
—an
dth
eli
stg
oeson
.
4.
2.
2.
2Ra
ngeofPor
tNumbe
rs:
 
   
  Th
epor
tnu
mbe
rsa
redi
vi
dedi
ntot
hre
era
nge
s:t
heWe
llK
nownPor
ts,
theRe
gis
ter
ed
Por
ts,
andt
heDyn
ami
corPr
iv
atePor
ts.

 Th
eWe
llK
nownPor
tsa
ret
hos
efr
om0t
hrou
gh1
023.
 Th
eRe
gis
ter
edPor
tsa
ret
hos
efr
om1
024t
hro
ugh491
51.

24
Ma
il
-Cl
i
ent

 Th
edyn
ami
corPr
iv
atePor
tsa
ret
hos
efr
om491
52t
o65535.
 Ema
ils
erv
ersa
ndc
li
entu
set
hef
oll
owi
ngTCPpor
tnu
mbe
rsbyde
fau
lt,
unl
ess
c
onf
igu
redf
ors
pec
ial
i
zedi
nst
all
ati
ons
:
 pr
otoc
olu
sepl
ai
nte
xtore
ncr
ypts
ess
ion
spl
ai
nte
xts
ess
ion
son
lye
ncr
ypts
ess
ion
son
ly
 POP3i
ncomi
ngma
il1
10 995
 I
MAP4i
ncomi
ngma
il1
43 993
 S
MTPou
tgoi
ngma
il25 (
unof
fi
ci
al
)465
 MS
Aou
tgoi
ngma
il587

4.
3INETADDRES
S
 
  
  
 

 Wh
eth
eryoua
rema
kin
gaph
onec
all
,se
ndi
ngma
il
,ore
sta
bli
shi
ngac
onn
ect
iona
cros
s
t
heI
nte
rne
t,a
ddr
ess
esa
ref
unda
men
tal
.
 Th
eIn
etAddr
essc
las
sisu
sedt
oen
caps
ula
tebot
hth
enu
mer
ica
lIPa
ddr
esswedi
scu
sse
d
e
arl
i
era
ndt
hedoma
inn
amef
ort
hata
ddr
ess
.
 Youi
nte
rac
twi
tht
hisc
las
sbyu
sin
gth
ena
meo
fanI
Phos
t,wh
ichi
smor
econ
ven
ien
t
a
ndu
nde
rst
anda
blet
hani
tsI
Paddr
ess
.
 Th
eIn
etAddr
essc
las
shi
dest
hen
umbe
rin
side
.AsofJ
ava2,
ver
si
on1
.
4,I
net
Addr
essc
an
h
andl
ebot
hIPv
4an
dIPv
6addr
ess
es.
Thi
sdi
sc
uss
iona
ssu
mesI
Pv4.

4.
4SMTP

S
impl
eMa
ilTr
ans
ferPr
otoc
ol(
SMTP)i
sanI
nte
rne
tst
anda
rdf
ore
lec
tron
icma
il(
e-ma
il
)
t
ran
smi
ss
iona
cros
sIn
ter
netPr
otoc
ol(
IP)n
etwor
ks.S
MTPwa
sfi
rs
tde
fi
nedi
nRFC821
(
STD1
5),
[
1]a
ndl
astu
pda
tedbyRFC5321(
2008)
[2]wh
ichi
ncl
ude
sth
eex
ten
dedS
MTP
(
ESMTP)a
ddi
ti
ons
,an
dist
hepr
otoc
oli
nwi
des
pre
adu
set
oda
y.Wh
il
eel
ect
ron
icma
il
s
erv
ersa
ndot
herma
ilt
ran
sfe
rag
ent
sus
eSMTPt
ose
nda
ndr
ece
ivema
ilme
ssa
ges
,
u
ser
-le
velc
li
entma
ila
ppl
i
cat
ion
stypi
cal
l
yon
lyu
seS
MTPf
ors
endi
ngme
ssa
gest
oa

25
Ma
il
-Cl
i
ent

ma
ils
erv
erf
orr
ela
yin
g.
S
MTP i
sar
ela
tiv
elys
impl
e,t
extba
sed pr
otoc
ol,i
nwh
ichama
ils
ende
r
c
ommu
nic
ate
swi
thama
ilr
ece
ive
rbyi
ss
uin
gsi
mpl
ecomma
nds
tri
ngsa
nds
uppl
yi
ng
n
ece
ssa
ryda
taov
erar
eli
abl
eor
der
edda
tas
tre
amc
han
nel
,typi
cal
l
yaTr
ans
mis
si
on
Con
trolPr
otoc
ol(
TCP)c
onn
ect
ion

4.
5POP3

Pos
tOf
fi
cePr
otoc
ol(
POP)i
sana
ppl
i
cat
ion
-la
yerI
nte
rne
tst
anda
rdpr
otoc
ol
u
sedbyl
oca
le-ma
ilc
li
ent
stor
etr
iev
ee-ma
ilf
rom ar
emot
ese
rve
rov
eraTCP/
IP
c
onn
ect
ion
.POP a
ndI
MAP (
Int
ern
etMe
ssa
geAc
ces
sPr
otoc
ol)a
ret
het
wo mos
t
pr
eva
len
tIn
ter
nets
tan
dar
dpr
otoc
olsf
ore
-ma
ilr
etr
iev
al.V
irt
ual
l
yal
lmode
rne
-ma
il
c
li
ent
san
dse
rve
rss
uppor
tbot
h.Th
ePOPpr
otoc
olh
asbe
ende
vel
ope
dth
rou
ghs
eve
ral
v
ers
ion
s,wi
thv
ers
ion3(
POP3)be
ingt
hec
urr
ents
tan
dar
d.

Th
ede
sig
nofPOPa
ndi
tspr
oce
dur
ess
uppor
tse
nd-u
ser
swi
tht
empor
ary
I
nte
rne
tcon
nec
ti
ons
,su
cha
sdi
al
-upa
cce
ss,a
ll
owi
ngt
hes
eus
erst
ore
tri
evee
-ma
il
wh
enc
onn
ect
eda
ndt
hent
ovi
ewa
ndma
nipu
lat
eth
ere
tri
eve
dme
ssa
geswh
enof
fl
in
e.
Al
thou
ghmos
tcl
i
ent
sha
vea
nopt
iont
ole
avema
ilons
erv
er,e
-ma
ilc
li
ent
sus
ingPOP
g
ene
ral
l
ycon
nec
t,r
etr
iev
eal
lme
ssa
ges
,st
oret
hem ont
heu
ser
'sPCa
sne
wme
ssa
ges
,
de
let
eth
emf
romt
hes
erv
er,
andt
hendi
sc
onn
ect
.

Cl
i
ent
swi
thal
eav
ema
ilons
erv
eropt
iong
ene
ral
l
yus
eth
ePOP3UI
DL(
Uni
que
I
Den
tif
ic
ati
onL
ist
ing
)comma
nd.Mos
tPOP3c
omma
ndsi
den
tif
yspe
cif
icme
ssa
gesby
t
hei
ror
din
aln
umbe
ront
hema
ils
erv
er.
Thi
scr
eat
esapr
obl
emf
orac
li
enti
nte
ndi
ngt
o
l
eav
eme
ssa
gesont
hes
erv
er,s
inc
eth
eseme
ssa
gen
umbe
rsma
ych
ang
efr
om on
e
c
onn
ect
iont
oth
ese
rve
rtoa
not
her
.

4.
6Da
taBa
seu
sed(
Mai
lSt
ore
):

He
rei
nou
rMa
ilCl
i
entMa
ilS
tor
eiswor
keda
sth
eda
taba
se.
Mai
lSt
orei
sfi
xedi
n
f
ix
edi
nbot
hth
eSMTPs
erv
er.
Mai
lSt
ores
tor
est
hea
llt
hede
tai
l
sofs
ende
ran
dre
cei
ver

26
Ma
il
-Cl
i
ent

i
.
eSe
nde
raddr
ess
,Re
cei
vera
ddr
ess
,Su
bje
ct,
Time
,Da
te,
IPa
ddr
ess
,si
gna
tur
e,Me
ssa
ge
body

27
Ma
il
-Cl
i
ent

4.
7OV
ERV
IEW OFTHEMAI
LCL
IENT

Fi
g4.
2

4.
8Sa
mpl
eCodi
ng:
pu
bli
ccl
assma
il
2ex
ten
dsJ
Fra
me
{
S
tat
icS
tri
ngPOPS
erv
er;
S
tat
icS
tri
ngPOPUs
er;
S
tat
icS
tri
ngPOPsPa
sswor
d;
Pu
bli
cst
ati
cvoi
dma
in(
Str
inga
rgs
[]
)
{
/
/POPS
erv
er=a
rgs[
0];
/
/POPUs
er=a
rgs[
1]
;
/
/POPPa
sswor
d=a
rgs[
2];
J
Fra
mef
rame=n
ewma
il
fr
ame(
);

28
Ma
il
-Cl
i
ent

f
rame
.s
etV
isi
ble(
tr
ue)
;
}
}

@S
uppr
ess
War
nin
gs(
"s
eri
al
")
Cl
assma
ilf
ramee
xte
ndsJ
Fra
mei
mpl
eme
ntsAc
ti
onL
ist
ene
r
{
J
Labe
lls
erv
er=n
ewJ
Labe
l("
SMTPS
erv
er"
);
S
tat
icJ
Tex
tFi
el
dts
erv
er=n
ewJ
Tex
tFi
el
d(1
5);
J
Labe
llu
name=n
ewJ
Labe
l("
Use
rNa
me"
);
S
tat
icJ
Tex
tFi
el
dtu
name=n
ewJ
Tex
tFi
el
d(1
5);
J
Labe
llpa
ss=n
ewJ
Labe
l(
"Pa
sswor
d")
;
S
tat
icJ
Pas
swor
dFi
el
dtpa
ss=n
ewJ
Pas
swor
dFi
el
d(1
5);
S
tat
icJ
Tex
tAr
eame
ssa
ge=n
ewJ
Tex
tAr
ea(
30,
72)
;

Pu
bli
cma
il
fr
ame
()
{
t
his
.s
etS
ize
(850,
500)
;
t
his
.s
etL
ayou
t(n
ewFl
owL
ayou
t(Fl
owL
ayou
t.
LEFT)
);

a
ddWi
ndowL
ist
ene
r(n
ewWi
ndowAda
pte
r()
{
pu
bli
cvoi
dwi
ndowCl
osi
ng(
Win
dowEv
ente
)
{
S
yst
em.
exi
t(
0);
}

29
Ma
il
-Cl
i
ent

}
)
;

t
pas
s.
se
tEc
hoCh
ar(
'
*')
;
t
his
.a
dd(
ls
erv
er)
;
t
his
.a
dd(
ts
erv
er)
;
t
his
.a
dd(
lu
name
);
t
his
.a
dd(
tun
ame
);
t
his
.a
dd(
lpa
ss)
;
t
his
.a
dd(
tpa
ss)
;

J
But
tonb1=n
ewJ
But
ton
("Fe
tch
");
b1
.
addAc
ti
onL
ist
ene
r(t
his
);
t
his
.a
dd(
b1)
;

me
ssa
ge.
se
tEdi
tabl
e(
fal
se)
;
J
Scr
oll
Pan
esp= n
ewJ
Scr
oll
Pan
e()
;
me
ssa
ge.
add(
sp)
;
t
his
.a
dd(
mes
sag
e);

}
pu
bli
cvoi
dac
ti
onPe
rfor
med(
Act
ion
Eve
nte
)
{
S
yst
em.
out
.
pri
ntl
n(
"de
bugbu
tton
");
f
etc
hma
il
()
;

30
Ma
il
-Cl
i
ent

}
@S
uppr
ess
War
nin
gs(
"de
pre
cat
ion
")
pr
iv
atev
oidf
etc
hma
il
()
{
S
tri
ngPOPS
erv
er;
S
tri
ngPOPUs
er;
S
tri
ngPOPPa
sswor
d;

POPS
erv
er=ma
il
fr
ame
.t
ser
ver
.ge
tTe
xt(
);
POPUs
er=ma
il
fr
ame
.t
una
me.
get
Tex
t()
;
POPPa
sswor
d=ma
il
fr
ame
.t
pas
s.
get
Tex
t()
;

S
yst
em.
out
.
pri
ntl
n(
POPS
erv
er)
;
t
ry
{
r
ece
ive
(POP
Ser
ver
,POPUs
er,
POPPa
sswor
d);

/
/re
cei
ve(
"ma
il
.i
mpa
rtt
ech
nol
ogi
es.
com"
,
"te
stpr
oje
ct@i
mpa
rtt
ech
nol
ogi
es.
com"
,
"
pas
swor
d123"
);
}
c
atc
h(Ex
cept
ione
x)
{
S
yst
em.
out
.
pri
ntl
n(
"Us
age
:ja
vaj
mai
l
"+"S
MTPS
erv
era
ddr
esspa
sswor
d")
;
}
/
/Sys
tem.
exi
t(
0);
}

31
Ma
il
-Cl
i
ent

5.
TES
TCAS
ES

5.
1Te
sti
ng:

Te
sti
ngi
sth
epr
oce
ssoff
indi
ngdi
ff
ere
nce
sbe
twe
ent
hee
xpe
cte
dbe
hav
ior
s
pec
if
ie
dbys
yst
em mode
lsa
ndt
heobs
erv
edbe
hav
ioroft
hes
yst
em.Du
rin
gte
sti
ng,t
he
pr
ogr
amt
oth
ete
ste
dise
xec
ute
dwi
thas
etoft
estc
ase
s,a
ndt
heou
tpu
toft
hepr
ogr
amf
or
t
het
estc
ase
sise
val
uat
edt
ode
ter
min
eift
hepr
ogr
ami
spe
rfor
min
gasi
tise
xpe
cte
dto.
Whe
n
di
ff
ere
nce
sar
efou
nd,de
vel
ope
rsi
den
tif
yth
ede
fec
tca
usi
ngt
heobs
erv
edf
ail
urea
ndmodi
fy
t
hes
yst
emt
ocor
rec
tit
.I
not
herc
ase
s,t
hes
yst
emmo
deli
side
nti
fi
eda
sca
useoft
hedi
ff
ere
nce
a
ndmode
lupda
tedt
ore
fl
ectt
hes
tat
eoft
hes
yst
em.

5.
1
.1Ne
edf
ort
est
ing
:
Th
egoa
loft
est
ingi
stode
sig
nte
stst
hate
xer
cis
ede
fec
tsi
nth
esys
tema
ndt
o
r
eve
alpr
obl
ems
.Te
sti
ngi
saf
aul
tde
tec
ti
ont
ech
niqu
eth
att
ri
est
ocr
eat
efa
il
ure
sore
rror
sina
pl
ann
edwa
y.Th
isa
ll
owsade
vel
ope
rtode
tec
tfa
il
urei
nth
esys
tembe
for
eiti
sre
lea
sedt
oth
e
c
ust
ome
r.Th
ech
ara
cte
ris
ti
csofag
oodt
estmode
lar
eth
ati
tcon
tai
nst
estc
ase
sth
ati
den
tif
y
e
rror
s.Ev
eryi
npu
tth
atc
anpos
si
blybeg
ive
ntot
hes
yst
emt
obet
est
ed.
Oth
erwi
se,
the
rei
sa
c
han
cet
hatf
all
sar
enotde
tec
ted.

5.
1
.2S
oft
war
eTe
sti
ng:
I
nan
ysof
twa
rede
vel
opme
nt,
tes
ti
ngi
sapr
oce
sst
osh
owt
hec
orr
ect
nes
soft
he
pr
ogr
ama
ndi
tme
etst
hede
sig
nspe
cif
ic
ati
on.
Tes
ti
ngi
sne
ede
dtopr
ovec
orr
ect
nes
s,t
osh
ow
c
ompl
et
ene
ss,
toi
mpr
ovet
hequ
ali
tyoft
hes
oft
war
ean
dtopr
ovi
det
hema
int
ena
ncea
id.
Some
t
est
ings
tan
dar
dsa
ret
her
efor
ene
ces
sar
ytoe
nsu
rec
ompl
et
ene
ssoft
est
ing
,impr
ovet
he
qu
ali
tyoft
hes
oft
war
e,a
ndr
edu
cet
het
est
ingc
ost
san
dtor
edu
ces
tudyn
eedsa
ndope
rat
ion
t
ime
.

32
Ma
il
-Cl
i
ent

5.
1
.3Goa
lsofTe
sti
ng:
Th
efol
l
owi
nga
ret
heg
oal
soft
est
ing
 Te
sti
ngi
sapr
oce
ssofe
xec
uti
ngapr
ogr
amwi
tht
hei
nte
ntoff
indi
nga
ner
ror
.
 Ag
oodt
estc
asei
sth
eon
eth
ath
asah
ighpr
oba
bil
i
tyoff
indi
nga
sanye
tun
dis
cov
ere
d
e
rror
.
 As
ucc
ess
fult
esti
son
eth
atu
ncov
ersa
nasye
tun
dis
cov
ere
der
ror
.

5.
2Te
sti
ngMe
thods
:

5.
2.
1Top-DownTe
sti
ng
Top-Down Te
sti
ngt
est
sth
ehi
ghe
rle
vel
sofa s
yst
em be
for
ete
sti
ngi
tsde
tai
l
ed
c
ompon
ent
s.Th
epr
ogr
ami
sre
pre
sen
teda
sas
ing
lea
bst
rac
tcompon
entwi
ths
ubc
ompon
ent
s
r
epr
ese
nte
d bys
tubs
.St
ubsh
avet
hes
amei
nte
rfa
cea
sth
ecompon
ent
sbu
tve
ryl
i
mit
s
f
unc
ti
ona
li
ty.Af
tert
het
op-l
eve
lcompon
enth
asbe
ent
est
ed,i
tss
ub-c
ompon
ent
sar
e
i
mpl
eme
nte
dan
dte
ste
dint
hes
amewa
y.Th
ispr
oce
ssc
ont
inu
esr
ecu
rsi
vel
yun
tilt
hebot
tom-
l
eve
lcompon
ent
sar
eimpl
eme
nte
d.Th
ewh
oles
yst
emma
yth
enbec
ompl
et
el
yte
ste
d.

5.
2.
2Bot
tom-UpTe
sti
ng
Bot
tom-UpTe
sti
ngi
sth
econ
ver
seofTop-DownTe
sti
ng.
Iti
nvol
vest
est
ingt
hemodu
lesa
t
t
hel
owe
rle
vel
soft
heh
ier
arc
hya
ndt
henwor
kin
gupt
heh
ier
arc
hyoft
hemodu
lesu
nti
lth
e
f
ina
lmodu
lei
ste
ste
d.Wh
enu
sin
gbot
tom-u
pte
sti
ngt
estdr
iv
ersmu
stbewr
it
tent
oex
erc
ise
t
hel
owe
rle
velc
ompon
ent
s.Th
ete
stdr
iv
erss
imu
lat
eth
ecompon
ent
sen
vir
onme
nta
nda
re
v
alu
abl
ecompon
ent
s;t
het
estdr
iv
ersa
ndt
estda
tas
hou
ldbedi
st
ri
but
edwi
tht
hec
ompon
ent
.
Pot
ent
ialr
e-u
ser
sca
nth
enr
unt
hes
ete
stst
osa
tis
fyt
hems
elv
est
hatt
hec
ompon
entbe
hav
esa
s
e
xpe
cte
dint
hei
ren
vir
onme
nt.

33
Ma
il
-Cl
i
ent

5.
2.
3Bl
ackBoxTe
sti
ng:
K
nowi
ngt
hes
pec
if
ie
dfu
nct
iont
hatapr
odu
cth
asbe
ende
sig
nedt
ope
rfor
m,t
estc
anbe
c
ondu
cte
dth
atde
mon
str
ate
sea
chf
unc
ti
ont
hati
sfu
ll
yope
rat
ion
al,
att
hes
amet
imes
ear
chi
ng
f
ore
rror
sine
achf
unc
ti
on.
Bla
ckBoxt
est
ingf
ocu
seso
nfu
nct
ion
alr
equ
ire
men
toft
hes
oft
war
e.
Bl
ackBoxt
est
inga
tte
mpt
stof
indou
ter
ror
sint
hef
oll
owi
ngc
ate
gor
ies
:

 I
ncor
rec
tormi
ss
ingf
unc
ti
ons
.
 I
nte
rfa
cee
rror
s.
 Er
ror
sinda
tas
tru
ctu
resore
xte
rna
lda
taba
sea
cce
ss.
 Pe
rfor
man
cea
nde
rror
s.
 I
ni
ti
al
iza
tiona
ndt
ermi
nat
ione
rror
s.

5.
2.
4Whi
teBoxTe
sti
ng:
K
nowi
ngt
hei
nte
rna
lwor
kin
gofapr
odu
ct,
tes
tca
nbec
ondu
cte
dtoe
nsu
ret
hat"
al
lge
ars
me
sh"t
hati
sin
ter
nalope
rat
ion pe
rfor
msa
ccor
din
gtos
pec
if
ic
ati
on a
nda
lli
nte
rna
l
c
ompon
ent
sha
vebe
ena
dequ
ate
lye
xer
cis
ed.Us
ingwh
iteboxt
est
ingme
thods
,th
esof
twa
re
e
ngi
nee
rca
nde
riv
ete
stc
ase
sth
at:

 Gu
ara
nte
eth
ata
lli
nde
pen
den
tpa
thswi
thi
namodu
leh
asbe
ene
xer
cis
eda
t
l
eas
ton
ce……….
Bas
ispa
tht
est
ing
 Ex
erc
isea
lll
ogi
calde
cis
ion
sont
hei
rtr
uea
ndf
als
esi
des….
.con
dit
iont
est
ing
 Ex
ecu
tea
lll
oopsa
tth
eirbou
nda
rie
san
dwi
thi
nth
eirope
rat
ionbou
nds

l
oopt
est
ing

34
Ma
il
-Cl
i
ent

5.
3Le
vel
sofTe
sti
ng:
Di
ff
ere
ntl
eve
lsoft
est
inga
tte
mpt
stode
tec
tdi
ff
ere
ntt
ype
soff
aul
ts
.Ba
sicl
eve
lsa
re:
1
. Un
itTe
sti
ng
2.I
nte
gra
tionTe
sti
ng
3.Re
gre
ssi
onTe
sti
ng
4.S
yst
emTe
sti
ng

5.
3.
1Uni
tTe
sti
ng
Un
itt
est
ingt
ri
est
ofi
ndf
aul
tsi
npa
rti
ci
pat
ingobj
ect
san
dsu
bsys
temswi
thr
espe
ctt
o
t
heu
sec
ase
sfr
om t
heu
sel
essmode
.Di
ff
ere
ntmodu
lesa
ret
est
eda
gai
nsts
pec
if
ic
ati
ons
pr
odu
ceddu
rin
gde
sig
nfort
hemodu
les
.Un
itt
est
ingi
ses
sen
tia
lfort
hev
eri
fi
cat
ionoft
hec
ode
pr
odu
ceddu
rin
gth
ecodi
ngph
asea
ndh
enc
eth
egoa
list
ote
stt
hei
nte
rna
llog
icoft
he
modu
lesi
.
e.u
nitt
est
ingf
ocu
sesoni
ndi
vi
dua
lcompon
ent
s.S
oinou
rpr
oje
cte
acha
nde
ver
y
s
egme
nti
nev
erymodu
lei
ste
ste
d.

5.
3.
2Int
egr
ati
onTe
sti
ng
I
nte
gra
tiont
est
ingde
tec
tsf
aul
tst
hath
aven
otbe
ende
tec
teddu
rin
gun
itt
est
ing
,by
f
ocu
sin
gons
mal
lgr
oupofc
ompon
ent
s.Twoormor
ecompon
ent
sar
ein
teg
rat
eda
ndt
est
ed
a
ndon
cet
est
sdon
otr
eve
ala
nyn
ewf
aul
ts
,addi
ti
ona
lcompon
ent
sar
eadde
dtot
heg
rou
p.
Th
ispr
oce
dur
eal
l
owst
het
est
ingofi
ncr
eas
ing
lymor
ecompl
expa
rtsoft
hes
yst
em wh
il
e
k
eepi
ngt
hel
oca
tionoft
hepot
ent
ialf
aul
tsr
ela
tiv
elys
mal
l
.Th
isa
cti
vi
tyc
anbec
ons
ide
reda
s
t
est
ingt
hede
sig
nan
dhe
ncet
hee
mph
asi
sisont
est
ingmodu
lei
nte
rac
ti
ons
.Soe
achmodu
lei
n
t
hepr
oje
cti
ste
ste
dtoe
nsu
res
moot
hfu
nct
ion
ingoft
hemodu
le.

5.
3.
3Re
gre
ssi
onTe
sti
ng
Ea
cht
imean
ewmodu
lei
sadde
daspa
rtofi
nte
gra
tiont
est
ing
,th
esof
twa
rec
han
ges
.Ne
w
da
tapa
thsa
ree
sta
bli
she
d,n
ewI
/Oma
yoc
cur
,an
dne
wcon
troll
ogi
cisi
nvok
ed.
The
sec
han
ges
ma
yca
usepr
obl
emswi
thf
unc
ti
onst
hatpr
evi
ous
lywor
kedf
lawl
ess
ly.I
nth
econ
tex
tofa
n
i
nte
gra
tiont
ests
tra
teg
y,r
egr
ess
iont
est
ingi
sth
ere
xec
uti
onofs
omes
ubs
etoft
est
sth
ath
ave

35
Ma
il
-Cl
i
ent

a
lre
adybe
enc
ondu
cte
dtoe
nsu
ret
hatc
han
gesh
aven
otpr
opa
gat
edu
nin
ten
deds
idee
ffe
cts
.
Re
gre
ssi
onTe
sti
ngi
sth
eac
ti
vi
tyt
hath
elpst
oen
sur
eth
atc
han
gesdon
oti
ntr
odu
ceu
nin
ten
ded
be
hav
iorora
ddi
ti
ona
ler
ror
s

5.
3.
4Sys
temTe
sti
ng
S
yst
emt
est
ingt
est
sal
lth
ecompon
ent
stog
eth
er,s
eenas
ing
les
yst
emt
oide
nti
fye
rror
s
wi
thr
espe
ctt
osc
ena
riosf
romt
hepr
obl
ems
tat
eme
nta
ndt
her
equ
ire
men
tsa
ndde
sig
ngoa
ls
i
den
tif
ie
dint
hea
nal
ysi
san
dsys
tema
nal
ysi
si.
e.du
rin
gsys
temt
est
inge
nti
res
oft
war
esys
temi
s
t
est
ed.
Ther
efe
ren
cedoc
ume
ntf
ort
hispr
oce
ssi
sre
qui
reme
ntdoc
ume
nta
ndt
heg
oali
stos
ee
i
fth
esof
twa
reme
etsi
tsr
equ
ire
men
ts.
Sev
era
limpor
tan
tsys
tem-t
est
inga
cti
vi
ti
esa
re

5.
3.
5Func
ti
ona
lTe
sti
ng
Te
stoff
unc
ti
ona
lre
qui
reme
nts(
fr
omRAD)a
ndi
fav
ail
abl
efr
omt
heu
serma
nua
l.

5.
3.
6Pe
rfor
manc
eTe
sti
ng
Te
stofn
on-f
unc
ti
ona
lre
qui
reme
nts(
fr
omRAD)a
nda
ddi
ti
ona
lde
sig
ngoa
ls(
fr
omS
D).

5.
3.
7Ac
cept
anc
eTe
sti
ng
Ch
eckt
her
equ
ire
men
tsa
gai
nstt
hepr
oje
cta
gre
eme
nta
nds
hou
ldbedon
ebyt
hec
li
ent
,
i
fne
ces
sar
ywi
ths
uppor
tbyt
hede
vel
ope
rs.Th
ist
est
ingi
spe
rfor
medt
ode
mon
str
atet
hat
s
oft
war
eiswor
kin
gase
xpe
cte
d.

36
Ma
il
-Cl
i
ent

5.
4TES
TPL
AN:

Thetes
tpla
nfocuse
sonthemanage
ria
laspec
tsofte
sti
ng.
Itdoc
ume n
tst
he sc
ope
,
a
pproa
ch,re
sour
cesandsc
hedul
eoftes
ti
ngacti
vi
ti
es.
Therequi
rement
sandthe
c
omponen
tstobetes
tedar
eident
if
ie
dinthedocument

Ma
ilCl
i
entEx
ecu
tion
:

Te
stPl
anI
D I
npu
t De
scr
ipt
ion Ex
pec
tedr
esu
lt

Tp_1 Se
rvernameblank
,us
er Noserv
ername , Di
spl
aye
rror
na
me us
ername,Pass
word,
pas
swordblank Rec
eiv
edbys erver
Tp_2 Va
li
ds e
rvernameval
i
d Val
i
ds er
vernamev al
id Ma
il
sdi
spl
aye
d
us
ernamev al
i
d us
ernamepa ssword
pas
sword gi
ven
Tp_3 I
nval
idser
vername I
nval
idserv
erna meis Youshou
ldent
erv
ali
d
gi
ventoserv
er ser
vername

Tp_4 Typewr
ongc
omma
nd Comma
ndi
swr
ong Di
spl
aya
sde
fau
lt

37
Ma
il
-Cl
i
ent

5.
5TES
TCAS
E:

Itl
is
tsthet
estc
ase
st ha
ta r
en e
ededfort
est
ing
.Eachte
stc
aseisde
scr
ibe
din
det
aili
nsepar
atetes
tcasespe
cif
ica
tiondocumen
t.Eac
he xec
uti
onofthe
setes
tswil
lbe
doc
umente
dinates
tinde
ntre
portdocument
.

Ma
ilCl
i
entEx
ecu
tion
:

Te
stCa
seI
D I
npu
t De
scr
ipt
ion Ex
pec
tedr
esu
lt Pa
ss/
Fai
l
Tc
_1 Ser
vername Noservername , Di
spl
aye
rror Fa
il
bl
ank,us
ername us
ername ,
Password,
pass
wordbla
nk Rece
ivedbys erver
Tc
_2 Val
idse
rvername Val
idservername Ma
il
sdi
spl
aye
d Pa
ss
va
li
du s
ername va
li
du sername
va
li
dpa s
sword pass
wordg ive
n
Tc
_3 I
nval
idser
ver I
nval
idse r
vern a
me Yoush
oulde
nter Fa
il
name i
sgiventos e
rver val
i
dserv
ername

Tc
_4 Typewr
ong Comma
ndi
swr
ong Di
spl
aya
sde
fau
lt Fa
il
comman
d

38
Ma
il
-Cl
i
ent

6.
SCREENS&REPORTS

6.
1Sc
ree
ns

6.
1Log
in:

Fi
g6.
1

39
Ma
il
-Cl
i
ent

6.
1
.2L
ogi
n(a
fte
rent
erde
tai
l
s)

Fi
g6.
1
.2

40
Ma
il
-Cl
i
ent

6.
2Re
por
ts

6.
2.
1Me
ssa
geWi
ndow:

Fi
g6.
2.
1

41
Ma
il
-Cl
i
ent

6.
2.
2Me
ssa
gePa
tte
rn:

Fi
g6.
2.
2

42
Ma
il
-Cl
i
ent

6.
2.
3Me
ssa
ges

Fi
g6.
2.
3

43
Ma
il
-Cl
i
ent

6.
2.
4Me
ssa
ges
:

Fi
g6.
2.
4

44
Ma
il
-Cl
i
ent

7.
CONCL
USI
ONANDFUTURES
COPE

7.
1Con
clu
si :
on

Th
iss
yst
emi
simpl
eme
nte
dfu
lfi
l
li
nga
llt
hec
li
entr
equ
ire
men
ts.
Thei
nte
rfa
cesde
sig
ned
f
ort
hes
yst
emi
sve
ryu
serf
ri
endl
yan
dat
tra
cti
ve.I
tha
ssu
cce
ssf
ull
yimpl
eme
nte
dth
ere
cei
ve
me
ssa
gesa
spe
rth
ecl
i
entr
equ
ire
men
t.

Th
esys
temh
ass
ucc
ess
ful
l
ypa
sse
dth
ete
sti
nga
tth
ede
vel
opme
nts
it
ean
disu
nde
rth
e
t
est
ingph
asei
nth
epr
ese
nceoft
hec
li
ent
.Th
esys
temi
swa
iti
ngf
ort
hec
li
entr
espon
se.

7.
2Fu
tur
eSc
opeoft
hePr
oje
ct:

Th
isobj
ecti
sha
vin
gabr
oadf
utu
res
copea
sitc
anbee
xte
nde
dtopr
ovi
de s
endi
ng
me
ssa
gesonl
i
ne.Th
iss
yst
emc
anbei
mpl
eme
nte
dforon
li
nes
har
ingwi
thou
tth
ein
ter
ven
tion
oft
hea
uth
ori
ty.
Ifi
tisdon
esou
serc
anr
eadme
ssa
gesf
roma
nywh
erei
nth
ewor
ld.
Hec
an
r
eada
nywh
eref
rom i
slog
ina
ccou
nt,
SMTPs
erv
er.I
not
herwor
dst
hef
utu
res
copei
sto
pr
ovi
det
hebe
tte
rse
rvi
ce.

45
Ma
il
-Cl
i
ent

8.
BIBL
IOGRAPHY

8.
1Book
sRe
fer
red:

S
.no Au
thor Book
s Edi
ti
on
1
. S
che
ldt Compl
et
eRe
fer
enc
eJAV
A Fi
ft
hEdi
ti
on
2. Rog
erS
.Pr
ess
man S
oft
war
eEn
gin
eer
ing Fi
ft
hEdi
ti
on
3. Ul
l
man Obj
ectOr
ien
tedAn
alys
is Th
irdEdi
ti
on
a
ndDe
sig
n
4. Ba
lag
uru
swa
my Pr
ogr
ammi
ngi
nJAV
A Th
irdEdi
ti
on

8.
2We
bsi
te
sVi
si
te
d(URL
'S)
:

1
.www.
goog
le.
com
2.www.
wi
kepe
dia
.com
3.www.
sun
mic
ros
yst
ems
.c
om
4.www.
enc
ycl
ope
dia
.com

46

You might also like