Skip to content

css-delphi/mail4delphi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mail4Delphi

Delphi Supported Versions Platforms

Mail4Delphi uses the Indy component to send the email.!

Prerequisites

  • [Required] You need to have the libeay32.dll and ssleay32.dll dynamic library files.

  • [Optional] For ease I recommend using the Boss (Dependency Manager for Delphi) for installation, simply by running the command below on a terminal (Windows PowerShell for example):

boss install github.com/juliosenha/mail4delphi

Manual Installation

If you choose to install manually, simply add the following folder to your project, in Project > Options > Resource Compiler > Directories and Conditionals > Include file search path

../mail4delphi/src

Getting Started

uses Mail4Delphi;

Send email

begin
  TMail.New
    .AddFrom('from', 'name')
    .SSL(true)
    .Host('host')
    .Port(443)
    .Auth(true)
    .UserName('user')
    .Password('pass')
    .ReceiptRecipient(false)
    .AddCC('cc', 'name')
    .AddBCC('cco', 'name')
    .AddTo('to', 'name')
    .AddSubject('subject')
    .AddBody('message')
    .AddAttachment(nil)
    .SendMail;
end;

Samples

Check out our sample project for each situation presented above in operation. If you have any questions or suggestion, please contact, make your pull request or create an issue.

Mail4Delphi

License

Mail4Delphi is free and open-source software licensed under the MIT License.

👉 Alone we go faster. Together we go further.

About

Mail4Delphi uses the Indy component to send the email.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Pascal 100.0%