Send on behalf of via SMTP

I would like to modify a program that I have that sends e-mails to an Exchange or Lotus smtp server.  I would like to be able to send the messages "on behalf of" another user rather than the message appearing as if it has actually been sent by the user as it does now.  Does anybody know what I need to add to the message?
DJWalkerAsked:
Who is Participating?
 
DJWalkerAuthor Commented:

This was was using SMTP. The bug was that Exchange was not correctly handling the case where 'Sender' and 'From' were different.  The guy from Microsoft said that it was listed as a fix in the SP3 rollup documentation so there might be more information there but I haven't bothered to look. I was happy enough that applying the SP3 rollup fixed the problem.
0
 
sunray_2003Commented:
>> "on behalf of" another user rather than the message appearing as if it has actually been sent by the user as it does now.

Hmm.. I donot think what you are trying to do is legal ... May be I am misunderstanding your question..

The receiver of the email should get from a genuine user ... Why do you want to send on behalf of somebody else ??


Sunray
0
 
DJWalkerAuthor Commented:

My program is used to send emails internally within an organisation.  It currently allows me to appear to be anyone I choose (ie because it sets the "from:" line in the smtp message).  I would like the e-mails to say - "sent by DJWalker on behalf of Manager" just like normal delegation/send on behalf of.
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
sunray_2003Commented:
well why dont you change the From Name as "sent by DJWalker on behalf of Manager" instead of your name or

put a signature like "sent by DJWalker on behalf of Manager" so that everyone will know what you are sending in behalf ..

wont this be a simple solution

Sunray
0
 
DJWalkerAuthor Commented:

I don't think you understand my question. Unless you know about smtp headers you will not be able to answer this question.
0
 
ridCommented:
As far as I know there is the "Sender" header, which should be the actual sender of the message. Not using correct data
would be spoofing the sender - not quite kosher. I suppose you could do whatever you  like on your internal network, though.

There is also the "From" header, which would be the string you fill in with your proper name in your client when you
set it up.

So you'll have:

Sender: stobby@liftoff.org
From: Stobby Liftoff

The "From" field could be: "Stobby Liftoff on behalf of H. Grinchley" or whatever. The trick may be to be able to change the
field in a simple way. I suppose you could use different "accounts" in your mail client, set up differently. If you send a lot of mail on behalf of a lot of different people, that seems tiresome.

/RID
0
 
DJWalkerAuthor Commented:

RID,

Since posting my original question, I have discovered that if i set the Sender and From fields like so:
From: Manager@domain.com
Sender: Administrator@domain.com

Then in Lotus Domino/Notes I get the effect I require - ie the mail appears in the inbox as coming from Administrator but when the mail is opened, it says "sent by Administrator" underneath "From Manager"

In Exchange/Outlook the sender field seems to be ignored and the message is simply from Manager.
 
0
 
ridCommented:
Well that seems like a workable solution then?
I get the impression that many Microsoft applications deviate from standards to make it "simpler" for the user. It muddies the picture anytime you want to find out what is really happening...

I suppose you could post a thread in Community Support area to get a points refund, as you seem to have solved the problem yourself.

Regards
/RID
0
 
DJWalkerAuthor Commented:

It's a workable solution for Domino, but it's actually more important that I have the "behalf of" effect for Exchange, so I'm still looking for ideas on getting that to work.

Thanks for your input anyway.
0
 
chicagoanCommented:
I think it depend on your client, if for instance I'm using POP or IMAP in Outlook and have local addresses, the displayed name for the sender of a message with simply
Return-Path:<bob@foo.bar>
From:<bob@foo.bar> will be bob@foo.bar
Bob could insert his name in the client and I'd get "Bob"
Return-Path:"Bob"<bob@foo.bar>
From:"Bob"<bob@foo.bar>
as I would in the first example if I had bob in my address book.

I think if you used
Reply-To:  "Sent by Administrator on behalf of Manager" <manager@foo.bar>
From: "Sent by Administrator on behalf of Manager" <manager@foo.bar>
Sender: "Sent by Administrator on behalf of Manager" <manager@foo.bar>
you might get your desired results, though using the native system might resolve the smtp address and display the 'friendly name, if that's the case you might want to create an alias not in the public director to avoid that, and perhaps even use an alien SMTP relay to eliminate the local mail systen from prettying up the displayed field.

0
 
DJWalkerAuthor Commented:

I've spoken to Microsoft support about this problem. It's a bug in Exchange. It's fixed in the post SP3 rollup.

0
 
chicagoanCommented:
I don't quite see what the bug was - this is using the exchange api's or SMTP?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.