<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5362068920538533449</id><updated>2011-10-13T22:57:00.174-07:00</updated><title type='text'>Programando de Tudo</title><subtitle type='html'>Blog para divulgação de dicas e curiosidades diversas na área de programação!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://programandodetudo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5362068920538533449/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://programandodetudo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Nei</name><uri>http://www.blogger.com/profile/00653971576909990482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-9XdsYPIibJM/ThxeACIfO-I/AAAAAAAAAFA/QBgkTZSVWxg/s220/003.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5362068920538533449.post-5332803065063561234</id><published>2011-08-09T05:35:00.000-07:00</published><updated>2011-08-09T06:04:07.608-07:00</updated><title type='text'>Templates Gratuitos Joomla</title><content type='html'>Pra quem gosta de desenvolver sites utilizando Joomla, esse site possui vários templates gratuitos:&amp;nbsp;&lt;a href="http://www.gelono.com/"&gt;http://www.gelono.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Eu não testei todos, mas os que testei eram realmente gratuitos, sem aquelas restrições como um título enorme no lugar onde deveria ser o nome do site.&lt;br /&gt;No máximo tinha um rodapé padrão e um "powered by joomla", mas que podem ser facilmente removido editando o template em "extensions" e clicando em cima do seu template. Depois é só ir em "Edit HTML" e apagar ou comentar a linha que tem "$sg = 'banner'; include..." e modificar ou apagar o conteúdo da div "footer".&lt;br /&gt;Bom, fica aí a dica! Qualquer besteira que eu tenha dito aqui, entre em contato pra me corrigir, rsrsrs!&lt;br /&gt;&lt;br /&gt;Abraços!&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5362068920538533449-5332803065063561234?l=programandodetudo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programandodetudo.blogspot.com/feeds/5332803065063561234/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programandodetudo.blogspot.com/2011/08/templates-gratuitos-joomla.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5362068920538533449/posts/default/5332803065063561234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5362068920538533449/posts/default/5332803065063561234'/><link rel='alternate' type='text/html' href='http://programandodetudo.blogspot.com/2011/08/templates-gratuitos-joomla.html' title='Templates Gratuitos Joomla'/><author><name>Nei</name><uri>http://www.blogger.com/profile/00653971576909990482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-9XdsYPIibJM/ThxeACIfO-I/AAAAAAAAAFA/QBgkTZSVWxg/s220/003.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5362068920538533449.post-1274944130280068062</id><published>2011-07-18T07:59:00.000-07:00</published><updated>2011-07-18T08:32:28.943-07:00</updated><title type='text'>Inversor de Palavras</title><content type='html'>Ótima solução para aqueles links que estão invertidos para dificultar o download.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://4.bp.blogspot.com/-KzOcrlLn1FY/TiRKK9gwSEI/AAAAAAAAAFc/ColQpkzdrN4/s1600/inversordepalavras.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="192" src="http://4.bp.blogspot.com/-KzOcrlLn1FY/TiRKK9gwSEI/AAAAAAAAAFc/ColQpkzdrN4/s320/inversordepalavras.gif" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.4shared.com/file/A71RgcDx/Inversor_de_Palavras.html"&gt;Clique aqui para fazer o download do Inversor de Palavras!&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5362068920538533449-1274944130280068062?l=programandodetudo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programandodetudo.blogspot.com/feeds/1274944130280068062/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programandodetudo.blogspot.com/2011/07/inversor-de-palavras.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5362068920538533449/posts/default/1274944130280068062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5362068920538533449/posts/default/1274944130280068062'/><link rel='alternate' type='text/html' href='http://programandodetudo.blogspot.com/2011/07/inversor-de-palavras.html' title='Inversor de Palavras'/><author><name>Nei</name><uri>http://www.blogger.com/profile/00653971576909990482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-9XdsYPIibJM/ThxeACIfO-I/AAAAAAAAAFA/QBgkTZSVWxg/s220/003.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-KzOcrlLn1FY/TiRKK9gwSEI/AAAAAAAAAFc/ColQpkzdrN4/s72-c/inversordepalavras.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5362068920538533449.post-7680701395275325338</id><published>2011-07-17T22:07:00.000-07:00</published><updated>2011-07-18T10:50:04.396-07:00</updated><title type='text'>Agenda de Contas 1.2</title><content type='html'>Sabe quando você procura um arquivo pra baixar e, bem na hora de fazer o download, o site informa que é necessário fazer um cadastro primeiro?&lt;br /&gt;Pois é! Muitas vezes eu fazia o cadastro rapidinho apenas para baixar um arquivo ou visualizar um link e nem me importava em lembrar detalhes como&amp;nbsp;Email&amp;nbsp;que usei para cadastro, usuário, senha, etc.&lt;br /&gt;Ou ainda eu anotava tudo num bloco de notas, mas na hora de procurar algo era um pouco incômodo.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-7S3TDVSKLgg/TiRR6GDpZfI/AAAAAAAAAFg/0KftZ0shiNQ/s1600/agenda.gif" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/-7S3TDVSKLgg/TiRR6GDpZfI/AAAAAAAAAFg/0KftZ0shiNQ/s400/agenda.gif" width="275" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Enfim, pensando em fazer algo específico e prático para nunca mais perder os dados de uma conta, resolvi fazer uma agenda. Agora, toda vez que vou me cadastrar em algum site, abro a agenda e anoto as informações mais importantes que utilizei, como usuário, senha,&amp;nbsp;Email, url do site, etc.&lt;br /&gt;&lt;br /&gt;Quando fiz a agenda, algumas pessoas que estudavam comigo se interessaram e disseram que também tinham problemas na hora de lembrar os dados de seus cadastros na internet.&lt;br /&gt;&lt;br /&gt;Quem também se preocupa com segurança e prefere não utilizar o mesmo email, usuário e senha para todas as contas na web, &lt;a href="http://www.4shared.com/file/xB4e0qZc/Agenda_de_Contas_12.html"&gt;faça download da Agenda de Contas clicando aqui!&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;É fácil, rápido e de graça! Aproveitem!&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;&lt;i&gt;Compatível com Windows XP, Windows 7 e Windows Vista.&lt;/i&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5362068920538533449-7680701395275325338?l=programandodetudo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programandodetudo.blogspot.com/feeds/7680701395275325338/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programandodetudo.blogspot.com/2011/07/agenda-de-contas-12.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5362068920538533449/posts/default/7680701395275325338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5362068920538533449/posts/default/7680701395275325338'/><link rel='alternate' type='text/html' href='http://programandodetudo.blogspot.com/2011/07/agenda-de-contas-12.html' title='Agenda de Contas 1.2'/><author><name>Nei</name><uri>http://www.blogger.com/profile/00653971576909990482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-9XdsYPIibJM/ThxeACIfO-I/AAAAAAAAAFA/QBgkTZSVWxg/s220/003.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-7S3TDVSKLgg/TiRR6GDpZfI/AAAAAAAAAFg/0KftZ0shiNQ/s72-c/agenda.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5362068920538533449.post-1402657734682382652</id><published>2011-07-09T10:23:00.001-07:00</published><updated>2011-07-18T08:15:36.426-07:00</updated><title type='text'>Enviando Email com Programa Feito em Delphi 2009</title><content type='html'>Vou demonstrar de forma simples como fazer um programa em Delphi que envia mensagem de uma conta do gmail.&lt;br /&gt;Fiz esse tutorial porque a um tempo atrás eu precisei fazer um programa que fizesse isso e percebi que, por mais que hajam tutoriais e mais tutoriais sobre isso, um número enorme de pessoas tem dificuldade devido a diversos fatores, como por exemplo, onde encontrar as dll's necessárias, que versão do Delphi utilizar, qual conta de e-mail pode-se utilizar para enviar as mensagens, etc.&lt;br /&gt;Aqui vou tentar não só mostrar o caminho das pedras, mas também segurar a mão, levar pelo caminho e ainda deixar um mapa! (rsrsrs)&lt;br /&gt;&lt;br /&gt;Bom, primeiramente tenha em mão (ou, em computador):&lt;br /&gt;&lt;br /&gt;Sistema Operacional Windows XP Serviçe Pack 3;&lt;br /&gt;Delphi 2009; Download do Delphi 2009&lt;br /&gt;Uma conta no Gmail;&lt;br /&gt;Palettas Standart, Indy Clients, Indy I/O Handlers e Indy Misc;&lt;br /&gt;Arquivos libeay32.dll e ssleay32.dll; &lt;a href="http://www.4shared.com/file/dZKXRsPG/dlls.html"&gt;Download das dll's&lt;/a&gt;&lt;br /&gt;Não baixe as dll's de outro lugar, pois existem &amp;nbsp;outras com o mesmo nome mas&amp;nbsp;incompatíveis.&lt;br /&gt;&lt;i&gt;(essa é a lista do que eu utilizei e funcionou, se for usar outras versões, será por sua conta e risco)&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Primeiramente você precisará ter uma conta no Gmail e ativar o POP e IMAP dela.&lt;br /&gt;Para isso, acesse sua conta no Gmail.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-eAghIGu5Iwk/ThiLh8RVZeI/AAAAAAAAAEk/BFw8j2xiYYs/s1600/engrenagem.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-eAghIGu5Iwk/ThiLh8RVZeI/AAAAAAAAAEk/BFw8j2xiYYs/s1600/engrenagem.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;Depois, clique no desenho da engrenagem no canto direito superior da tela, como mostra a figura:&lt;br /&gt;&lt;br /&gt;Clique em Configurações do Google Mail.&lt;br /&gt;&lt;br /&gt;Agora vá para a aba Encaminhamento e POP/IMAP e marque&amp;nbsp;&lt;i&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; color: #1a2022; font-family: arial, sans-serif; font-size: 13px;"&gt;Ativar POP para&lt;/span&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; color: #1a2022; font-family: arial, sans-serif; font-size: 13px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; color: #1a2022; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;span class="rQ"&gt;todos os e-mails&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; color: #1a2022; font-family: arial, sans-serif; font-size: 13px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; color: #1a2022; font-family: arial, sans-serif; font-size: 13px;"&gt;(mesmo os que já foram baixados) e&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; color: #1a2022; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;i&gt;&lt;b&gt;Ativar IMAP&lt;/b&gt;&lt;/i&gt;.&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-Rcbxvt3CGT4/ThiMezKwhoI/AAAAAAAAAEs/IDGWxRHkLAQ/s1600/confggmail.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="331" src="http://1.bp.blogspot.com/-Rcbxvt3CGT4/ThiMezKwhoI/AAAAAAAAAEs/IDGWxRHkLAQ/s640/confggmail.jpg" width="600" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; color: #1a2022; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Feito isso, você ativou sua conta do Gmail para que seu programa possa acessá-la.&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #1a2022; font-family: arial, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;Abra o Delphi 2009, depois clique em File/New/VCL Forms Application - Delphi.&lt;/div&gt;&lt;div&gt;Depois, clique em File, Save All e crie uma pasta com o nome que desejar e salve seu projeto dentro dela. Salve com o nome que foi sugerido pelo próprio Delphi.&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/--bHyoFf6naY/ThiH4NiTxMI/AAAAAAAAAEQ/lzzix1Fua_A/s1600/mapa+do+delphi.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="379" src="http://4.bp.blogspot.com/--bHyoFf6naY/ThiH4NiTxMI/AAAAAAAAAEQ/lzzix1Fua_A/s640/mapa+do+delphi.jpg" width="600" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;i&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; color: #1a2022; font-family: arial, sans-serif; font-size: 13px;"&gt;Um mapa do Delphi 2009 aberto. Em vermelho o nome das ferramentas que iremos utilizar.&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;i&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; color: #1a2022; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;div&gt;Em seguida, em &lt;span class="Apple-style-span" style="color: red;"&gt;&lt;b&gt;Tool Palette&lt;/b&gt;&lt;/span&gt;, vá na paletta Indy Clients e clique em TIdSMTP. Agora clique no seu form para que esse componente seja inserido nele.&amp;nbsp;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-lK6f-1SmAMY/ThiIo5HzUGI/AAAAAAAAAEY/wXGF3SC1mfc/s1600/object+inspector.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-lK6f-1SmAMY/ThiIo5HzUGI/AAAAAAAAAEY/wXGF3SC1mfc/s320/object+inspector.jpg" width="211" /&gt;&lt;/a&gt;&lt;/div&gt;Com o TIdSMTP selecionado, vá em &lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Object Inspector&lt;/span&gt;&lt;/b&gt; na propriedade Name, apague o que estiver escrito e digite ClienteSMTP. Assim você renomeou o componente de seu form.&lt;br /&gt;&lt;br /&gt;Abra a paletta Indy I/O Handlers e clique no componente TIdSSLIOHandlerSocketOpenSSL e clique no form para inserir mais esse componente.&lt;br /&gt;Como fizemos anteriormente, com o componente selecionado vá em &lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Object Inspector&lt;/span&gt;&lt;/b&gt; na propriedade Name e renomeie para SSLHandlerSMTP.&lt;br /&gt;&lt;br /&gt;Agora, na paletta Indy Misc, Cliqeu em TIdMessage e coloque-o no form.&lt;br /&gt;Vá em Object Inspector em Name e renomeie para IdMessage1 (é provável que já esteja assim).&lt;br /&gt;&lt;br /&gt;Agora vá na paletta Standard e Clique em TButton e coloque-o em seu form.&lt;br /&gt;&lt;br /&gt;Seu Form deve estar com uma aparência como a da figura abaixo:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-F-1NRZAo6iE/ThiOJW4VqfI/AAAAAAAAAEw/kt19tM5zro0/s1600/form.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="277" src="http://1.bp.blogspot.com/-F-1NRZAo6iE/ThiOJW4VqfI/AAAAAAAAAEw/kt19tM5zro0/s400/form.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-fKbHB6oZvso/ThiIvgNKExI/AAAAAAAAAEc/zLj6jQMiER4/s1600/project+manager.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-fKbHB6oZvso/ThiIvgNKExI/AAAAAAAAAEc/zLj6jQMiER4/s320/project+manager.jpg" width="257" /&gt;&lt;/a&gt;&lt;/div&gt;Em &lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Project Manager&lt;/span&gt;&lt;/b&gt;, Dê clique duplo em Unit1.pas para que o código do seu programa seja exibido.&lt;br /&gt;&lt;br /&gt;Feito isso, selecione o código do início dele até o nome &lt;i&gt;&lt;b&gt;implementation&lt;/b&gt;&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;Substitua tudo pelo código abaixo:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;unit Unit1;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;interface&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;uses&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp;Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp;Dialogs, StdCtrls, IdIOHandler, IdIOHandlerSocket, IdIOHandlerStack, IdSSL,&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp;IdSSLOpenSSL, IdMessage, IdBaseComponent, IdComponent, IdTCPConnection,&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp;IdTCPClient, IdExplicitTLSClientServerBase, IdMessageClient, IdSMTPBase,&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp;IdSMTP;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;type&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; // a definição fica TOTALMENTE FORA da definição do formulário&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; TParametrosEmail = record&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; SMTPHost, SMTPUsername, SMTPPassword: string;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; SMTPConta, SMTPNomeExibicao, SMTPDestinatarios: string;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; SMTPAutenticacao, SMTPSSL: boolean;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; SMTPPorta: integer;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; end;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; TForm1 = class(TForm)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; ClienteSMTP: TIdSMTP;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; IdMessage1: TIdMessage;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; SSLHandlerSMTP: TIdSSLIOHandlerSocketOpenSSL;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; Button1: TButton;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; procedure Button1Click(Sender: TObject);&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; procedure FormCreate(Sender: TObject);&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; private&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; { Private declarations }&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; FParametrosEmail: TParametrosEmail; // declaracao da variável&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; public&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; { Public declarations }&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; end;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;var&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; Form1: TForm1;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;implementation&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Depois disso vá novamente em &lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Project Manager&lt;/span&gt;&lt;/b&gt; e de clique duplo em Unit1.dfm, para abrir o seu form novamente.&lt;br /&gt;Agora, de um duplo clique em cima do TButton que adicionamos anteriormente ao formulário.&lt;br /&gt;Se você clicou corretamente, agora estará vendo um código parecido com este:&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;i&gt;procedure TForm1.Button1Click(Sender: TObject);&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;i&gt;begin&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;i&gt;end;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Substitua este código pelo código abaixo:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;procedure TForm1.Button1Click(Sender: TObject);&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;var&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; AutenticouSMTP: boolean;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;begin&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; //** configura SMTP **&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; if ClienteSMTP.Connected then&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; try&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ClienteSMTP.Disconnect;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; except&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; end;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; ClienteSMTP.Host := FParametrosEmail.SMTPHost; // atribui o host (pop.gmail.com)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; ClienteSMTP.Port := FParametrosEmail.SMTPPorta; // atribui a porta (465)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; if FParametrosEmail.SMTPAutenticacao then // se requer autenticacao&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; begin&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; ClienteSMTP.Username := FParametrosEmail.SMTPUsername; // atribui o nome do usuario&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; ClienteSMTP.Password := FParametrosEmail.SMTPPassword; // atribui a senha&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; end&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; else&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; begin // se não requer autenticacao&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; ClienteSMTP.Username := ''; // limpa o usuario&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; ClienteSMTP.Password := ''; // limpa a senha&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; end;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; if FParametrosEmail.SMTPSSL then // se requer conexao segura&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; begin&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; ClienteSMTP.IOHandler := SSLHandlerSMTP; // vincula o manipulador de SMTP ao cliente SMTP&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; ClienteSMTP.UseTLS := utUseImplicitTLS; // atribui ao cliente SMTP o suporte implícito a TLS&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; SSLHandlerSMTP.Port := ClienteSMTP.Port; // atribui a porta ao manipulador (igual a do cliente FTP)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; SSLHandlerSMTP.Destination := ClienteSMTP.Host + ':' + IntToStr(ClienteSMTP.Port); // indica o destino da conexão (pop.gmail.com:465)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; SSLHandlerSMTP.Host := ClienteSMTP.Host; // atribui o host (pop.gmail.com)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; end&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; else&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; begin // se não requer conexao segura&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; ClienteSMTP.IOHandler := nil; // desvincula o manipulador de SMTP&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; ClienteSMTP.UseTLS := utNoTLSSupport; // indica que nao ha suporte a TLS&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; end;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; AutenticouSMTP := False; // variavel para indicar se a autenticacao foi bem sucedida&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; // *** montagem da mensagem ***&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; // ****************************&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; // cabecalho&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Clear;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.ContentType := 'text/html';&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.From.Address := FParametrosEmail.SMTPConta; // conta do remetente&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.From.Name := FParametrosEmail.SMTPNomeExibicao; // nome do remetente&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Recipients.EMailAddresses := FParametrosEmail.SMTPDestinatarios; // destinatarios (separados por vírgula! não é ponto e vírgula!)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Subject := 'Envio de email automatico'; // assunto&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; // corpo do email&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Clear;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Add('&amp;lt;html&amp;gt;');&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Add(' &amp;nbsp; &amp;nbsp;&amp;lt;body&amp;gt;');&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Add(' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;h4&amp;gt;SISTEMA DE EMAIL AUTOMATICO&amp;lt;/h4&amp;gt;');&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Add(' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;font face="Verdana" size=2&amp;gt;');&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Add(' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Teste de envio de email');&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Add(' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;hr size=1 noshade&amp;gt;');&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Add(' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;font face="Courier New" size=2&amp;gt;');&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Add('Isto é somente um exemplo que você pode tomar como base para gerar as suas mensagens');&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Add(' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/font&amp;gt;');&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Add(' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;b&amp;gt;&amp;lt;font face="Tahoma" size=2 color="black"&amp;gt;');&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Add(' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;hr size=1 noshade&amp;gt;');&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Add(' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;EMITIDO AUTOMATICAMENTE PELO SISTEMA&amp;lt;br&amp;gt;');&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Add(' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;font color="blue"&amp;gt;');&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Add(' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Boa semana');&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Add(' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/font&amp;gt;');&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Add(' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;');&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Add(' &amp;nbsp; &amp;nbsp;&amp;lt;/body&amp;gt;');&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; IdMessage1.Body.Add('&amp;lt;/html&amp;gt;');&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; // efetua a conexao ao servidor SMTP&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; if not ClienteSMTP.Connected then&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; try&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ClienteSMTP.Connect; // conecta ao SMTP&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if FParametrosEmail.SMTPAutenticacao then // se requer autenticacao&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AutenticouSMTP := ClienteSMTP.Authenticate // efetua a atenticacao e retorna o resultado para a variável&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; else // se nao requer autenticacao&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AutenticouSMTP := True; // assume que a conexao foi bem sucedida&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; except&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; on E:Exception do // em caso de erro gera um log com a mensagem de erro&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ShowMessage('Não foi possível conectar ao servidor SMTP: '+E.Message);&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; end;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; // se a conexao foi bem sucedida, envia a mensagem&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; if AutenticouSMTP and ClienteSMTP.Connected then&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; ClienteSMTP.Send(IdMessage1);&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; // depois de tudo pronto, desconecta do servidor SMTP&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; if ClienteSMTP.Connected then&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; ClienteSMTP.Disconnect;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;end;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Novamente, em &lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Project Manager&lt;/span&gt;&lt;/b&gt;, de duplo clique sobre Unit1.dfm para que seu form seja exibido na tela.&lt;br /&gt;Agora de um clique em alguma parte vazia do form, vá em &lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Object Inspector&lt;/span&gt;&lt;/b&gt; na aba Events e de duplo clique em frente ao nome OnCreate.&lt;br /&gt;Se fez corretamente, seu código foi exibido novamente e agora você está vendo um código como este:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;procedure TForm1.FormCreate(Sender: TObject);&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;begin&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;end;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Substitua esse código pelo abaixo:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;procedure TForm1.FormCreate(Sender: TObject);&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;begin&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;FParametrosEmail.SMTPConta := 'meuemail@gmail.com'; //email completo&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; FParametrosEmail.SMTPNomeExibicao := 'Meu Nome';&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; FParametrosEmail.SMTPPassword := 'minhasenha';&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; FParametrosEmail.SMTPUsername := 'meuusuario'; //não coloque o @gmail.com&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; FParametrosEmail.SMTPHost := 'pop.gmail.com';&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; FParametrosEmail.SMTPPorta := 465;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; FParametrosEmail.SMTPAutenticacao := True; // requer autenticacao&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; FParametrosEmail.SMTPSSL := True; // requer conexao segura&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; // destinatarios separados por virgula&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; FParametrosEmail.SMTPDestinatarios := 'fulanodetal@gmail.com, ciclanodetal@ig.com.br';&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;end;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Agora, na pasta onde você salvou seu projeto, coloque os arquivos libeay32.dll e ssleay32.dll.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-VJxpNLqp58U/ThiI9m-BlQI/AAAAAAAAAEg/WTkaUA8jdrw/s1600/run.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-VJxpNLqp58U/ThiI9m-BlQI/AAAAAAAAAEg/WTkaUA8jdrw/s1600/run.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;Volte para o Delphi e clique no &lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;botão verde para compilar o programa&lt;/span&gt;&lt;/b&gt; (ou aperte F9).&lt;br /&gt;&lt;br /&gt;Você deve estar vendo um programa vazio com apenas um botão chamado Button1, certo? clique nele.&lt;br /&gt;Se tiver funcionado, o botão ficará pressionado por um tempo e depois voltará ao normal. Agora é só checar a caixa de e-mail para onde você enviou a mensagem.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Caso tenha perdido o fio da meada durante o tutorial, disponibilizei aqui o programa funcionando, bastando acessá-lo pelo Delphi e modificar o código colocando os dados do seu email, como usuário, senha, email, etc.&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Não se esqueça de ativar o POP e o IMAP de seu Gmail antes de testar, do contrário o programa não funcionará!&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;a href="http://www.4shared.com/file/1noBdNJM/enviamensagemparaemail.html"&gt;Download do programa funcionando juntamente com as dll's&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5362068920538533449-1402657734682382652?l=programandodetudo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programandodetudo.blogspot.com/feeds/1402657734682382652/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://programandodetudo.blogspot.com/2011/07/enviando-email-com-programa-feito-em.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5362068920538533449/posts/default/1402657734682382652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5362068920538533449/posts/default/1402657734682382652'/><link rel='alternate' type='text/html' href='http://programandodetudo.blogspot.com/2011/07/enviando-email-com-programa-feito-em.html' title='Enviando Email com Programa Feito em Delphi 2009'/><author><name>Nei</name><uri>http://www.blogger.com/profile/00653971576909990482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-9XdsYPIibJM/ThxeACIfO-I/AAAAAAAAAFA/QBgkTZSVWxg/s220/003.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-eAghIGu5Iwk/ThiLh8RVZeI/AAAAAAAAAEk/BFw8j2xiYYs/s72-c/engrenagem.jpg' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
