Solved

Send on behalf of via SMTP

Posted on 2003-11-20
14
1,896 Views
Last Modified: 2011-09-20
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?
0
Comment
Question by:DJWalker
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 2
  • 2
  • +1
14 Comments
 
LVL 49

Expert Comment

by:sunray_2003
ID: 9788639
>> "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
 

Author Comment

by:DJWalker
ID: 9788739

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
 
LVL 49

Expert Comment

by:sunray_2003
ID: 9788778
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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

Author Comment

by:DJWalker
ID: 9788852

I don't think you understand my question. Unless you know about smtp headers you will not be able to answer this question.
0
 
LVL 31

Expert Comment

by:rid
ID: 9789354
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
 

Author Comment

by:DJWalker
ID: 9789429

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
 
LVL 31

Expert Comment

by:rid
ID: 9789505
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
 

Author Comment

by:DJWalker
ID: 9789556

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
 
LVL 18

Expert Comment

by:chicagoan
ID: 9793567
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
 

Author Comment

by:DJWalker
ID: 10236423

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

0
 
LVL 18

Expert Comment

by:chicagoan
ID: 10237258
I don't quite see what the bug was - this is using the exchange api's or SMTP?
0
 

Accepted Solution

by:
DJWalker earned 0 total points
ID: 10251202

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Explore the encryption capabilities built into Google Apps and how these features can help you meet privacy policy and regulatory compliance, but are not a full solution. Understand and compare the most popular email encryption services for Google A…
Are you using email marketing software? If not, you're missing out on effortless marketing and the reaching of desired conversion rates through email marketing software.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This Micro Tutorial will demonstrate the easy use of Gmail embedding images in your email so the recipient of your email can view them in context.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question