Okay, I'm almost there. I have one more question. What I'm trying to do is
create e-mail templates for our sales department so they can send out
e-mails rather quickly. Since the information they send is mostly the same
for each customer, I thought I would try my hand at creating templates for
them. The templates are to be stored in a public folder. As I mentioned
before, the templates are custom forms that have a drop-down from and to
comboboxes. Now the only thing that I can't figure out is how I should
store them.
I want them to appear as items in the public folder. For example, "OrderX"
would be a template with the body containing, "thank for you for ordering
product X" and "OrderY" would contain "thank you for ordering product Y".
Of course when I publish the forms to the folder, they don't appear as
items---I have to open them through the TOOLS / ACTIONS method. If I simply
save them as templates, the vbscript does not work but they do show up as
items. That's where I'm stuck.
I found the Formlauncher code on
http://www.outlookcode.com/d/forms/formlauncher.htm . That would work
perfectly if I could save the message details when I create the new form
using the Launcher app. Otherwise, it simply creates a blank custom form.
Any thought about this? Thanks again for your time.
"Sue Mosher [MVP-Outlook]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
There are many, many things that can be done in the UI that are not exposed
programmatically, at least not directly.
The message will not read "on behalf of" if the user has Send As permission
on the other Exchange mailbox. This is one case where the UI and
programmatic behavior are the same.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"John Smith" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks for responding Sue. That works but is not what I'm looking for.
> I
> do not want the message to read "sent on behalf of ...". It seems to me
> that, since the user can modify the from field text box by hand, it could
> be
> done programatically. I have seen CDO examples of sending a message as
> someone else but that's a bit more work than I wanted to put in to this
> for
> now.
>
> Thanks for your help and I will appreciate any other ideas you may have
> regarding this.
>
>
> "Sue Mosher [MVP-Outlook]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> From is a special field/control. You can't use it in the way you expect.
>
> Instead, you would need to provide an unbound combo box, fill it with
> names
> or aliases, and then in the form's Item_Send event handler, set the
> SentOnBehalfOfName property to the selection from the combo box.
>
>