Advertisement
RandomClear

How to send arbitraty e-mail - method #1

Feb 11th, 2013
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 1.04 KB | None | 0 0
  1. // See also: http://pastebin.com/Y9W9UK19 - "how to send arbitraty e-mail - method #2"
  2. // See also: http://pastebin.com/BR5iyxkW - "how to send arbitraty e-mail - method #3"
  3. // See also: http://pastebin.com/M5D57Naa - "how to send arbitraty e-mail - method #4"
  4. // See also: http://pastebin.com/MfLi4pbj - "how to send arbitrary e-mail with file attaches"
  5. // See also: http://pastebin.com/3Q1ykdSH - "how to send feedback instead of bug report"
  6. // See also: http://pastebin.com/jxKB2WDZ - "how to send arbitrary data to bug tracker"
  7.  
  8. // This code will work in any project - even without EurekaLog active
  9.  
  10. uses
  11.   ETypes, ESendMail, ESendMailSMTP;
  12.  
  13. procedure TForm1.Button1Click(Sender: TObject);
  14. begin
  15.   // This method will create a fake SMTP server for sending e-mail.
  16.   // Therefore, no account data (login/password) is required.
  17.   // However, this method is often blocked by firewalls and ISP, because this is how spam sending works.
  18.   EurekaLogSendEmail(esmSMTPServer, 'from-email@example.com', 'to-email@example.com', 'Subject', 'Body');
  19. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement