Default recipients

B

Buddy

I design a form for user to send the email to the customers. For the
security reason all the time the user need to put all customers email
address to the BCC field, then select their own name and put into the To
field. Can I write some coding that the outlook can auto retrive the user
login name and put into the To field ? I don't want to hard code any user
name in the coding, because not only one user need to use this form.

Thank you very much.

Buddy
 
B

Buddy

Thanks for your help.

Ken Slovak - said:
In form code: Application.GetNamespace("MAPI").CurrentUser. That
however will trigger the security prompts in secure versions of
Outlook. For ways around the object model guard see
http://www.slipstick.com/outlook/esecup.htm#autosec

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm


Buddy said:
I design a form for user to send the email to the customers. For the
security reason all the time the user need to put all customers email
address to the BCC field, then select their own name and put into the To
field. Can I write some coding that the outlook can auto retrive the user
login name and put into the To field ? I don't want to hard code any user
name in the coding, because not only one user need to use this form.

Thank you very much.

Buddy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top