- CJ Lai
- PowerBuilder
- Tuesday, 28 January 2020 07:05 PM UTC
Hi
I need to send emails from PB (2017 R3, build 1915) by Outlook OLE
I am able to send any email but I would like to, and sort of have to, change the From to a DoNotReply@emailaddress.com instead of my own.
I have researched and come across many suggestions. I have tried the following properties but none has the desired effect:
lole_Item.SentOnBehalfOfName - this one has an lengthy error message back to my Inbox telling me I didn't have some permission to do so (attached)
lole_Item.Sender - this one sends the email out but on the receiving end, my real address is displayed
lole_Item.SendUsingAccount and lole_Item.SenderEmailAddress either errored out or didn't display the DoNotReply as the sender/From
I would really like to make SentOnBehalfOfName to work, though.
What should I do to achieve that? Could someone please provide step-by-step instructions? Such as:
- Do I need an Outlook account created on the Exchange server called DoNotReply?
- What kind of permission dose my account need to make DoNotReply work?
- What setting changes do I need to make to my account and/or that of DoNotReply (if it needs to be created)?
Thank you for your input
CJ
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.