Re: Fw: Authentication
| Newsgroups | gmane.mail.blat |
|---|---|
| Message-ID | <400B8FB2A6E64004834F03094149ED16@GeoffPC> |
Thank you for your reply “Chip” Am I missing something? OS Windows 10 Profile in the registry is Blat v3.2.11 (build : Nov 11 2015 22:22:19) 64-bit Windows, Full, Unicode Profile(s) for current user -- SMTP: mail.server "email_address" 1 25 Profile(s) for all users of this computer -- SMTP: mail.sever "email_address" 1 25 ***** ***** I run the following as Administrator from C:\blat_batch -----> blat d:\blat\main.txt -of d:\blat\email_optionsf.txt where d:\blat\email_optionsf.txt ----> -tf d:\blat\email_to.txt -sf d:\blat\email_subj.txt -atf d:\blat\email_textf.txt -af d:\blat\email_binaryf.txt -aef d:\blat\email_embedf.txt -debug -log d:\blat\blat02.log -timestamp the following appears in the log 2015.12.03 11:32:33 (Thu)------------Start of Session----------------- Read 1 TO address from d:\blat\email_to.txt 2015.12.03 11:32:34 (Thu): <<<getline<<< 220 rgout01.bt.lon5.cpcloud.co.uk ESMTP Service ready 2015.12.03 11:32:34 (Thu): >>>putline>>> EHLO geoff-pc.********.com 2015.12.03 11:32:34 (Thu): <<<getline<<< 250-rgout01.bt.lon5.cpcloud.co.uk 2015.12.03 11:32:34 (Thu): <<<getline<<< 250-DSN 2015.12.03 11:32:34 (Thu): <<<getline<<< 250-8BITMIME 2015.12.03 11:32:34 (Thu): <<<getline<<< 250-PIPELINING 2015.12.03 11:32:34 (Thu): <<<getline<<< 250-AUTH=LOGIN 2015.12.03 11:32:34 (Thu): <<<getline<<< 250-AUTH LOGIN PLAIN 2015.12.03 11:32:34 (Thu): <<<getline<<< 250-DELIVERBY 300 2015.12.03 11:32:34 (Thu): <<<getline<<< 250 SIZE 41943040 2015.12.03 11:32:34 (Thu): Sending d:\blat\main.txt to geoff@email_address 2015.12.03 11:32:34 (Thu): Subject: Test 13 2015.12.03 11:32:34 (Thu): Login name is username 2015.12.03 11:32:34 (Thu): >>>putline>>> MAIL FROM:<email_address> 2015.12.03 11:32:34 (Thu): <<<getline<<< 530 authentication required - Your email could not be sent. To fix this you must make a simple change to your email client (known as SMTP authentication). For advice visit http://www.bt.com/smtp 2015.12.03 11:32:34 (Thu): *** Error *** The SMTP server does not like the sender name. *** Error *** Have you set your mail address correctly? 2015.12.03 11:32:34 (Thu): >>>putline>>> QUIT 2015.12.03 11:32:34 (Thu): Error: Connection to server was dropped. 2015.12.03 11:32:34 (Thu)-------------End of Session------------------ if I amend d:\blat\email_optionsf.txt to include –u and –pw parameters it works -tf d:\blat\email_to.txt -sf d:\blat\email_subj.txt -atf d:\blat\email_textf.txt -af d:\blat\email_binaryf.txt -aef d:\blat\email_embedf.txt -u <username> -pw <password> -debug -log d:\blat\blat02.log –timestamp 2015.12.03 11:24:14 (Thu)------------Start of Session----------------- Read 3 TO addresses from d:\blat\email_to.txt 2015.12.03 11:24:14 (Thu): <<<getline<<< 220 rgout02.bt.lon5.cpcloud.co.uk ESMTP Service ready 2015.12.03 11:24:14 (Thu): >>>putline>>> EHLO geoff-pc.btinternet.com 2015.12.03 11:24:14 (Thu): <<<getline<<< 250-rgout02.bt.lon5.cpcloud.co.uk 2015.12.03 11:24:14 (Thu): <<<getline<<< 250-DSN 2015.12.03 11:24:14 (Thu): <<<getline<<< 250-8BITMIME 2015.12.03 11:24:14 (Thu): <<<getline<<< 250-PIPELINING 2015.12.03 11:24:14 (Thu): <<<getline<<< 250-AUTH=LOGIN 2015.12.03 11:24:14 (Thu): <<<getline<<< 250-AUTH LOGIN PLAIN 2015.12.03 11:24:14 (Thu): <<<getline<<< 250-DELIVERBY 300 2015.12.03 11:24:14 (Thu): <<<getline<<< 250 SIZE 41943040 2015.12.03 11:24:14 (Thu): Sending d:\blat\main.txt to geoff@email_address 2015.12.03 11:24:14 (Thu): Subject: Test 12 2015.12.03 11:24:14 (Thu): Login name is <user> 2015.12.03 11:24:14 (Thu): >>>putline>>> AUTH PLAIN ***** 2015.12.03 11:24:14 (Thu): <<<getline<<< 235 PLAIN authentication successful 2015.12.03 11:24:14 (Thu): >>>putline>>> MAIL FROM:<email_address> 2015.12.03 11:24:14 (Thu): <<<getline<<< 250 MAIL FROM:<email_address> OK 2015.12.03 11:24:14 (Thu): >>>putline>>> RCPT TO:<geoff@email_address> 2015.12.03 11:24:14 (Thu): <<<getline<<< 250 RCPT TO:<geoff@email_address> OK 2015.12.03 11:24:14 (Thu): >>>putline>>> DATA 2015.12.03 11:24:14 (Thu): <<<getline<<< 354 Start mail input; end with <CRLF>.<CRLF> 2015.12.03 11:24:14 (Thu): <<<getline<<< 250 <565F104E001944F5> Mail accepted 2015.12.03 11:24:14 (Thu): >>>putline>>> QUIT 2015.12.03 11:24:14 (Thu): <<<getline<<< 221 rgout02.bt.lon5.cpcloud.co.uk QUIT 2015.12.03 11:24:14 (Thu)-------------End of Session------------------ Any advice would be most welcome, thanks Geoff From: mailto:[email protected] Sent: Thursday, December 3, 2015 6:56 AM To: [email protected] Subject: [blat] Fw: Authentication I do not see this message posted, though I did receive it as a pending message awaiting authorization to be posted to the group. If the username and password are stored in the registry, then Blat will use those stored values automatically without you needing to specify them on the normal command line. Chip From: [email protected] Sent: Saturday, November 28, 2015 3:54 AM To: [email protected] Subject: Authentication I am new to using 'Blat' so please bear with me. Question:- As you can store username/password in the registry, can you pick up these values within a ‘blat’ command line statement other than use (–u <value> –pw <value>) when outgoing server requires authentication? Syntax examples would be most useful in using 'Blat' Do they exist? Many thanks Geoff