Hi,
Hoping this is an easy one where I'm just overlooking something.
I am using Windows Server 2000, CF MX 6.1 and SQL Server 2000.
I have recently create a form for myself where I can send an email to many of my colleagues. Originally I was putting everyone's email address in the TO field but a few people complained and asked that maybe I try to put everyone in the BCC field so they don't have to scroll down through a large list of people I sent to in order to begin reading the message.
So now I just put my own email address in the TO and FROM fields and all of the recipients email addresses in the BCC. The query loops through all of the users in the database who have email addresses and sends it correctly.
My only problem though is that if I send the email to my 220 users then I also get 220 emails.
QUESTION: Is there a strategy I can use to just send to myself (TO field) just once while also sending to the 220 users in the BCC field?
Here's my code:
<CFMAIL
SERVER="112.223.24.22"
QUERY="com"
PORT="25"
TIMEOUT="60"
SUBJECT="#FORM.TITLE#"
TO="admin@example.org"
FROM="admin@example.org"
BCC="""#FirstName# #LastName#"" <#Email#>">
Thanks in advance!
Mike
Hoping this is an easy one where I'm just overlooking something.
I am using Windows Server 2000, CF MX 6.1 and SQL Server 2000.
I have recently create a form for myself where I can send an email to many of my colleagues. Originally I was putting everyone's email address in the TO field but a few people complained and asked that maybe I try to put everyone in the BCC field so they don't have to scroll down through a large list of people I sent to in order to begin reading the message.
So now I just put my own email address in the TO and FROM fields and all of the recipients email addresses in the BCC. The query loops through all of the users in the database who have email addresses and sends it correctly.
My only problem though is that if I send the email to my 220 users then I also get 220 emails.
QUESTION: Is there a strategy I can use to just send to myself (TO field) just once while also sending to the 220 users in the BCC field?
Here's my code:
<CFMAIL
SERVER="112.223.24.22"
QUERY="com"
PORT="25"
TIMEOUT="60"
SUBJECT="#FORM.TITLE#"
TO="admin@example.org"
FROM="admin@example.org"
BCC="""#FirstName# #LastName#"" <#Email#>">
Thanks in advance!
Mike