Coder Social home page Coder Social logo

mail4delphi's Introduction

Delphi Supported Versions Lazarus Supported Versions Platforms Realese Contributors Bugs Stars Forks License


Mail4Delphi uses the Indy component to send the email.!
Compatible with Lazarus/FPC



Donate

Prerequisites

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

Boss Installation

  • [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
    .From('from', 'name')
    .SSL(true)
    .Host('host')
    .Port(443)
    .Auth(true)
    .UserName('user')
    .Password('pass')
    .ReceiptRecipient(false)
    .AddTo('to', 'name')
    .AddCC('cc', 'name')
    .AddBCC('cco', 'name')    
    .Subject('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.

mail4delphi's People

Contributors

juliosenha avatar viniciussanchez avatar afarias-br avatar plimsistemas avatar mateusvicente100 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.