Árvore de páginas

Como realizo um teste de envio de email em servidores que exigem autenticação (TLS\SSL)?

Resposta:
Para realizar teste de envio de email em servidores que exigem autenticação, utilize o comando abaixo:

C:\AST\Email\mailsend\mailsend.exe +cc +bc -name "Teste Email" -f [email protected] -t [email protected] -sub "Escreva o assunto do email" -M "Escreva o corpo do email" -attach <nome do arquivo a se anexado> -smtp <IP do servidor de email> -port <numero da porta> -starttls -auth-login -user <dominio e usuario da rede (sepados por "\")> -pass <senha da rede>

Parâmetros utilizados (extraídos do sendmail):

-smtp hostname/IP*                                               - of the SMTP server
-port SMTP port                                                     - SMTP port
-t    to,to..*                                                             - email address/es of the reciepient/s
+cc                                                                       - don't ask for Carbon Copy
+bc                                                                       - don't ask for Blind carbon copy
-f    address*                                                          - email address of the sender
-sub  subject                                                          - subject
-attach file,mime_type,[i/a] (i=inline,a=attachment)    - attach this file as attachment or inline
-M    "one line msg"                                                - attach this one line text message
-name "Full Name"                                                 - add name in the From header
-starttls                                                                 - Check for STARTTLS and if server supports, do it
-auth-login                                                             - use AUTH LOGIN authentication
-user username                                                      - username for ESMTP authentication
-pass password                                                     - password for ESMTP authentication

Ex:
C:\temp\mailsend.exe +cc +bc -name "Teste Email" -f [email protected] -t [email protected] -sub "Teste envio email " -M "CORPO_DO_EMAIL" -attach C:\temp\TesteMail.txt -smtp 10.80.145.119 -port 587 -starttls -auth-login -user jv01\tomas.silva -pass tomas@123
 
OBS: O “mailsend” é um software free e pode ser baixado na internet (Ex: http://mailsend.findmysoft.com/download/).