custom form as forwarded item not visible in other Exchange org

A

a6avant

Hello,

I've created a custom form based on a message which allows to enter
data for a hardware purchase and a button to "Send to manager". The
user can fill this in and choose someone from the GAL to send the form
to.
The recipient receives this form (as a "note" icon in his inbox ?) and
when opening it he can approve the purchase and click on the approve
button or he can reject the purchase with a reject button. The form
thus has a different "read" and "compose page".
The problem is that whenever the user clicks approve the mail is
"forwarded" with a few lines of code to an external smtp-adres so the
form leaves the Exchange org. The recipient is also on Exchange, has a
copy of the form published in his Personal Forms Library and has the
flag "use MAPI Rich Text" in his Exchange properties in AD (on the
sending Exchange server).
However the recipient is receiving empty mails.
I had to go for forward because the approving manager upon opening the
mail the mail is "read" and cannot be resend from code without
forwarding it (I guess).
The code used behind the button is :

Sub CommandButton2_Click()
Set objNewItem = Item.Forward 'This is the line that causes the
error!
objNewItem.To = "(e-mail address removed)"
objNewItem.Recipients.ResolveAll
objNewItem.Send
End Sub

I really would appreciate some help on this.
 
S

Sue Mosher [MVP-Outlook]

Make sure that the Forward action on the form is set to use your published custom form. Otherwise, the forwarded item will one-off.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
A

a6avant

Sue said:
Make sure that the Forward action on the form is set to use your published custom form. Otherwise, the forwarded item will one-off.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


Strangely enough it does mention in the forward action to use the
custom form...While testing I renamed the form to a something version 2
which didn't reflect in the action, it generated a runtime... Still the
mails turn up empty.
I then tought of the fact that one of the Exchange server might strip
off the TNEF but I don't think so. I simulated in a lab (2 exchange
servers , different org, just smtp connector) and the result is the
same. It keeps me puzzled.
If i send the initial form to the same recipient the mail gets through
in RTF and he can read the form. The forwarded one still turns up
empty.

Much obliged,
Steven
 
S

Sue Mosher [MVP-Outlook]

But did you actually change the Forward action to point to the published custom form? Forms can't be renamed, so I have no idea what you've actually done.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
A

a6avant

Sue said:
But did you actually change the Forward action to point to the published custom form? Forms can't be renamed, so I have no idea what you've actually done.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers

Hello Sue,

I checked like you said the forward action and found out that the name
is the correct name. I reselected it from my Personal Forms Library and
re-published it to make sure. Problem persists.
I have noticed however that when I just send a new e-mail to the
(e-mail address removed) recipient specified in the code this recipient
(who is defined in my contacts and has the flag Send using Rich Text)
has the Let Outlook decide the best sending format showing up in the
properties. Is that normal.
Now if I fire up the form and put 2 recipients (an approving manager
and the (e-mail address removed)) in the to - field and select
(e-mail address removed)'s properties and change this to Send using Rich
Text and then send the form then (e-mail address removed) receives the
form as should. So I have the impression it is something to do with
Outlook...

best regards,
Steven
 
S

Sue Mosher [MVP-Outlook]

I have noticed however that when I just send a new e-mail to the
(e-mail address removed) recipient specified in the code this recipient
(who is defined in my contacts and has the flag Send using Rich Text)
has the Let Outlook decide the best sending format showing up in the
properties. Is that normal.

Yes, that's normal, because you are not sending to the contact, you are sending to a one-off SMTP address. If the contact name is unique, you can use it as the To value instead of the address, and then resolve the recipients before sending.

Normally, Outlook is going to send the TNEF wrapper anyway, regardless of what the recipient setting is, just because it's a custom form.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


But did you actually change the Forward action to point to the published custom form? Forms can't be renamed, so I have no idea what you've actually done.

Sue Mosher [MVP-Outlook] wrote:
Make sure that the Forward action on the form is set to use your published custom form. Otherwise, the forwarded item will one-off.

Hello,

I've created a custom form based on a message which allows to enter
data for a hardware purchase and a button to "Send to manager". The
user can fill this in and choose someone from the GAL to send the form
to.
The recipient receives this form (as a "note" icon in his inbox ?) and
when opening it he can approve the purchase and click on the approve
button or he can reject the purchase with a reject button. The form
thus has a different "read" and "compose page".
The problem is that whenever the user clicks approve the mail is
"forwarded" with a few lines of code to an external smtp-adres so the
form leaves the Exchange org. The recipient is also on Exchange, has a
copy of the form published in his Personal Forms Library and has the
flag "use MAPI Rich Text" in his Exchange properties in AD (on the
sending Exchange server).
However the recipient is receiving empty mails.
I had to go for forward because the approving manager upon opening the
mail the mail is "read" and cannot be resend from code without
forwarding it (I guess).
The code used behind the button is :

Sub CommandButton2_Click()
Set objNewItem = Item.Forward 'This is the line that causes the
error!
objNewItem.To = "(e-mail address removed)"
objNewItem.Recipients.ResolveAll
objNewItem.Send
End Sub

I really would appreciate some help on this.



Strangely enough it does mention in the forward action to use the
custom form...While testing I renamed the form to a something version 2
which didn't reflect in the action, it generated a runtime... Still the
mails turn up empty.
I then tought of the fact that one of the Exchange server might strip
off the TNEF but I don't think so. I simulated in a lab (2 exchange
servers , different org, just smtp connector) and the result is the
same. It keeps me puzzled.
If i send the initial form to the same recipient the mail gets through
in RTF and he can read the form. The forwarded one still turns up
empty.

Much obliged,
Steven

Hello Sue,

I checked like you said the forward action and found out that the name
is the correct name. I reselected it from my Personal Forms Library and
re-published it to make sure. Problem persists.
I have noticed however that when I just send a new e-mail to the
(e-mail address removed) recipient specified in the code this recipient
(who is defined in my contacts and has the flag Send using Rich Text)
has the Let Outlook decide the best sending format showing up in the
properties. Is that normal.
Now if I fire up the form and put 2 recipients (an approving manager
and the (e-mail address removed)) in the to - field and select
(e-mail address removed)'s properties and change this to Send using Rich
Text and then send the form then (e-mail address removed) receives the
form as should. So I have the impression it is something to do with
Outlook...

best regards,
Steven
 
A

a6avant

How do I actually specify this in the code ? I found in one of the
Microsoft documents that putting an smtp address like
[smtp:[email protected]] it will not send the form one-off.

regards,
Steven
 
A

a6avant

correction... there's 2 types of one-off addressing ... I got it wrong.
I think that this is the problem.
How do I specify in the code to use a contact or AD contact ?

Thx,
Steven
 
S

Sue Mosher [MVP-Outlook]

I already told you: If the contact name is unique, you can use it as the To value instead of the address, and then resolve the recipients before sending.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
A

a6avant

Sue said:
I already told you: If the contact name is unique, you can use it as the To value instead of the address, and then resolve the recipients before sending.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers

Thx Sue it works now. After rereading the MS KB article which states
that specifying smtp addresses sends the form in one - off format. I
used like you said the exact name from the address book and it works
now.
 

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