Lotusscript: from address when sending email as a web user

I have a lotus script agent that works as a web user, since I need to know who the current user is and handle the information accordingly. The problem is that when sending email in this agent, the email address sends the email address of the user, not the one I defined. I set the following fields before sending email (like mime):

    mailDoc.Form = "Memo"
    mailDoc.Subject = strSubject
    mailDoc.InetSendTo = strFrom
    mailDoc.PostedDate = Now
    mailDoc.Principal = strFrom
    mailDoc.FROM = strFrom
    mailDoc.INETFROM = strFrom
    mailDoc.~INetPrincipal = strFrom
    mailDoc.ReplyTo = strFrom
    mailDoc.SendFrom = strFrom
    mailDoc.SentBy = strFrom
    mailDoc.altFrom = strFrom
    mailDoc.tmpDisplaySentBy = strFrom
    mailDoc.DisplaySent = strFrom
    mailDoc.ToShow = strFrom

    mailDoc.SendTo = strSendTo

But still the From address is displayed as the web user address. What am I missing here? Any help would be really appreciated.

+5
source share
6 answers

Principal , , , . : mail.box. TeamMail OpenNTF. . http://www.openntf.org/Projects/pmt.nsf/ProjectLookup/Team%20Mail%20Tamer

, , , .

, : DLL Extension Manager, ... , ? .

+3

(http://www-10.lotus.com/ldd/nd6forum.nsf/0/13706561dc7d693f852570af0062fcec?OpenDocument):

Principle = "customerservice@xyz.com"
maildoc.Form = "Memo"
' Principal overrides From
' Must be formatted as below and must include the domain @xyz.com
' Format should equal: "From User" <fromuser@xyz.com@DOMAIN>
maildoc.Principal = |"Customer Service" <| + Principle + |@xyz.com>|
maildoc.From = Principle
maildoc.AltFrom = Principle
maildoc.SendFrom = Principle
maildoc.INetFrom = Principle
maildoc.tmpDisplaySentBy = Principle
maildoc.tmpDisplayFrom_Preview = Principle
maildoc.DisplaySent = Principle

, - !

+5

Lotus Notes LotusScript. - , . , .

, , - " ", .

, !

+4

, . @NotesDomain, NotesDomain - Domino.

QuerySend

    .INetFrom = |"| + strDispName + |" <| + strEmail + ">"
    .Principal =  |"| + strDispName + |" <| + strEmail + "@" + profile.NotesDomain(0) + ">"
    .From = strEmail
    .tmpDisplaySentBy = strEmail
+3

, ! )

( Domino , info@server.xxx) memo: "INetFrom" .

, ( gmail), , "INetFrom"!

, (XPages SSJS):

try {
    var memo:NotesDocument = database.createDocument();
    memo.appendItemValue("Form", "Memo");
    memo.appendItemValue("Subject", "Subject text");
    memo.appendItemValue("Body", "Body text");
    memo.appendItemValue("SendTo", "userName");
    memo.appendItemValue("INetFrom", "info@server.com");
    memo.send(); 
}catch (e){
    print ("Send Error: " + e);
}
+1

All Articles