John Ruff
papparuff at attbi.com
Fri Apr 25 11:09:12 CDT 2003
I could not get the SentOnBehalfOfName property to work with Outlook 2000. Instead of the name I suppied for the SentOnBehalfOfName, recipeints received the name I have in the User Name field for my default email account. So I asked members of the Outlook newsgroup (outlook-dev at yahoogroups.com) for assistance. I got the following response from Dmitry Streblechenko: "SentOnBehalfOfName can only be used under Exchnage and the propetrty must be set to the name of one of the Exchange users. You must be explictly given a permission to send on behalf of that user." I'm going to assume that if it won't work in Outlook 2000 then it most likely won't work in Outlook Express By the way, I have been able to get it to work with Outlook 2002. If you interested... 1. Create a new Contact for the Name you want to use "JR Consulting" in my case, and provide the contact with your email address: youremiladdress at anywhere.com. 2. The Display as: field (below the Email field) displays JR Consulting (papparuff at attbi.com). Remove the email address and only display the name, JR Consulting. 3. In your code - .SendOnBehalfOfName="JR Consulting" The recipients of your email will see JR Consulting in the From field. If you do not remove the email address from the Display as: field, the user will see the User Name of the default email account. John V. Ruff - The Eternal Optimist :-) Always Looking For Contract Opportunities Home: 253.588.2139 Cell: 253.307/2947 9306 Farwest Dr SW Lakewood, WA 98498 "Commit to the Lord whatever you do, and your plans will succeed." Proverbs 16:3 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Friday, April 25, 2003 5:43 AM To: 'accessd at databaseadvisors.com' Subject: RE: [AccessD] Outlook Express and generating e-mails to send specifying the sender David, This is the summary from http://support.microsoft.com/?kbid=232309. SUMMARY You cannot directly change an item's From field using any programming methods in Microsoft Exchange or Outlook. If you could, mail could be sent on someone else's behalf without their permission, therefore the From field is read-only. You can use the SentOnBehalfOfName property to set the From field, provided that you were given delegate permissions to send mail on someone else's behalf. HTH, Mark -----Original Message----- From: Tortise at Paradise [mailto:tortise at paradise.net.nz] Sent: Friday, April 25, 2003 3:54 AM To: accessd at databaseadvisors.com Subject: [AccessD] Outlook Express and generating e-mails to send specifying the sender Hi All Can anyone tell me if I can specify the sender (when OE has many sending e-mail addresses set up) when I generate an e-mail in an access database? (Specifying who to, subject and body is relatively well documented etc but this?) With many thanks and.... Kind regards, David Hingston _________________________________________________________________________ mailto:tortoise at paradise.net.nz Personal Webpages: http://203.79.82.163/ Automated search engine manager: http://www.engines2go.com/ Home of Break Reminder, Clipboard Express, MP3 Detective and TimesOwn: http://www.cheqsoft.com/ _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com