Giter VIP home page Giter VIP logo

delmardelima / temailsender Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 3.0 38 KB

O TEmailSender é uma classe simples para enviar e-mails a partir de aplicativos Delphi. Com configurações fáceis para servidor SMTP, remetente, destinatário, assunto e corpo da mensagem, além de suporte a anexos de arquivos. Este repositório inclui uma implementação completa e exemplos de uso. Envie e-mails com facilidade em suas aplicações Delphi.

License: GNU General Public License v3.0

Pascal 52.03% HTML 47.97%

temailsender's Introduction

TEmailSender - Delphi Email Sending Class

TEmailSender is a simple Delphi class for sending emails from Delphi applications. With easy-to-set configurations for SMTP server, sender, recipient, subject, and message body, and support for file attachments, sending emails has never been easier. This repository includes a complete implementation of the TEmailSender class and usage examples to help you get started quickly.

TEmailSender - Classe de Envio de E-mail Delphi

O TEmailSender é uma classe simples para enviar e-mails a partir de aplicações Delphi. Com configurações fáceis para servidor SMTP, remetente, destinatário, assunto e corpo da mensagem, e suporte a anexos de arquivos, o envio de e-mails nunca foi tão fácil. Este repositório inclui uma implementação completa da classe TEmailSender e exemplos de uso para ajudá-lo a começar rapidamente.

Features

  • Easy-to-use interface
  • Support for SMTP server configuration
  • Support for sender, recipient, subject, and message body
  • Support for file attachments

Recursos

  • Interface fácil de usar
  • Suporte à configuração do servidor SMTP
  • Suporte a remetente, destinatário, assunto e corpo da mensagem
  • Suporte a anexos de arquivos

Requirements

  • Delphi 7 or later
  • Indy 10 or later

Requisitos

  • Delphi 7 ou posterior
  • Indy 10 ou posterior

Installation

  1. Download the EmailSender.pas file.
  2. Add the file to your Delphi project.
  3. In the uses section of your project, add EmailSender to the list of units.
  4. Start using the EmailSender class in your code.

Instalação

  1. Baixe o arquivo EmailSender.pas.
  2. Adicione o arquivo ao seu projeto Delphi.
  3. Na seção "uses" do seu projeto, adicione EmailSender à lista de unidades.
  4. Comece a usar a classe EmailSender no seu código.

Usage

Here's an example of how to use the TEmailSender class:

var
  email:TEmailSender;
begin
  email := TEmailSender.Create;
  try
    email.SMTPHost := 'smtp.yourserver.com';
    email.SMTPPort := 587;
    email.SMTPUsername := '[email protected]';
    email.SMTPPassword := 'yourpassword';
    email.FromAddress := '[email protected]';
    email.ToAddress := '[email protected]';
    email.Subject := 'Test email with attachment';
    email.Body := 'This is a test email with attachment';
    email.AttachmentFilePath := 'c:\attachedfile.pdf';
    try
      email.SendEmail;
    except
      on E: Exception do
        ShowMessage('Error sending email: ' + E.Message);
    end;
  finally
    email.Free;
  end;
end;

Uso

Aqui está um exemplo de como usar a classe TEmailSender:

var
  email: TEmailSender;
begin
  email := TEmailSender.Create;
  try
    email.SMTPHost := 'smtp.seuservidor.com';
    email.SMTPPort := 587;
    email.SMTPUsername := '[email protected]';
    email.SMTPPassword := 'suasenha';
    email.FromAddress := '[email protected]';
    email.ToAddress := '[email protected]';
    email.Subject := 'Teste de envio de e-mail com anexo';
    email.Body := 'Este é um teste de envio de e-mail com anexo';
    email.AttachmentFilePath := 'c:\arquivoanexo.pdf';
    try
      email.SendEmail;
    except
      on E: Exception do
        ShowMessage('Erro ao enviar e-mail: ' + E.Message);
    end;
  finally
    email.Free;
  end;
end;

Delmar de Lima (Cortes DEV)

Support

Get in touch with us for any questions or inquiries through WhatsApp: https://wa.me/5597991442486

Suporte

Entre em contato conosco para qualquer dúvida ou pergunta pelo WhatsApp: https://wa.me/5597991442486

Donations

Donate via PIX:

Cell: (97) 99144-2486

Doações

Faça sua doação via PIX:

Celular: (97) 99144-2486

Connect with us

Conecte-se com a gente

Get to know us better on our YouTube channel:
>> FIND OUT MORE

Conheça mais sobre nós em nosso canal no YouTube:
>> CONHEÇA MAIS

License

This project is licensed under the GPL-3.0 License. See LICENSE for more details.

Licença

Este projeto está licenciado sob a Licença GPL-3.0. Veja LICENSE para mais detalhes.

temailsender's People

Contributors

delmardelima avatar

Stargazers

Guile Lindroth avatar Vlad  avatar  avatar

Watchers

 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.