Report

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Etong code na to ay ginawa gamit ang programming language na C# it creates a spam data from a

mailbox.

The program is going to start with a question na (update spam data? Press Y) if walang nilagay of
yung user na kahit anong text or maliban sa Y, mag return yung method at walang gagawin.

It creates a mailmessage object and list of mailmessage object para makapag store ng spam emails.

Gumagamit sya ng stringbuilder obeject to store the body text of each email.

Pop3client or (post office Protocol) Microsoft outlook, Mozilla thunderbird. Ginagamit sya para maka
receive ng email from a remove server and then send sa local client which is yung pop.gmail.com.

After nun mag set naman ng ssl property of the pop3cient sa true para ma enable yung ssl
connection at authentication mode property para makapili sya ng best authentication method.

Nag authenticate yung client by calling that authenticate method sa Boolean variable na bl.

If successful or true yung authentication, mag execute na yung program, mag execute na yung list of
email messages in the mailbox gamit yung Executelist method ng client.

Mag start nga mag loop yung list of email messages and mag retrieve na yung mga text of each email
gamit yung Getmessage method ng client with the index as parameter.

After nun mag add naman ng body text of each email to the string builder.

After matapos ma send lahat ng body of text sa email mag check naman yung spam.txt if existing sya
sa current directory, if oo, mag i-delete sya ng program para ma avoid yung appending sa existing
file.

Lahat ng conten ay masusulat sa sb

You might also like