<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
<channel>
<title>CodeStore.net comments on "The Principal Field"</title>
<description>Replies to blog "The Principal Field" on codestore.net.</description>
<link>http://www.codestore.net/</link>
<lastBuildDate>Mon, 21 Jun 2010 10:13:42 -0500</lastBuildDate>
<atom:link href="http://www.codestore.net/store.nsf/blog.xml?Open=20060321" rel="self" type="application/rss+xml" />

<item>
	<title>Reply from Jean</title>
	<pubDate>Mon, 21 Jun 2010 10:13:42 -0500</pubDate>
	<author>Jean</author>
	<description><![CDATA[ 
		<p>using Notes 8.0.2.  email notice executed from a call to script lib, from query save event.  So I can't use the "signed agent" method.  the following following works for me, </p>
		<p>Memo.DisplaySent = sReplyTo</p>
		<p>Memo.tmpDisplaySentBy = sReplyTo</p>
		<p>Memo.INetFrom = sReplyTo</p>
		<p>but if I add, Memo.Principal = sReplyTo, it did not work.  </p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=550B28D1FD4EE9C8862577490053A6FD"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20060321?OpenDocument#DOC_550B28D1</link>
</item><item>
	<title>Reply from AndyShep</title>
	<pubDate>Tue, 11 May 2010 10:59:58 -0500</pubDate>
	<author>AndyShep</author>
	<description><![CDATA[ 
		<p>Mail.box works far better than the Lotus Method... you end up with that stupid 'Sent on Behalf of" thing on the email that causes the wrong people to get responses to email when people respond manually using the lotus tools.. Lotus has a signature.. use that to verify the sender but preventing coders from changing the From field is a joke.  </p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=47DCFBD561C27FD1862577200057E320"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20060321?OpenDocument#DOC_47DCFBD5</link>
</item><item>
	<title>Reply from PaulE</title>
	<pubDate>Tue, 15 Dec 2009 04:19:02 -0600</pubDate>
	<author>PaulE</author>
	<description><![CDATA[ 
		<p>aagghh,  Just completely bitten on the arse by </p>
		<p>"doc.Principal=User@acme.org@NotesDomain &lt;mailto:User@acem.org@NotesDomain&gt;"</p>
		<p>thanks for the solution!</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=FAC971D5733AFDFD8625768D0038ABD7"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20060321?OpenDocument#DOC_FAC971D5</link>
</item><item>
	<title>Reply from Jimmie Mo Jimmie</title>
	<pubDate>Fri, 20 Feb 2009 10:16:18 -0600</pubDate>
	<author>Jimmie Mo Jimmie</author>
	<description><![CDATA[ 
		<p>I used pricipal and</p>
		<p>Memo.DisplaySent = sReplyTo</p>
		<p>Memo.tmpDisplaySentBy = sReplyTo</p>
		<p>Memo.INetFrom = sReplyTo</p>
		<p>worked but I dropped the @NotesDomain and it works to all email providers. I have no idea why.</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=B7A31F4B44A44185862575630059620A"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20060321?OpenDocument#DOC_B7A31F4B</link>
</item><item>
	<title>Reply from paul atwork</title>
	<pubDate>Sat, 02 Aug 2008 19:30:21 -0500</pubDate>
	<author>paul atwork</author>
	<description><![CDATA[ 
		<p>hi Mark</p>
		<p>I *love* Socket Workbench for this - See www.sigmasolutions.com.au. You can get an evaluation copy from them like I did.</p>
		<p>It is fantastic at trapping the messages on a communication path and especially useful when debugging SMTP email. You direct your domino server to send on port 26, you get Socket Workbench to listen on port 26, and then resend on port 25. You then get to see everything in between or send your own messages using the inbuilt client tool.</p>
		<p>p</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=0B4D39E16A7978588625749A0002C71F"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20060321?OpenDocument#DOC_0B4D39E1</link>
</item><item>
	<title>Reply from Jake Howlett</title>
	<pubDate>Thu, 7 Feb 2008 05:21:00 +0100</pubDate>
	<author>Jake Howlett</author>
	<description><![CDATA[ 
		<p>Hi Mark,</p>
		<p>Have you tried using WireShark? {<a rel="nofollow" href="http://www.wireshark.org/">Link</a>}</p>
		<p>I've used it on a windows client to see what my browser's sending/receiving but I'm sure it could be used on the server to do the same.</p>
		<p>Jake</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=93FDF33ADD88806A8525747A003363B8"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20060321?OpenDocument#DOC_93FDF33A</link>
</item><item>
	<title>Reply from mark</title>
	<pubDate>Mon, 7 Jan 2008 10:58:00 +0100</pubDate>
	<author>mark</author>
	<description><![CDATA[ 
		<p>We have an application where a small number of people who do not have Notes IDs but who authenticate using LDAP need to fill in a form that uses a Domino email list in the Bcc to send a message. The WQO looks up the sender's email & the WQS writes principal, replyto etc as described above. It works when the email is received in Notes but not when sent to Exchange (no message is received or returned - presumably as an antispam measure). Anyone know a good way to trap outgoing message headers from Domino so I can debug this - otherwise it looks like writing direct to mbox, mbox1, mbox2 </p>
		<p>Thanks</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=D833D26FAFF2A7338525747900524A75"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20060321?OpenDocument#DOC_D833D26F</link>
</item><item>
	<title>Reply from Dietrich Willing</title>
	<pubDate>Thu, 22 May 2008 21:30:00 +0100</pubDate>
	<author>Dietrich Willing</author>
	<description><![CDATA[ 
		<p>This is what I found.</p>
		<p>Use the Principal field only - no effect</p>
		<p>Use Principal field and DisplaySent field - message is sent as agent signer on behalf of display email address</p>
		<p>Use Principal, DispaySent and INetFrom fields - message sent as coming from display email address.</p>
		<p>So</p>
		<p>Call mailDoc.ReplaceItemValue("Principal", |my_display@xxxx.com@NotesDomain|)</p>
		<p>Call mailDoc.ReplaceItemValue("DisplaySent", |my_display@xxxx.com@NotesDomain|)</p>
		<p>Call mailDoc.ReplaceItemValue("ErrorsTo",|my_display@xxxx.com@NotesDomain|)</p>
		<p>Call mailDoc.ReplaceItemValue("INetFrom", "my_display@xxxx.com")</p>
		<p>will be sent out as though it has come from my_display@xxxx.com.</p>
		<p>This is the header of an email sent this way to an Outlook server</p>
		<p>Microsoft Mail Internet Headers Version 2.0</p>
		<p>...</p>
		<p>From: my_display@xxxx.com</p>
		<p>...</p>
		<p>To: Dietrich.Willing@blaablaablaa.com</p>
		<p>Message-ID: &lt;OFBB3A441D.935102DA-ONCA257451.008326CF-CA257451.008326CF@the actual domain&gt;</p>
		<p>Sender: my_display@xxxx.com</p>
		<p>...</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=D245A31DBB6BDA3D8525745200084A28"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20060321?OpenDocument#DOC_D245A31D</link>
</item><item>
	<title>Reply from Fredrik</title>
	<pubDate>Thu, 23 Mar 2006 00:41:00 +0100</pubDate>
	<author>Fredrik</author>
	<description><![CDATA[ 
		<p>mail.box is an old friend, as long you handle the possibility of server configuration being altered, and mail.box becomes mail1.box a.s.o.</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=977B6415EC2633138625713A0024CDD2"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20060321?OpenDocument#DOC_977B6415</link>
</item><item>
	<title>Reply from David</title>
	<pubDate>Wed, 22 Mar 2006 15:30:00 +0100</pubDate>
	<author>David</author>
	<description><![CDATA[ 
		<p>I've been writing to mail.box for years.  Works like a charm.  We too have 3 mail.boxes, but I haven't had any issue with corruption.  I guess you could just check to see if mail1.box was up, if not move the next and/or load balance if you are sending a lot of mail during an scheduled time.</p>
		<p>I know it's not supported and not documented, but you know what, so are many other things that do work.  </p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=FE4D29CA770B4A758625713900761F7B"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20060321?OpenDocument#DOC_FE4D29CA</link>
</item><item>
	<title>Reply from Andy Brunner</title>
	<pubDate>Wed, 22 Mar 2006 06:35:00 +0100</pubDate>
	<author>Andy Brunner</author>
	<description><![CDATA[ 
		<p>I run into this problem some weeks again and after some investigation, I came up with this code to send a memo:</p>
		<p>Sub SendEMail(SendTo As String, Subject As String, BodyText As String)</p>
		<p>Dim Session As New NotesSession</p>
		<p>Dim CurrentDatabase As NotesDatabase</p>
		<p>Dim MailDocument As NotesDocument</p>
		<p>Dim RichTextItem As NotesRichTextItem</p>
		<p>Set CurrentDatabase = Session.CurrentDatabase</p>
		<p>Set MailDocument = CurrentDatabase.CreateDocument</p>
		<p>MailDocument.Form = "Memo"</p>
		<p>MailDocument.Principal = "Application Name@NotesDomain"</p>
		<p>MailDocument.DisplaySent = "Application Name@NotesDomain"</p>
		<p>MailDocument.ErrorsTo = "Error-InBox@Internet.Domain"</p>
		<p>MailDocument.ReplyTo = SendTo</p>
		<p>MailDocument.SendTo = SendTo</p>
		<p>MailDocument.Subject = Subject</p>
		<p>Set RichTextItem = New NotesRichTextItem(MailDocument, "Body")</p>
		<p>Call RichTextItem.AppendText(BodyText)</p>
		<p>Call MailDocument.Send(False)</p>
		<p>End Sub</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=D7A6C783F1D67DB28625713900452D93"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20060321?OpenDocument#DOC_D7A6C783</link>
</item><item>
	<title>Reply from Eric</title>
	<pubDate>Wed, 22 Mar 2006 06:00:00 +0100</pubDate>
	<author>Eric</author>
	<description><![CDATA[ 
		<p>I use the following code after setting the MIME content:</p>
		<p>Memo.DisplaySent = sReplyTo</p>
		<p>Memo.tmpDisplaySentBy = sReplyTo</p>
		<p>Memo.INetFrom = sReplyTo</p>
		<p>Where "sReplyTo" is the e-Mail adres which you want to show in the e-Mail and where the receiver is replying to.</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=295CBF7F402FE979862571390041EEF8"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20060321?OpenDocument#DOC_295CBF7F</link>
</item><item>
	<title>Reply from harkpabst_meliantrop</title>
	<pubDate>Wed, 22 Mar 2006 03:15:00 +0100</pubDate>
	<author>harkpabst_meliantrop</author>
	<description><![CDATA[ 
		<p>Did you note that the use of Principal is no longer in the documentation? As of Notes 6 this makes it (obviously) an undocumented feature (also Julie admitts, that she's still using it all the time). As far as I get it, the "official" way to go would be a run-on-behalf-of agent by now.</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=3CD4974186ADC768862571390032D8CA"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20060321?OpenDocument#DOC_3CD49741</link>
</item><item>
	<title>Reply from Henning Heinz</title>
	<pubDate>Tue, 21 Mar 2006 17:09:00 +0100</pubDate>
	<author>Henning Heinz</author>
	<description><![CDATA[ 
		<p>mail.box works fine for me. I would never go back to the Principal stuff and I am happy that it still works (as it is not supported and considered a security risk). </p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=CE04F0BA804B407D86257138007F2D50"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20060321?OpenDocument#DOC_CE04F0BA</link>
</item><item>
	<title>Reply from Andrew Tetlaw</title>
	<pubDate>Tue, 21 Mar 2006 16:38:00 +0100</pubDate>
	<author>Andrew Tetlaw</author>
	<description><![CDATA[ 
		<p>Always remember the "Principal is your pal" :)</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=0EF266890E6149F986257138007C69DE"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20060321?OpenDocument#DOC_0EF26689</link>
</item><item>
	<title>Reply from chris bordeleau</title>
	<pubDate>Tue, 21 Mar 2006 12:13:00 +0100</pubDate>
	<author>chris bordeleau</author>
	<description><![CDATA[ 
		<p>@Joe :: Problem with putting things in the mail.box is that you can not be assurred that mail.box will exist... we use 3 mail boxes (everyone should have more than one) so they are named mail1.box - mail3.box... and if you are writing to one directly and it becomes currupted you are SOL until you fix it... It really is a bad practice... there are probably other reasons why it is bad but those two alone stop me...</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=D8D1DF468B2472368625713800641617"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20060321?OpenDocument#DOC_D8D1DF46</link>
</item><item>
	<title>Reply from Christian K</title>
	<pubDate>Tue, 21 Mar 2006 11:33:00 +0100</pubDate>
	<author>Christian K</author>
	<description><![CDATA[ 
		<p>Sometimes you may want the sender field to display something like "Automatic mailer". An easy way to achieve this is to create a special user with fist name Automatic and surname mailer. This users internet address my be shortname@somedomain.com. It simplifies the agent if you add the shortname to the username field. This way you can get away with</p>
		<p>doc.Principal = "shortname"</p>
		<p>If you sign the agent by this special user "Automatic mailer", the sender information in the mail will be simplified (no information about designer or server domain will show up).</p>
		<p>This will be equivalent to sending from "Automatic mailer &lt;shortname@somedomain.com&gt;"</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=6B157AEEC33F59CB8625713800607164"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20060321?OpenDocument#DOC_6B157AEE</link>
</item><item>
	<title>Reply from Joe</title>
	<pubDate>Tue, 21 Mar 2006 11:17:00 +0100</pubDate>
	<author>Joe</author>
	<description><![CDATA[ 
		<p>I inherited an app once that created/saved a new doc in the mail.box - think they jut set the From field.  Seemed to work.</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=C9E2CD4F30B1AB7886257138005EF9B0"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20060321?OpenDocument#DOC_C9E2CD4F</link>
</item>

</channel>
</rss> 
