Sending Mail in others' name

damrakandy
damrakandy used Ask the Experts™
on
Experts,

  I am using Lotus notes R5(v. 5.0.8).  I found out i can send an email with someone else email address if i switch the corresponding email in

Tools
-> Preferences
  -> Basics
   -> at the This mail file belongs to: email

I would like to turn this off if possible.

thanks,
andy


   
     
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
just try to put the name as follows,

"Display Name" <email@domain.com>

-Arun.
Commented:
If you look in the design of the Memo form, you will see that certain fields like From, Principal, etc. are derived from the value that the user enters in the "This mail file belongs to:" field.

You could make this into a computed field rather than an editable field, but there are two points you should be aware of:

1) This requires you to make a change to the mail template, and then you must then load a design task on the server to push this change to all the user mail files. Also be aware that when you upgrade Domino (5.0.1 -> 5.0.6 for example), the mail template usually gets replaced, so you need to apply this change again or keep a copy of the changes somewhere else so you could easily re-apply them with a copy-and-paste for example.

2) If you make this into a computed field, the only way to set or change this field's value would be to do it programatically (i.e. you would need to write an agent to do it).

Hope this helps.

Scott

Commented:
Actually this is not the big problem that it seems to be. If user "John Doe" changed the "Mail file owner" field to e.g. "The President". Then users recieving messages from this user would se the following in the header (true for both notes and smtp mail):

From: "The President"
Sent by: "John doe"

In other words - it is not possible to hide the true sender.
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.

Commented:
My point was - that this is why changing the mail template is more work than it might be worth.

Author

Commented:
stltt,

   thanks for pointing that out.  however, taking your example, when the receiver replying the message send by "John Doe" in "The President", the replied message will go to the "The President".  The reason this is a problem is that users may accidentally change the "Mail file owner" field or forget about they have changed it.  

I can turn their control to author then their rights will be limited.  (Can't Delete Emails!)

changing the template is an option, but i don't think i am knowledgable enough and my boss won't let me.

Andy

Author

Commented:
stltt,

thanks for the help.

Andy

Commented:
How about this:

Create a scheduled agent in the mail template, and push this design change out to all the client mail files. The agent would do a lookup to the Public NAB using the mail file name (mail\jsmith.nsf for example) as a key, get the associated Person document, and thus find out who belongs to that mail file (John Smith/Sales/Atlanta/Acme for example), then check to see if this is the same name as what is stored in the "This mail file belongs to" field. If the name is not the same, then the agent could change it to be the same, or send an alert to an administrator, or do whatever, etc.

Scott

Author

Commented:
Scott,

  thanks for the help, but my boss won't let me change the original template.  Your idea would work if I get more power.

thanks,
andy

Commented:
The reply problem is true.
Maybe a nightly scheduled agent to just check that the mailfile owner is correct will be a sufficient solution. The agent could be in a database by itself, and not in the mail template?
Ok now i got the real issue here.  I had a similar problem sometime back here with few of my co-workers.

I wrote a small script behind a button and mailed it to only those people who had the problem.  They clicked that button once and i took the user name and set it in the profile document.

I dont know if this is a simple fix that can be lived with.
My users are happy anyways.

-Arun.
You could always put a formula in the QueryOpen event of the mail template, that set the "Owner" field on the Calendar Profile document to @Username.

-Craig
Sorry, I meant "PostOpen" in the above comment, not "QueryOpen".

-Craig

Commented:
OK, if you can't change the mail template, then you could still create the agent as I said, but just put it in its own database, as stltt said. The only difference is that now the agent need to loop through all mail databases and perform the check on each one. One way to do that is to use a NotesDBDirectory object and for each NotesDatabase in this object, check to see if the string "mail\" is in the database FilePath, if it is, then it is probably a mail database.

Hope this helps.

Scott
damrakandy has requested a point split.

stltt,

please collect your points here:

http://www.experts-exchange.com/Applications/Email/Lotus_Notes/Q_20411378.html

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial