Discussion:
Blat includes all recipient addresses in To: line
r_grauds
2006-08-03 00:17:02 UTC
Permalink
Hi,

I'm a new user using Blat 2.5.0 and I'm having a problem that I hope
you might be able to help me out with.

Basically, I have a list of recipients in a text file that I want to
send an email to. Currently Blat is including all recipient email
addresses in the To: line of the email. However, due to privacy
reasons I don't want each recipient to be able to see who else is
receiving the email.

Here's the command line I'm using to run Blat:
blat.exe email.html -html -alttextf email.txt -tf rcpt.txt -maxnames 1
-s "Survey Results" -server mail.example.com:25 -org "Example dot Com"
-noh -from "Survey Administration <***@example.com>" -f
***@example.com -delay 1

When I use the debug switch, I can see that it is sending separate
emails for each recipient, but the To: line in the header still shows
all recipient email addresses. I would prefer not to send these emails
as BCC.

Am I missing something here? I thought the -maxnames switch would do
what I am expecting.

Thanks in advance,
Rei.
--
Homepage:
http://www.blat.net
Chip
2006-08-03 01:44:49 UTC
Permalink
Post by r_grauds
Hi,
I'm a new user using Blat 2.5.0 and I'm having a problem that I hope
you might be able to help me out with.
Basically, I have a list of recipients in a text file that I want to
send an email to. Currently Blat is including all recipient email
addresses in the To: line of the email. However, due to privacy
reasons I don't want each recipient to be able to see who else is
receiving the email.
blat.exe email.html -html -alttextf email.txt -tf rcpt.txt -maxnames 1
-s "Survey Results" -server mail.example.com:25 -org "Example dot Com"
When I use the debug switch, I can see that it is sending separate
emails for each recipient, but the To: line in the header still shows
all recipient email addresses. I would prefer not to send these emails
as BCC.
Am I missing something here? I thought the -maxnames switch would do
what I am expecting.
Thanks in advance,
Rei.
Two things.

First, remove the -html option, Blat is able to use the .thml extension to
figure out that you are sending HTML.

Second, and to answer your question, use the -bf option instead of -tf. In
that case, you may want to use your own email address as the recipient like
this: -t myself.

The -bf will send emails to all recipients in your text file, but their
names will not be listed in the headers, so they won't know who else
received your message.
--
Chip
--
Homepage:
http://www.blat.net
r_grauds
2006-08-03 03:30:46 UTC
Permalink
Post by Chip
Post by r_grauds
Hi,
I'm a new user using Blat 2.5.0 and I'm having a problem that I hope
you might be able to help me out with.
Basically, I have a list of recipients in a text file that I want to
send an email to. Currently Blat is including all recipient email
addresses in the To: line of the email. However, due to privacy
reasons I don't want each recipient to be able to see who else is
receiving the email.
blat.exe email.html -html -alttextf email.txt -tf rcpt.txt -maxnames 1
-s "Survey Results" -server mail.example.com:25 -org "Example dot Com"
When I use the debug switch, I can see that it is sending separate
emails for each recipient, but the To: line in the header still shows
all recipient email addresses. I would prefer not to send these emails
as BCC.
Am I missing something here? I thought the -maxnames switch would do
what I am expecting.
Thanks in advance,
Rei.
Two things.
First, remove the -html option, Blat is able to use the .thml
extension to
Post by Chip
figure out that you are sending HTML.
Second, and to answer your question, use the -bf option instead of -tf. In
that case, you may want to use your own email address as the
recipient like
Post by Chip
this: -t myself.
The -bf will send emails to all recipients in your text file, but their
names will not be listed in the headers, so they won't know who else
received your message.
--
Chip
Thanks for the info about the -html option.

I was aware of the -bf option but as per my original post I would
prefer not to have to BCC recipients.

One option that I have been told may work is to set up a batch file to
process each line of the recipients file individually. I'm not sure
how to set this up... does anybody have any examples?

