1. CJ Lai
  2. PowerBuilder
  3. Tuesday, 28 January 2020 19: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

Attachments (1)
Accepted Answer
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 29 January 2020 10:46 AM UTC
  2. PowerBuilder
  3. # Permalink
Comment
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Tuesday, 28 January 2020 20:28 PM UTC
  2. PowerBuilder
  3. # 1

for this to work, the address itself must exist and you must have permissions to send on behalf of

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.