Jump to content
c0smyn

[Borland Delphi] Fake Mailer

Recommended Posts

Posted

1. Adaugati pe form un Idsmtp, Idmessage, Memo si un button.

2. Dam 2click pe button si punem acest cod


with IdMessage1 do
begin

From.Address := 'fake_address@yahoo.com';
From.Name := 'fake_name';
Subject := 'Subject';
Sender.Address := 'fake_address@yahoo.com';
Sender.Name := 'fake_name';
ReplyTo[0].Address := 'fake_address@yahoo.com';
ReplyTo[0].Name := 'fake_name';
Recipients[0].Address := 'VICTIM_MAIL@yahoo.com';
ReceiptRecipient.Address := 'VICTIM_MAIL@yahoo.com';
Body := memo1.lines;

end;

with IdSMTP1 do
begin

Host := 'mail.hotmail.com';
UserName := 'your_user@hotmail.com';
Password := 'your_password';
Port := 25;
Connect;

{Send Mail}
IdSMTP1.Send(IdMessage1);
if connected = true then Disconnect;
ShowMessage('Mesaj Trimis!');
{Send Mail}

end;

Trebuie sa folositi indy 10 pentru a putea compila proiectu.

Enjoy ;)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...