Solved

Send on behalf of via SMTP

Posted on 2003-11-20
14
1,861 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
  • 6
  • 2
  • 2
  • +1
14 Comments
 
LVL 49

Expert Comment

by:sunray_2003
Comment Utility
>> "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
Comment Utility

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
Comment Utility
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
 

Author Comment

by:DJWalker
Comment Utility

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
Comment Utility
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
Comment Utility

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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 31

Expert Comment

by:rid
Comment Utility
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
Comment Utility

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
Comment Utility
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
Comment Utility

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
Comment Utility
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
Comment Utility

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
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…
In this Experts Exchange video Micro Tutorial, I'm going to show how small business owners who use Google Apps can save money by setting up what is called a catch-all email address in their Gmail accounts. By using the catch-all feature, small busin…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now