I think I'll be going done the path of having a log file for each job,
but this batch file method seems to me like it would end up creating a
log file for each individual email sent. Any ideas?

Thanks,
Rei.
--
Homepage:
http://www.blat.net
namtog
2006-08-03 14:14:23 UTC
Permalink
Greetings Rei,

I've been following this thread and
I am a little confused. Maybe we can sort
this out.

Rei wrote;
"Currently Blat is including all recipient email
addresses in the To: line of the email. However, due to privacy
reasons I don't want each recipient to be able to see who else is
receiving the email."

In the above you are looking for Blat to send as BCC.

Then Rei wrote:"When I use the debug switch, I can see that it
is sending separate emails for each recipient, but the To: line
in the header still shows all recipient email addresses. I
would prefer not to send these emails as BCC."

You really can't have it both ways. Either they see the other
recipients or not. I think part of the confusion here is that
some email clients require a TO address before they will allow
a BCC field.

With Blat you don't need to use -to (or -t). Instead as Chip
suggested use -bf. You could also leave off -to myself. Myself
is a undocumented Blat feature to send a email, in the example
you provided, to -f ***@... (void at ...)

You do not need a batch script to process each line in your file
rcpt.txt. -bf will do this for you.

Try the string below.

blat.exe email.html -alttextf email.txt -bf rcpt.txt
-s "Survey Results" -server mail.example.com:25 -org "Example dot Com"
-noh -from "Survey Administration <***@...>" -f
***@...

Below is the above string, on separate lines for clarity.

blat.exe [email sending agent]
email.html [your preferred email]
-alttextf email.txt [alt text of email]
-bf rcpt.txt [your to list]
-s "Survey Results" [subject]
-server mail.example.com:25 [mail server and default port]
-org "Example dot Com" [Organization field]
-noh [prevent X-Mailer/User-Agent header from showing Blat homepage]
-from "Survey Administration <***@...>" [your email address]
-f ***@... [override the default sender address (must be known to
server)]

Give the above a go. Don't let the BCC issue get in the way.
I think this will do what you are looking for.

Namtog
--
Homepage:
http://www.blat.net
r_grauds
2006-08-04 00:00:27 UTC
Permalink
Firstly, thank you for everyone's help with this.

On to my problem...
Just to reiterate my situation :-
I have a list of recipients that is more than likely to change with
each email being sent. Currently, Blat sends emails with each
recipient listed in the To: line.
e.g. To: ***@example.com, ***@example.com,
***@example.com... and so on.

Blat does this even when the -maxnames option is set to 1. Due to
privacy reasons I cannot allow the recipients to see who else is
receiving these emails.

I would prefer not to send these emails with the recipient BCCed. One
of the reasons for this is that some of our recipients use filters
based on if their address appears in the To: line or not.

So I think after all this, I will need to write a batch file to parse
each address in my recipients file individually.

My apologies for not being clear, but I hope this helps.

Thanks again,
Rei.
Post by namtog
Greetings Rei,
I've been following this thread and
I am a little confused. Maybe we can sort
this out.
Rei wrote;
"Currently Blat is including all recipient email
addresses in the To: line of the email. However, due to privacy
reasons I don't want each recipient to be able to see who else is
receiving the email."
In the above you are looking for Blat to send as BCC.
Then Rei wrote:"When I use the debug switch, I can see that it
is sending separate emails for each recipient, but the To: line
in the header still shows all recipient email addresses. I
would prefer not to send these emails as BCC."
You really can't have it both ways. Either they see the other
recipients or not. I think part of the confusion here is that
some email clients require a TO address before they will allow
a BCC field.
With Blat you don't need to use -to (or -t). Instead as Chip
suggested use -bf. You could also leave off -to myself. Myself
is a undocumented Blat feature to send a email, in the example
You do not need a batch script to process each line in your file
rcpt.txt. -bf will do this for you.
Try the string below.
blat.exe email.html -alttextf email.txt -bf rcpt.txt
-s "Survey Results" -server mail.example.com:25 -org "Example dot Com"
Below is the above string, on separate lines for clarity.
blat.exe [email sending agent]
email.html [your preferred email]
-alttextf email.txt [alt text of email]
-bf rcpt.txt [your to list]
-s "Survey Results" [subject]
-server mail.example.com:25 [mail server and default port]
-org "Example dot Com" [Organization field]
-noh [prevent X-Mailer/User-Agent header from showing Blat homepage]
server)]
Give the above a go. Don't let the BCC issue get in the way.
I think this will do what you are looking for.
Namtog
--
Homepage:
http://www.blat.net
Liz Ackerman
2006-08-03 21:45:38 UTC
Permalink
Hi Rei

