WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Lotus Notes

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Define Reply Email Address

 Keywords: Lotus Notes Notes.NotesSession IBM Email Return Reply Address

Question:

I am using a script for sending Email through Lotus Notes which works great. I am using Article ID: W16655 of Winbatch tech support.

Currently this script process sends the agents return email address. Is there a way to have just a generic reply address sent.

Our call management system here at IBM has a notification of parts backorder process and we inform customers of status of a part on a daily basis. What we need is a way to keep the agents email address from being sent in this notification process.

Thanks!

Answer:

Not sure. You will need to reference the Lotus Notes OLE Object model documentation to see if there is a method or property exposed by Lotus Notes that allows this.

http://www-128.ibm.com/developerworks/lotus/documentation/notes/

http://www.ibm.com/developerworks/lotus/library/ls-Using_OLE_in_Notes/

User Reply:

When sending a email through Lotus Notes 7 I found the statement which keeps the senders email address from being replyed to and embeds a different email address for replys.
doc.appendItemValue("Principal", "Parts Backorder/Atlanta/IBM")
Here is my sample code:
DISTRIBUTION_LIST = "email address" ;commas between addresses

Subject = "ABC"
Body = "This is a test"

Session = ObjectCreate("Notes.NotesSession")

db = Session.GetDatabase("", "")
If db.IsOpen == @False then db.OpenMail
doc = db.createDocument()

doc.appendItemValue("Form", "Memo");
doc.appendItemValue("Subject",Subject)

;***
;This statement keeps the senders email address from being replyed to and uses "Parts Backorder" as the "WHO" sent it

doc.appendItemValue("Principal", "Parts Backorder/Atlanta/IBM")

doc.appendItemValue("Body",Body)
doc.appendItemValue("SaveMessageOnSend",0) ;set to 1 if you want to save your message

doc.ReplaceItemValue("sendto",DISTRIBUTION_LIST)

doc.Send (0) 

doc = ""
db = ""
Session = ""
Hope this might help someone!

Article ID:   W18089
Filename:   Define Reply Email Address.txt
File Created: 2008:04:16:08:51:00
Last Updated: 2008:04:16:08:51:00