Este repositório é referente ao projeto de envio de e-mails em massa para a prática de e-mail marketing.
This project is responsible for carrying out mass emailing for Email Marketing practice. Because it is not a robust solution, it becomes an interesting feature to be implemented in even larger projects, such as a customer management system or a gym management system. In this way, the manager can integrate this solution to send e-mails to customers informing notices about invoices and voucher, for example.
The project consists of a C # Windows Forms application.
After cloning this project in your development environment, some initial configurations will be necessary for the program to run without errors.
In the Classes folder in Conexão.cs on the 13 line you will have to change the connection string (sqlConnection) to point to your SQL Server Database. Here is an example:
public SqlConnection sqlConnection = new SqlConnection (@ "ADD YOUR CONNECTION STRING");
In order for the “LISTA” button (btn_lista) to import the email list correctly, it will be necessary to create a Table in your SQL Server with the name “ListaEmails” containing the fields “NOME” and “EMAIL” in varchar format. See the SCRIPT for creating the table below:
CREATE TABLE [dbo]. [ListaEmails] (
[NOME] [varchar] (50) NOT NULL,
[EMAIL] [varchar] (80) NOT NULL
) ON [PRIMARY]
GO
Note the DataBase where this Table is inserted correctly in the connection string (sqlConnection).
In order for emails to be delivered correctly to recipients, it is necessary to pay attention to the “PORTA” and “SMTP” parameters that vary according to the email service used.
The project is configured to send e-mails where the linked account is part of Office, which includes the Outlook service.
It is also necessary to check the daily limit that your email provider offers, so that it does not exceed the limit and the package is successfully delivered to the recipient.
Below I will leave some “PORTA” and “SMTP” settings for the most used email services:
Este projeto é responsável por realizar envios de emails em massa para prática de Email Marketing. Por não ser uma solução robusta, ela se torna uma funcionalidade interessante para ser implementada em projetos ainda maiores, como um sistema gestor de clientes ou um sistema de gerenciamento de academia. Desta forma o gestor poderá integrar esta solução para enviar e-mails aos clientes informando avisos sobre faturas e vencimentos, por exemplo.
O projeto consiste em uma aplicação C# Windows Forms.
Após clonar esse projeto em seu ambiente de desenvolvimento, será necessário algumas configurações iniciais para que a execução do programa seja efetuada sem erros.
Na pasta Classes em Conexão.cs na 13ª você terá que alterar a string de conexão (sqlConnection) para apontar para o seu Banco de Dados SQL Server. Segue o exemplo:
public SqlConnection sqlConnection = new SqlConnection(@"ADICIONAR SUA STRING DE CONEXÃO");
Para que o botão “LISTA” (btn_lista) importe a lista de e-mails corretamente, será necessário criar uma Tabela no seu SQL Server com o nome “ListaEmails” contendo os campos “NOME” e “EMAIL” no formato varchar. Veja o SCRIPT de criação da tabela abaixo:
CREATE TABLE [dbo].[ListaEmails](
[NOME] [varchar](50) NOT NULL,
[EMAIL] [varchar](80) NOT NULL
) ON [PRIMARY]
GO
Atente-se de apontar o Banco onde esta Tabela está inserida corretamente na string de conexão (sqlConnection).
Para que os e-mails sejam entregues corrretamente aos destinatários é necessário se atentar aos parâmetros “PORTA” e “SMTP” que variam de acordo com o serviço de email usado.
O projeto está configurado para realizar o envio de e-mails onde a conta vinculada faz parte do Office, o que inclui o serviço Outlook.
É necessário também, verificar o limite diário que o seu provedor de e-mails oferta, para que não exceda o limite e o pacote seja entregue com sucesso ao distinatário.
Abaixo deixarei algumas configurações de “PORTA” e “SMTP” para os serviços de email mais utilizados: