Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mailto: bcc not working for mail client Outlook

Status
Not open for further replies.

aarontra

Programmer
Oct 2, 2002
50
US
Code:
 <A HREF = &quot;mailto:#toemail#?subject=test&bcc=#bcc#&quot;>Send Email To Found Set</A>

Does anyone know how to make the above code work for Outlook?

bcc contains a comma dilim. list of email addresses.
(don't even need a subject)

Thank you
Aaron
 
Works for me:

Code:
<CFSET toemail=&quot;address1@mydomain.com&quot;>
<CFSET bcc=&quot;address2@mydomain.com,address3@mydomain.com&quot;>

<CFOUTPUT><A HREF = &quot;mailto:#toemail#?subject=test&bcc=#bcc#&quot;>Send Email To Found Set</A></CFOUTPUT>

Outlook opens and fills in the To:, Subject: and BCC: fields.

Not quite sure why it wouldn't work for you. But some things to try:
[ul][li]Try a different delimiter. Maybe the address list needs to be separated by semi-colons (;) rather than commas for your version of Outlook[/li]
[li]Try URLEncoding the list... just in case (not even sure if it does anything, but couldn't hurt):
Code:
<A HREF = &quot;mailto:#toemail#?subject=test&bcc=#URLEncodedFormat(bcc)#&quot;>Send Email To Found Set</A>
[/li]
[li]Try using the list in #BCC# in the mailto, just to make sure there's not a problem with the list itself:
Code:
<A HREF = &quot;mailto:#bcc#?subject=test&quot;>Send Email To Found Set</A>
[/li]
[/ul]

Hope it helps,

-Carl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top