agora estou tento esse erro ao enviar, como se ve é problema de autenticacao
O que poderia ser ??
Error: AUTH LOGIN failed: '535 Incorrect authentication data'
bat que manda
@ mailsend -v -info -from faturamento@empresa.com.br -to meuemail@gmail.com -smtp mail.empresa.com.br -sub "Assunto" -starttls -port 587 -auth -portsmtp 587 -log log.txt -user faturamento@empresa.com.br -pass "senha"
e tem essa para porta 465
@ mailsend -v -info -from faturamento@empresa.com.br -to meuemail@gmail.com -smtp mail.empresa.com.br -sub "Assunto" -ssl -port 465 -auth -portsmtp 465 -log log.txt -user faturamento@empresa.com.br -pass "senha"
Log da operacao:
26-set-2022 13:52:08.655: Will detect IPv4 or IPv6 automatically
26-set-2022 13:52:08.718:
26-set-2022 13:52:08.718:
26-set-2022 13:52:08.718:
26-set-2022 13:52:08.718: [C] EHLO localhost
26-set-2022 13:52:08.733:
26-set-2022 13:52:08.733:
26-set-2022 13:52:08.733:
26-set-2022 13:52:08.733:
26-set-2022 13:52:08.749:
26-set-2022 13:52:08.749:
26-set-2022 13:52:08.749:
26-set-2022 13:52:08.749: [S] 250 HELP
26-set-2022 13:52:08.749: [C] STARTTLS
26-set-2022 13:52:08.764: [S] 220 TLS go ahead
26-set-2022 13:52:08.842: [C] EHLO localhost
26-set-2022 13:52:08.858: [S] 250-br34.valueserver.com.br Hello localhost [179.190.122.246]
26-set-2022 13:52:08.858: [S] 250-SIZE 52428800
26-set-2022 13:52:08.858: [S] 250-8BITMIME
26-set-2022 13:52:08.858: [S] 250-PIPELINING
26-set-2022 13:52:08.858: [S] 250-PIPE_CONNECT
26-set-2022 13:52:08.858: [S] 250-AUTH PLAIN LOGIN
26-set-2022 13:52:08.858: [S] 250 HELP
26-set-2022 13:52:08.858: [C] QUIT
26-set-2022 13:52:09.108: [S] 221 br34.valueserver.com.br closing connection
Opcoes do aplicativo mailsend
Version: @(#) mailsend v1.20b
Copyright: BSD. It is illegal to use this software for Spamming
(Compiled with OpenSSL version: OpenSSL 1.0.2h 3 May 2016)
usage: mailsend [options]
Where the options are:
-copyright - show copyright information
-4 - Force to use IPv4 address of SMTP server
-6 - Force to use IPv6 address of SMTP server
-smtp hostname/IP* - Hostname/IP address of the SMTP server
-port SMTP port - SMTP port
-domain domain - domain name for SMTP HELO/EHLO
-t to,to..* - email address/es of the recipient/s
-cc cc,cc.. - carbon copy address/es
+cc - do not ask for Carbon Copy
-ct seconds - Connect timeout. Default is 5 seconds
-read-timeout seconds - Read timeout. Default is 5 seconds
-bc bcc,bcc.. - blind carbon copy address/es
+bc - do not ask for Blind carbon copy
+D - do not add Date header
-f address* - email address of the sender
-sub subject - subject
-list_address file - a file containing a list of email addresses
-log file - write log messages to this file
-cs character set - for text/plain attachments (default is us-ascii)
-separator character - separator used with -attach. Default is comma (,) If used must be specified before -attach
-enc-type type - encoding type. base64, 8bit, 7bit etc. Default is base64. Special type is "none"
-aname name - name of the attachment. Default is filename
-content-id id - content-id in the attachment
-mime-type type - MIME type
-dispostion val - "attachment" or "inline". Default is "attachment"
-attach file,mime_type,[i/a] (i=inline,a=attachment)
- attach this file as attachment or inline
-show-attach - show attachment in verbose mode, default is no
-show-mime-types - show the compiled in MIME types
-M "one line msg" - attach this one line text message
-content-type type - Content type. Default: multipart/mixed
-msg-body path - Path of the file to include as body of mail
-embed-image image - Path of image to embed in HTML
-H "header" - Add custom Header
-name "Full Name" - add name in the From header
-v - verbose mode
-V - show version info
-w - wait for a CR after sending the mail
-rt email_address - add Reply-To header
-rrr email_address - request read receipts to this address
-rp - return-path address
-ssl - SMTP over SSL
-starttls - use STARTTLS if the server supports it
-auth - try CRAM-MD5,LOGIN,PLAIN in that order
-auth-cram-md5 - use AUTH CRAM-MD5 authentication
-auth-plain - use AUTH PLAIN authentication
-auth-login - use AUTH LOGIN authentication
-user username - username for ESMTP authentication
-pass password - password for ESMTP authentication
-example - show examples
-ehlo - force EHLO
-info - show SMTP server information
-help - shows this help
-q - quiet
The options with * must be specified
Environment variables:
SMTP_USER_PASS for plain text password (-pass)


