Error in sending mail using blat

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
komathi
Posts: 14
Joined: 18 May 2014 04:48

Error in sending mail using blat

#1 Post by komathi » 18 May 2014 14:29

Hi

Getting the following error, while sending mail using the Blat in batch script
"The mail server doesn't like the sender name"


This is my code to send mail

Code: Select all

blat  %rootpath%EmailBody\ConnectionFailure.txt -server %server% -f %username% -u %username% -pw %password% -port %port% -to %to% -subject "Salesforce Connection Failed" -debug -log %logpath% -timestamp 




Below is the full log file error
: unknown error code 2 when trying to open E:\SFDCThePlatform\Bat Sample\email\ConnectionFailure.txt

it was working good since last week, from today getting this error.


2014.05.19 01:55:16 (Mon)------------Start of Session-----------------
Blat v3.1.2 (build : Dec 27 2013 14:33:12)
32-bit Windows, Full, Unicode
2014.05.19 01:55:17 (Mon): <<<getline<<< 220 mx.google.com ESMTP gc3sm26110992pbd.93 - gsmtp
2014.05.19 01:55:17 (Mon): >>>putline>>> EHLO home-64a49a3b23.gmail.com
2014.05.19 01:55:17 (Mon): <<<getline<<< 250-mx.google.com at your service, [117.197.200.43]
2014.05.19 01:55:17 (Mon): <<<getline<<< 250-SIZE 35882577
2014.05.19 01:55:17 (Mon): <<<getline<<< 250-8BITMIME
2014.05.19 01:55:17 (Mon): <<<getline<<< 250-STARTTLS
2014.05.19 01:55:17 (Mon): <<<getline<<< 250-ENHANCEDSTATUSCODES
2014.05.19 01:55:17 (Mon): <<<getline<<< 250 CHUNKING
2014.05.19 01:55:19 (Mon): Sending E:\SFDCThePlatform\Bat Sample\email\ConnectionFailure.txt to komathipriya2010@yahoo.com
2014.05.19 01:55:19 (Mon): Subject: BlatTest
2014.05.19 01:55:19 (Mon): Login name is komathipriya2010@gmail.com
2014.05.19 01:55:19 (Mon): Attached binary file: E:\successUsage.csv
2014.05.19 01:55:19 (Mon): Attached binary file: E:\successUsage.csv
2014.05.19 01:55:19 (Mon): >>>putline>>> AUTH LOGIN
2014.05.19 01:55:20 (Mon): <<<getline<<< 530 5.7.0 Must issue a STARTTLS command first. gc3sm26110992pbd.93 - gsmtp
2014.05.19 01:55:20 (Mon): *** Warning *** The SMTP server does not require AUTH LOGIN.
*** Warning *** Are you sure server supports AUTH?
2014.05.19 01:55:20 (Mon): >>>putline>>> MAIL FROM:<komathipriya2010@gmail.com>
2014.05.19 01:55:20 (Mon): <<<getline<<< 530 5.7.0 Must issue a STARTTLS command first. gc3sm26110992pbd.93 - gsmtp
2014.05.19 01:55:20 (Mon): *** Error *** The SMTP server does not like the sender name.
*** Error *** Have you set your mail address correctly?
2014.05.19 01:55:20 (Mon): >>>putline>>> QUIT
2014.05.19 01:55:20 (Mon): <<<getline<<< 221 2.0.0 closing connection gc3sm26110992pbd.93 - gsmtp
2014.05.19 01:55:20 (Mon)-------------End of Session------------------

penpen
Expert
Posts: 2009
Joined: 23 Jun 2013 06:15
Location: Germany

Re: Error in sending mail using blat

#2 Post by penpen » 18 May 2014 15:44

I've never used blat, but it seems, that your server wants to talk TLS/SSL only:
komathi wrote:
(...)
Must issue a STARTTLS command first.
(...)
See http://en.wikipedia.org/wiki/STARTTLS.

This may also help you: http://superuser.com/questions/324187/command-line-smtp-server.
Read Daniel Williams comment about stunnel.
(I've never used stunnel, too.)

penpen

Post Reply