Solved

Send on behalf of via SMTP

Posted on 2003-11-20
14
1,869 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
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
 

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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

Pegasus Mail (http://www.pmail.com/) is a donation ware that is a collaboration of David Harris along with his team members. It is a desktop mail client that offers the option of configuring more than one mail account with single set up. It supports…
We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
This Micro Tutorial demonstrates  how Internet marketers work with competitive analysis data, and a common task in data preparation is creating separate column for domains. You will then extract from a list of URLs.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

920 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

16 Experts available now in Live!

Get 1:1 Help Now