Re: [Bulk] Re: Blat option -f not working

"'Chip' [email protected] [blat]" <[email protected]>
Newsgroups gmane.mail.blat
Message-ID <8ED7543A63FB496BB63FC7681918F388@chip>
>> That´s exactly my Problem. At the moment i use the following parameters.
>> :
>>
>> blat -to %TO% -f %USER% -i %FROMNAME% -server %SERVER% -u %USER% -pw
>> %PW% -subject %SUBJECT% -body %BODY%
>>
>> At the moment the sender is always shown as the one named in %USER%.
>>
>> I need %FROMNAME% shown as the sender of the email. I also changed -f
>> %USER% to -f %FROMNAME% but still no difference.
>>
>> The -i option works with an email adress that is not registered or not
>> real but that doesn´t help me.
>>
>> Best regards


> Please help me to understand what you are saying.  What I think you want
> is to use three different names/email addresses in your message.
>
> 1. You want Blat to use -u and -pw options to sign into the server for
> authentication, using one set of credentials.
> 2. You want Blat to use %USER% when Blat sends the "MAIL FROM:" command to
> the server.
> 3. You want Blat to use %FROMNAME% in the From: header line of our email.
>
> Is that about right?


Based on using three different user values, I used my smtp4dev profile to
send test messages.  The server is actually simulated by running smtp4dev on
my system, and telling Blat to use IP address 127.0.0.1.  To learn more
about smtp4dev, visit https://smtp4dev.codeplex.com/.

My smtp4dev profile uses "me" as the user and password, and it uses my
regular AT&T email address as the normal "From:" header and "MAIL FROM:"
command.

Below is the command prompt window output from my system moments ago, where 
I used the -i option to change the "From:" header line, without changing the 
"MAIL FROM:" command or my login credentials.  What you may also notice is 
the "Sender:" header and "Reply-To:" header both use my AT&T email address 
because I did not override those values from the command line.

The -f command line option would normally set the "From:", "Sender:", and 
"Reply-To:" header lines, and is used with the "MAIL FROM:" command.  The -i 
option changes the "From:" header line without changing the other values. 
The -u and -pw options provide authentication credentials, and have nothing 
to do with the message content or the "MAIL FROM:" command.


R:\>f:\blat\blat323\x64\Release\blat -profile
Blat v3.2.3 (build : Oct 19 2014 15:35:00)
64-bit Windows, Full, Unicode

Profile(s) for all users of this computer --
SMTP: 127.0.0.1 "Chip <[email protected]>" 1 125 smtp4dev ***** *****

R:\>f:\blat\blat323\x64\Release\blat f:t -p smtp4dev -t
"[email protected]" -i "[email protected]" -s "Testing -i option"
-superdebugt -log R:\blat1.txt
Checking option -log
Blat v3.2.3 (build : Oct 19 2014 15:35:00)
64-bit Windows, Full, Unicode

Checking option -t
Checking option -i
Checking option -s

R:\>type R:\blat1.txt
2014.11.11 00:39:25 (Tue)------------Start of Session-----------------
Blat v3.2.3 (build : Oct 19 2014 15:35:00)
64-bit Windows, Full, Unicode
superDebug: init_winsock(), WSAStartup() returned 0 (NO_ERROR)
superDebug: Attempting to connect to ip address 127.0.0.1
superDebug: Received 30 bytes:
220 localhost smtp4dev ready
<<<getline<<< 220 localhost smtp4dev ready
superDebug: Attempting to send 19 bytes:
EHLO chip.att.net
>>>putline>>> EHLO chip.att.net
superDebug: Received 124 bytes:
250-Nice to meet you.
250-AUTH=CRAM-MD5 PLAIN LOGIN ANONYMOUS
250-AUTH CRAM-MD5 PLAIN LOGIN ANONYMOUS
250 SIZE=10485760
<<<getline<<< 250-Nice to meet you.
<<<getline<<< 250-AUTH=CRAM-MD5 PLAIN LOGIN ANONYMOUS
<<<getline<<< 250-AUTH CRAM-MD5 PLAIN LOGIN ANONYMOUS
<<<getline<<< 250 SIZE=10485760
Sending f:t to [email protected]
Subject: Testing -i option
Login name is Chip <[email protected]>
superDebug: Attempting to send 15 bytes:
AUTH CRAM-MD5
>>>putline>>> AUTH CRAM-MD5
superDebug: Received 54 bytes:
334 Mjc1MzkuNjM1NTEyNjMxNjU2NzM0MDAwQGxvY2FsaG9zdA==
<<<getline<<< 334 Mjc1MzkuNjM1NTEyNjMxNjU2NzM0MDAwQGxvY2FsaG9zdA==
superDebug: Attempting to send 50 bytes:
bWUgMTE2NzcyZTIzMDc1NmIxNzZiYjg0NGVkOTY2ZGU2M2Q=
>>>putline>>> bWUgMTE2NzcyZTIzMDc1NmIxNzZiYjg0NGVkOTY2ZGU2M2Q=
superDebug: Received 22 bytes:
235 Authenticated OK
<<<getline<<< 235 Authenticated OK
superDebug: Attempting to send 37 bytes:
MAIL FROM:<[email protected]>
>>>putline>>> MAIL FROM:<[email protected]>
superDebug: Received 16 bytes:
250 Okey dokey
<<<getline<<< 250 Okey dokey
superDebug: Attempting to send 32 bytes:
RCPT TO:<[email protected]>
>>>putline>>> RCPT TO:<[email protected]>
superDebug: Received 24 bytes:
250 Recipient accepted
<<<getline<<< 250 Recipient accepted
superDebug: Attempting to send 6 bytes:
DATA
>>>putline>>> DATA
superDebug: Received 29 bytes:
354 End message with period
<<<getline<<< 354 End message with period
superDebug: Attempting to send 572 bytes:
Date: Tue, 11 Nov 2014 00:39:25 -0700
From: [email protected]
Sender: Chip <[email protected]>
Date: Tue, 11 Nov 2014 00:39:25 -0700
Reply-To: Chip <[email protected]>
To: [email protected]
X-Mailer: Blat v3.2.3, a Win64 (AMD64) SMTP/NNTP mailer http://www.blat.net
Message-ID: <[email protected]>
Subject: Testing -i option
Content-Transfer-Encoding: 8BIT
Content-Type: text/plain;
charset="ISO-8859-1"
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, nilpt@void   ,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,
.
superDebug: Received 19 bytes:
250 Mail accepted
<<<getline<<< 250 Mail accepted
superDebug: Attempting to send 6 bytes:
QUIT
>>>putline>>> QUIT
superDebug: Received 28 bytes:
221 See you later aligator
<<<getline<<< 221 See you later aligator
2014.11.11 00:39:25 (Tue)-------------End of Session------------------

R:\>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.