Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

From Field

Status
Not open for further replies.

weddingday

Technical User
Sep 6, 2005
1
US
I have lotus script that sends out emails on certan conditions. That works fine. What I want to do is have the from field be from one person or department not from each individual person that sent the email. Is there a way to do that.

Thanks
 
Is this email being sent by an agent ? If yes, you could set the agent properties to run under the credentials of a given person. The From field should reflect that. Or you could sign the agent with the corresponding ID, same effect.
If the email is being sent by user interaction, then that user's name is practically unavoidable.

Pascal.
 
Add a field "Pricipal" to the form that you are using to mail. Populate the "Principal" field with the value you wish the user to see in the From section of the email.

- My two cents
 
I have a LotusScript Script Library you can freely download from my website that will provide you with the functionality to set the 'From' field to whatever you want. It can be easily added to any application / agent.

Its features include:
* Initialises a new mail message
* Handles all the mail document formatting & field values required by the router
* Allows you to control the 'From' field so you can set it to whatever value you like
* Performs any necessary lookups to address books to get the correct email addresses and/or breakdown group names to individuals
* Works with Notes/Domino 4.6x, 5.x, 6.x
* Sends the message
* And more....

All you need to do is tell the script who to send the message to, what From address you would like, set the Subject line and provide content for the body field. It's that easy!

This script is fully supported and comes complete with documentation, examples and revision history. All code includes developer comments.

Here's the link to download it:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top