none
SMTP via .BAT RRS feed

  • Pergunta

  • Srs;

    Tenho um .bat simples de tudo, que envia os emails de um programinha que fiz. O código é esse:

     

    "c:\c5\blats\BLat c:\intk\ntf\OCIOSA.TXT -to eliezer.ti@intertank.com.br -cc "xxx.xxx@intertank.com.br" -f yyy.yyy@intertank.com.br -s "Mapa de ucs ociosas no patio (Y12E37)" -server smtp.exchangemail.com.br -u zzz.zzz@intertank.com.br -pw VsMc1034 -debug -log blat.log -timestamp -port 587"

    A dúvida é, mudei para o embratel mail essa semana e, eles usam SMTP com segurança TLS. Como adicionar a informação de TLS neste comando ? Ja tentei:

    -timestamp -port 587 -TLS
    -timestamp -port 587 SMTP=TLS

    -timestamp -port 587 TLS

    Todas essas tentativas me retornaram o erro de falha de autenticação:

    ###########################################

    2015.06.18 12:00:03 (Thu)------------Start of Session-----------------
    Blat v2.4 w/GSS encryption (build : Jan 15 2005 08:32:11)
    2015.06.18 12:00:03 (Thu): <<<getline<<< 220 smtp.exchangemail.com.br Microsoft ESMTP MAIL Service ready at Thu, 18 Jun 2015 12:01:40 -0300
    2015.06.18 12:00:03 (Thu): >>>putline>>> EHLO ITK3404
    2015.06.18 12:00:03 (Thu): <<<getline<<< 250-smtp.exchangemail.com.br Hello [172.17.0.244]
    2015.06.18 12:00:03 (Thu): <<<getline<<< 250-SIZE 52428800
    2015.06.18 12:00:03 (Thu): <<<getline<<< 250-PIPELINING
    2015.06.18 12:00:03 (Thu): <<<getline<<< 250-DSN
    2015.06.18 12:00:03 (Thu): <<<getline<<< 250-ENHANCEDSTATUSCODES
    2015.06.18 12:00:03 (Thu): <<<getline<<< 250-STARTTLS
    2015.06.18 12:00:03 (Thu): <<<getline<<< 250-AUTH GSSAPI NTLM
    2015.06.18 12:00:03 (Thu): <<<getline<<< 250-8BITMIME
    2015.06.18 12:00:03 (Thu): <<<getline<<< 250-BINARYMIME
    2015.06.18 12:00:03 (Thu): <<<getline<<< 250 CHUNKING
    2015.06.18 12:00:03 (Thu): Sending c:\intk\ntf\OCIOSA.TXT to aaa.aaa@intertank.com.br, aaa.aaa@intertank.com.br
    2015.06.18 12:00:03 (Thu): Subject: Mapa de ucs ociosas no patio (Y12E37)
    2015.06.18 12:00:03 (Thu): Login name is xxx.xxx@intertank.com.br
    2015.06.18 12:00:03 (Thu): >>>putline>>> MAIL FROM: <xxx.xxx@intertank.com.br>
    2015.06.18 12:00:08 (Thu): <<<getline<<< 530 5.7.1 Client was not authenticated
    2015.06.18 12:00:08 (Thu): The SMTP server does not like the sender name.
    Have you set your mail address correctly?
    2015.06.18 12:00:08 (Thu): >>>putline>>> QUIT
    2015.06.18 12:00:08 (Thu): Error: Connection to server was dropped.
    2015.06.18 12:00:08 (Thu)-------------End of Session------------------

    #######################################################

    Quem puder me ajudar, ficarei muito grato!!!

    Abço.




    quinta-feira, 18 de junho de 2015 16:17

Todas as Respostas