I am sure someone will jump in and tell you how to do this in another way,
but here is how I do it, and I like the way it works.

I have to send out a UNIQUE file to hundreds of recipient, it's customized
remittance form, that contains company name, contact and address
information, so I have a file for each company. To do this using blat, I
create a batch file. I have one line for each person getting an email in
that batch file. The smtp server sends each one, one at a time. If you do
not use batch files, you can read more about them on the blat.net website.
They are run in a command window (on a windows computer). I can send out
many of emails in a short few hours and watch the progress.

So here are a few lines from the batch file of my last blast out:

c:\windows\system\blat.exe c:\sendemail\testingnewremits.htm -subject "NEW -
July 2006 Premium File" -embed "logo.jpg" -mime -html -to
***@domainname.com -attach c:\sendemail\G53.xls -from
"***@ourdomain.com" -log log.txt

c:\windows\system\blat.exe c:\sendemail\testingnewremits.htm -subject "NEW -
July 2006 Premium File" -embed "logo.jpg" -mime -html -to
***@somedomain.com -attach c:\sendemail\B053.xls -from
"***@ourdomain.com" -log log.txt

c:\windows\system\blat.exe c:\sendemail\testingnewremits.htm -subject "NEW -
July 2006 Premium Remittance File" -embed "logo.jpg" -mime -html -to
***@domain.com -attach c:\sendemail\B663.xls -from
"***@ourdomain.com" -log log.txt

Another way to accomplish this, is not use the -to but use the -bcc feature,
if Blat supports that, and I am not sure about that.

Hope that helps.

Liz



Hi,

I'm a new user using Blat 2.5.0 and I'm having a problem that I hope
you might be able to help me out with.

Basically, I have a list of recipients in a text file that I want to
send an email to. Currently Blat is including all recipient email
addresses in the To: line of the email. However, due to privacy
reasons I don't want each recipient to be able to see who else is
receiving the email.

Here's the command line I'm using to run Blat:
blat.exe email.html -html -alttextf email.txt -tf rcpt.txt -maxnames 1
-s "Survey Results" -server mail.example.com:25 -org "Example dot Com"
-noh -from "Survey Administration <***@example.com>" -f
***@example.com -delay 1

When I use the debug switch, I can see that it is sending separate
emails for each recipient, but the To: line in the header still shows
all recipient email addresses. I would prefer not to send these emails
as BCC.

Am I missing something here? I thought the -maxnames switch would do
what I am expecting.

Thanks in advance,
Rei.









--
Homepage:
http://www.blat.net
r_grauds
2006-08-04 00:01:59 UTC
Permalink
Thanks Liz,

Another problem I have is that the list of recipients is always
changing, hence why I will be using a recipients text file.

