B
Barney Mowder
All-
Please forgive the cross-posting, but I can't tell which group is
more appropriate for this question. All flames are probably entirely
justified.
I am using Outlook 2000 VBA to script a LART generation macro, and
one of the things I need the macro to do is 'send as' the E-Mail from
an alternate account ([email protected]).
I have authorized my user account to do a 'send as' as
administrator, but when I create the LART message, it always insists
on creating it as from me, and I have to use the From: dropdown to
insert the administrator address before I send the message.
Since the 'From' attribute is read-only, I can't directly change it,
once it is created, using:
myMailItem.From = "(e-mail address removed)".
I hate this. I continually forget to change the 'From:' field to
'administrator', and it makes my accounting difficult.
I have looked into creating the message as if it was created by
'administrator', but this doesn't seem possible (thanks, Billy).
The only workaround I can see is to automate pasting the
'administrator' address into the 'From:' field of the message creation
form, and let the form change event update the message.
I need to know how to programmatically insert text into the 'From:'
textbox in the standard, out-of-the box message form.
A code sample would be desirable, inasmuch as I notice that
generalizing and Outlook VBA don't exactly work well together, and the
correct name for the form and field are probably crucial.
Thanks for your time and trouble,
Barney Mowder
Please forgive the cross-posting, but I can't tell which group is
more appropriate for this question. All flames are probably entirely
justified.
I am using Outlook 2000 VBA to script a LART generation macro, and
one of the things I need the macro to do is 'send as' the E-Mail from
an alternate account ([email protected]).
I have authorized my user account to do a 'send as' as
administrator, but when I create the LART message, it always insists
on creating it as from me, and I have to use the From: dropdown to
insert the administrator address before I send the message.
Since the 'From' attribute is read-only, I can't directly change it,
once it is created, using:
myMailItem.From = "(e-mail address removed)".
I hate this. I continually forget to change the 'From:' field to
'administrator', and it makes my accounting difficult.
I have looked into creating the message as if it was created by
'administrator', but this doesn't seem possible (thanks, Billy).
The only workaround I can see is to automate pasting the
'administrator' address into the 'From:' field of the message creation
form, and let the form change event update the message.
I need to know how to programmatically insert text into the 'From:'
textbox in the standard, out-of-the box message form.
A code sample would be desirable, inasmuch as I notice that
generalizing and Outlook VBA don't exactly work well together, and the
correct name for the form and field are probably crucial.
Thanks for your time and trouble,
Barney Mowder