Cheers,
Rei.
Post by Liz Ackerman
Hi Rei
I am sure someone will jump in and tell you how to do this in
another way,
Post by Liz Ackerman
but here is how I do it, and I like the way it works.
I have to send out a UNIQUE file to hundreds of recipient, it's customized
remittance form, that contains company name, contact and address
information, so I have a file for each company. To do this using blat, I
create a batch file. I have one line for each person getting an email in
that batch file. The smtp server sends each one, one at a time. If you do
not use batch files, you can read more about them on the blat.net website.
They are run in a command window (on a windows computer). I can send out
many of emails in a short few hours and watch the progress.
c:\windows\system\blat.exe c:\sendemail\testingnewremits.htm
-subject "NEW -
Post by Liz Ackerman
July 2006 Premium File" -embed "logo.jpg" -mime -html -to
c:\windows\system\blat.exe c:\sendemail\testingnewremits.htm
-subject "NEW -
Post by Liz Ackerman
July 2006 Premium File" -embed "logo.jpg" -mime -html -to
c:\windows\system\blat.exe c:\sendemail\testingnewremits.htm
-subject "NEW -
Post by Liz Ackerman
July 2006 Premium Remittance File" -embed "logo.jpg" -mime -html -to
Another way to accomplish this, is not use the -to but use the -bcc feature,
if Blat supports that, and I am not sure about that.
Hope that helps.
Liz
Hi,
I'm a new user using Blat 2.5.0 and I'm having a problem that I hope
you might be able to help me out with.
Basically, I have a list of recipients in a text file that I want to
send an email to. Currently Blat is including all recipient email
addresses in the To: line of the email. However, due to privacy
reasons I don't want each recipient to be able to see who else is
receiving the email.
blat.exe email.html -html -alttextf email.txt -tf rcpt.txt -maxnames 1
-s "Survey Results" -server mail.example.com:25 -org "Example dot Com"
When I use the debug switch, I can see that it is sending separate
emails for each recipient, but the To: line in the header still shows
all recipient email addresses. I would prefer not to send these emails
as BCC.
Am I missing something here? I thought the -maxnames switch would do
what I am expecting.
Thanks in advance,
Rei.
--
http://www.blat.net
http://groups.yahoo.com/group/blat
Yahoo! Groups Links
--
Homepage:
http://www.blat.net
Liz Ackerman
2006-08-04 14:19:51 UTC
Permalink
Rei

Why don't we back up a bit, how and where is the list coming from? Is
another process or program writing to that file, or are users adding to the
file? Perhaps an automation can happen on the arrival of each recipient???

Liz


Thanks Liz,

Another problem I have is that the list of recipients is always
changing, hence why I will be using a recipients text file.

Cheers,
Rei.
--
Homepage:
http://www.blat.net
Tim Musson
2006-08-06 13:54:21 UTC
Permalink
Hey r_grauds,

On Wednesday, August 2, 2006 at 8:17:02 PM you wrote

r> Basically, I have a list of recipients in a text file that I want to
r> send an email to. Currently Blat is including all recipient email
r> addresses in the To: line of the email. However, due to privacy
r> reasons I don't want each recipient to be able to see who else is
r> receiving the email.

Check out http://www.blat.net/examples/ - specifically, the FORinDO
link. Basically, I put most options in the -of file.

Now your bat file would look something like this;

FOR /F "eol=; tokens=*" %%i IN (d:\path\rcpt.txt) DO (
blat email.html -of OptionFile.txt -t %%i
)

rcpt.txt can have lines like any of these;
"1st <***@example.net> \"Hey 1st!,\""
"2nd <***@example.net> Hey 2nd!"
<***@example.net>
***@example.net

This is what is in "OptionFile.txt" (you can put one option per line
to make it easier to read);
-alttextf email.txt
-s "Survey Results"
-server mail.example.com <<< Note :25 not needed
-org "Example dot Com"
-noh
-f "Survey Administration <***@example.com>"
--
Tim Musson
Flying with The Bat! eMail v2.12.00
Women and cats will do as they please, and men and dogs should relax
and get used to the idea.
Blat Manager, current version is 2.5, see www.blat.net
--
Homepage:
http://www.blat.net
Loading...