<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Sending an email with a custom &#8220;sender&#8221; with Lotus Notes/Domino</title>
	<atom:link href="http://www.josephhoetzl.com/sending-an-email-with-a-custom-sender-with-lotus-notesdomino/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.josephhoetzl.com/sending-an-email-with-a-custom-sender-with-lotus-notesdomino/</link>
	<description>Photography, IT Whathaveu, "Dad" stuff and other ramblings</description>
	<lastBuildDate>Wed, 04 Jan 2012 03:31:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Joseph Hoetzl</title>
		<link>http://www.josephhoetzl.com/sending-an-email-with-a-custom-sender-with-lotus-notesdomino/comment-page-1/#comment-162</link>
		<dc:creator>Joseph Hoetzl</dc:creator>
		<pubDate>Thu, 21 Oct 2010 17:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.josephhoetzl.com/?p=284#comment-162</guid>
		<description>I&#039;m not sure if you mean that you just want a link to a notes document, in the typical fashion, or, you want the document as an actual attachment as it&#039;s contents.If you just want a link to the Notes document, get a handle to the notes document you want to attach, and get the doc id and replica id of the database it is stored in, and create an anchor tag &quot;a href= to a notes:// style link The format is:notes://servername/db/view/docwhere db can be either the Replica ID (HIGHLY RECOMMENDED!) or the actual filepath/name; view and doc can be either the real names or aliases or UNID, which can all be obtained by parsing however you are getting a handle to the NotesDocument.Or, you can attachment any kind of document to a MIME mail by adding in a child entity (CreateChildEntity()) to the main body, set the header to a content-type with a value of mulitpart/mixed, set a content-disposition to attachment;yourfilename, set a content-ID to the same, create a stream, pull in that file as binary, in the child, do a SetContentFromBytes of that stream, setting the correct mime type - e.g. application/pdf or image/gif,close the stream and put all this before you fire off the final send.  Hopefully that sets you on the right path, if not, have a look in the v6 forums - http://www-10.lotus.com/ldd/nd6forum.nsf/Search?SearchView&amp;Query=n%3Ftes%3A//&amp;SearchOrder=0&amp;Start=1&amp;Count=100 for the notes:// stuff, or search for mime types, and/or content disposition and ENC_IDENTITY_BINARY.&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure if you mean that you just want a link to a notes document, in the typical fashion, or, you want the document as an actual attachment as it&#8217;s contents.If you just want a link to the Notes document, get a handle to the notes document you want to attach, and get the doc id and replica id of the database it is stored in, and create an anchor tag &#8220;a href= to a notes:// style link The format is:notes://servername/db/view/docwhere db can be either the Replica ID (HIGHLY RECOMMENDED!) or the actual filepath/name; view and doc can be either the real names or aliases or UNID, which can all be obtained by parsing however you are getting a handle to the NotesDocument.Or, you can attachment any kind of document to a MIME mail by adding in a child entity (CreateChildEntity()) to the main body, set the header to a content-type with a value of mulitpart/mixed, set a content-disposition to attachment;yourfilename, set a content-ID to the same, create a stream, pull in that file as binary, in the child, do a SetContentFromBytes of that stream, setting the correct mime type &#8211; e.g. application/pdf or image/gif,close the stream and put all this before you fire off the final send.  Hopefully that sets you on the right path, if not, have a look in the v6 forums &#8211; <a href="http://www-10.lotus.com/ldd/nd6forum.nsf/Search?SearchView&#038;Query=n%3Ftes%3A//&#038;SearchOrder=0&#038;Start=1&#038;Count=100" >http://www-10.lotus.com/ldd/nd6forum.nsf/Search?SearchView&#038;Query=n%3Ftes%3A//&#038;SearchOrder=0&#038;Start=1&#038;Count=100</a> for the notes:// stuff, or search for mime types, and/or content disposition and ENC_IDENTITY_BINARY.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guru</title>
		<link>http://www.josephhoetzl.com/sending-an-email-with-a-custom-sender-with-lotus-notesdomino/comment-page-1/#comment-161</link>
		<dc:creator>Guru</dc:creator>
		<pubDate>Thu, 21 Oct 2010 16:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.josephhoetzl.com/?p=284#comment-161</guid>
		<description>Great Work. How to add a notes document attachment. I tried and I was not able to accomplish this. It is Ok for me if it does not display in HTML. I want it in notes

Guru</description>
		<content:encoded><![CDATA[<p>Great Work. How to add a notes document attachment. I tried and I was not able to accomplish this. It is Ok for me if it does not display in HTML. I want it in notes</p>
<p>Guru</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Hoetzl</title>
		<link>http://www.josephhoetzl.com/sending-an-email-with-a-custom-sender-with-lotus-notesdomino/comment-page-1/#comment-132</link>
		<dc:creator>Joseph Hoetzl</dc:creator>
		<pubDate>Fri, 23 Apr 2010 01:21:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.josephhoetzl.com/?p=284#comment-132</guid>
		<description>The @NotesDomain lets the router know the address is an internal one.  Similar to using CN/OU/O format, but in &quot;internet address&quot; style.&lt;br&gt;&lt;br&gt;Yes, once you save it in the mail.box, the router treats it just as if a mail arrived into the box through &quot;normal&quot; means&quot;&lt;br&gt;&lt;br&gt;Thanks - glad it could help!</description>
		<content:encoded><![CDATA[<p>The @NotesDomain lets the router know the address is an internal one.  Similar to using CN/OU/O format, but in &#8220;internet address&#8221; style.</p>
<p>Yes, once you save it in the mail.box, the router treats it just as if a mail arrived into the box through &#8220;normal&#8221; means&#8221;</p>
<p>Thanks &#8211; glad it could help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris Mitchell</title>
		<link>http://www.josephhoetzl.com/sending-an-email-with-a-custom-sender-with-lotus-notesdomino/comment-page-1/#comment-131</link>
		<dc:creator>Kris Mitchell</dc:creator>
		<pubDate>Fri, 23 Apr 2010 00:31:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.josephhoetzl.com/?p=284#comment-131</guid>
		<description>What is the @NotesDomain at the end of the SenderN used for?  &lt;br&gt;&lt;br&gt;Does the mail get removed from the mail box once it&#039;s saved and picked up by the router?&lt;br&gt;&lt;br&gt;Nice work!  I&#039;ve been looking for this (or another solution) for a while.</description>
		<content:encoded><![CDATA[<p>What is the @NotesDomain at the end of the SenderN used for?  </p>
<p>Does the mail get removed from the mail box once it&#39;s saved and picked up by the router?</p>
<p>Nice work!  I&#39;ve been looking for this (or another solution) for a while.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Hoetzl</title>
		<link>http://www.josephhoetzl.com/sending-an-email-with-a-custom-sender-with-lotus-notesdomino/comment-page-1/#comment-122</link>
		<dc:creator>Joseph Hoetzl</dc:creator>
		<pubDate>Thu, 08 Oct 2009 18:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.josephhoetzl.com/?p=284#comment-122</guid>
		<description>Sorry about that - will fix the code.  &quot;From&quot; is a reserved word, and in my haste to ambiguate the code a bit, I used it.&lt;br&gt;&lt;br&gt;If you change it to sender or just about anything else, it should work.&lt;br&gt;&lt;br&gt;I change the code above from this:&lt;br&gt;&lt;br&gt;Dim from As String&lt;br&gt;&#039;the address you want the mail to appear to be from&lt;br&gt;from = &quot;FirstName LastName &lt;firstnamelastname@mydomain.com&gt;&quot; &lt;br&gt;...&lt;br&gt;Call mail.replaceItemValue(&quot;From&quot;, from )&lt;br&gt;Call mail.replaceItemValue(&quot;InetFrom&quot;, from )&lt;br&gt;&lt;br&gt;to:&lt;br&gt;&lt;br&gt;Dim Sender As String, SenderN As String&lt;br&gt;Sender = &quot;FName LName &lt;flname@domain.com&gt;&quot;&lt;br&gt;SenderN = &quot;FName LName &lt;flname@domain.com@NotesDomain&gt;&quot;&lt;br&gt;Call mail.replaceItemValue( &quot;From&quot;, SenderN )&lt;br&gt;Call mail.replaceItemValue( &quot;InetFrom&quot;, Sender )&lt;br&gt;&lt;br&gt;&lt;br&gt;As for the &quot;icons&quot; issue, you need to use a fully qualified path to it, since this is an email, not a webpage, it has no relative paths.  Again, I&#039;ll update the code and comment it, but for now you need to use something like:&lt;br&gt;&lt;img src=&quot;http://yourserver.com/icons/logo.gif&quot;&gt;&lt;br&gt;&lt;br&gt;Or, since I don&#039;t like to use the &quot;stock&quot; Domino directories for stuff like this, I simply have an &quot;images&quot; directory under my datadominohtml folder and then I use paths like:&lt;br&gt;&lt;img src=&quot;http://yourserver.com/images/logo.gif&quot;&gt;&lt;br&gt;&lt;br&gt;Glad you were able to make use of this!</description>
		<content:encoded><![CDATA[<p>Sorry about that &#8211; will fix the code.  &#8220;From&#8221; is a reserved word, and in my haste to ambiguate the code a bit, I used it.</p>
<p>If you change it to sender or just about anything else, it should work.</p>
<p>I change the code above from this:</p>
<p>Dim from As String<br />&#39;the address you want the mail to appear to be from<br />from = &#8220;FirstName LastName &lt;firstnamelastname@mydomain.com&gt;&#8221; <br />&#8230;<br />Call mail.replaceItemValue(&#8220;From&#8221;, from )<br />Call mail.replaceItemValue(&#8220;InetFrom&#8221;, from )</p>
<p>to:</p>
<p>Dim Sender As String, SenderN As String<br />Sender = &#8220;FName LName &lt;flname@domain.com&gt;&#8221;<br />SenderN = &#8220;FName LName &lt;flname@domain.com@NotesDomain&gt;&#8221;<br />Call mail.replaceItemValue( &#8220;From&#8221;, SenderN )<br />Call mail.replaceItemValue( &#8220;InetFrom&#8221;, Sender )</p>
<p>As for the &#8220;icons&#8221; issue, you need to use a fully qualified path to it, since this is an email, not a webpage, it has no relative paths.  Again, I&#39;ll update the code and comment it, but for now you need to use something like:<br />&lt;img src=&#8221;http://yourserver.com/icons/logo.gif&#8221;&gt;</p>
<p>Or, since I don&#39;t like to use the &#8220;stock&#8221; Domino directories for stuff like this, I simply have an &#8220;images&#8221; directory under my datadominohtml folder and then I use paths like:<br />&lt;img src=&#8221;http://yourserver.com/images/logo.gif&#8221;&gt;</p>
<p>Glad you were able to make use of this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: murraycroft</title>
		<link>http://www.josephhoetzl.com/sending-an-email-with-a-custom-sender-with-lotus-notesdomino/comment-page-1/#comment-121</link>
		<dc:creator>murraycroft</dc:creator>
		<pubDate>Thu, 08 Oct 2009 16:45:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.josephhoetzl.com/?p=284#comment-121</guid>
		<description>Hi Joseph -- I have been struggling to get a MIME email code to work and finally -- with some modification you example above is working -- thanks. I had tried the IBM example code but that was failing -- the send to being converted as &lt;&lt;a href=&quot;mailto:murraycroft@oakmont.co.uk&quot; rel=&quot;nofollow&quot;&gt;murraycroft@oakmont.co.uk&lt;/a&gt;&gt; rather than &lt;a href=&quot;mailto:murraycroft@oakmont.co.uk&quot; rel=&quot;nofollow&quot;&gt;murraycroft@oakmont.co.uk&lt;/a&gt; and our Domino SMTP failed.&lt;br&gt;Couple problems I am having with you example code.&lt;br&gt;&lt;br&gt;1. The &quot;from As String&quot; errors when compiled in Lotusscript. My workaround was to remove the from variables and enter the values directly in the Call Replace Item values.&lt;br&gt;&lt;br&gt;2. I can&#039;t seem to get the header logo to work.  What is the correct path to be used. I had expected &quot;/icons/XYZ.gif&quot; with this being the data/domino/icons folder on the server. ??  What am I missing here as this would be a nice touch.&lt;br&gt;&lt;br&gt;Finally -- build = Domino 8.0.2, using your example code in a WebQuerySave called agent to send out email alerts in an Project Issues log.&lt;br&gt;&lt;br&gt;All the best&lt;br&gt;&lt;br&gt;Murray</description>
		<content:encoded><![CDATA[<p>Hi Joseph &#8212; I have been struggling to get a MIME email code to work and finally &#8212; with some modification you example above is working &#8212; thanks. I had tried the IBM example code but that was failing &#8212; the send to being converted as &lt;<a href="mailto:murraycroft@oakmont.co.uk" >murraycroft@oakmont.co.uk</a>&gt; rather than <a href="mailto:murraycroft@oakmont.co.uk" >murraycroft@oakmont.co.uk</a> and our Domino SMTP failed.<br />Couple problems I am having with you example code.</p>
<p>1. The &#8220;from As String&#8221; errors when compiled in Lotusscript. My workaround was to remove the from variables and enter the values directly in the Call Replace Item values.</p>
<p>2. I can&#39;t seem to get the header logo to work.  What is the correct path to be used. I had expected &#8220;/icons/XYZ.gif&#8221; with this being the data/domino/icons folder on the server. ??  What am I missing here as this would be a nice touch.</p>
<p>Finally &#8212; build = Domino 8.0.2, using your example code in a WebQuerySave called agent to send out email alerts in an Project Issues log.</p>
<p>All the best</p>
<p>Murray</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Hoetzl</title>
		<link>http://www.josephhoetzl.com/sending-an-email-with-a-custom-sender-with-lotus-notesdomino/comment-page-1/#comment-117</link>
		<dc:creator>Joseph Hoetzl</dc:creator>
		<pubDate>Thu, 08 Oct 2009 14:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.josephhoetzl.com/?p=284#comment-117</guid>
		<description>Sorry about that - will fix the code.  &quot;From&quot; is a reserved word, and in my haste to ambiguate the code a bit, I used it.&lt;br&gt;&lt;br&gt;If you change it to sender or just about anything else, it should work.&lt;br&gt;&lt;br&gt;I change the code above from this:&lt;br&gt;&lt;br&gt;Dim from As String&lt;br&gt;&#039;the address you want the mail to appear to be from&lt;br&gt;from = &quot;FirstName LastName &lt;firstnamelastname@mydomain.com&gt;&quot; &lt;br&gt;...&lt;br&gt;Call mail.replaceItemValue(&quot;From&quot;, from )&lt;br&gt;Call mail.replaceItemValue(&quot;InetFrom&quot;, from )&lt;br&gt;&lt;br&gt;to:&lt;br&gt;&lt;br&gt;Dim Sender As String, SenderN As String&lt;br&gt;Sender = &quot;FName LName &lt;flname@domain.com&gt;&quot;&lt;br&gt;SenderN = &quot;FName LName &lt;flname@domain.com@NotesDomain&gt;&quot;&lt;br&gt;Call mail.replaceItemValue( &quot;From&quot;, SenderN )&lt;br&gt;Call mail.replaceItemValue( &quot;InetFrom&quot;, Sender )&lt;br&gt;&lt;br&gt;&lt;br&gt;As for the &quot;icons&quot; issue, you need to use a fully qualified path to it, since this is an email, not a webpage, it has no relative paths.  Again, I&#039;ll update the code and comment it, but for now you need to use something like:&lt;br&gt;&lt;img src=&quot;http://yourserver.com/icons/logo.gif&quot;&gt;&lt;br&gt;&lt;br&gt;Or, since I don&#039;t like to use the &quot;stock&quot; Domino directories for stuff like this, I simply have an &quot;images&quot; directory under my datadominohtml folder and then I use paths like:&lt;br&gt;&lt;img src=&quot;http://yourserver.com/images/logo.gif&quot;&gt;&lt;br&gt;&lt;br&gt;Glad you were able to make use of this!</description>
		<content:encoded><![CDATA[<p>Sorry about that &#8211; will fix the code.  &#8220;From&#8221; is a reserved word, and in my haste to ambiguate the code a bit, I used it.</p>
<p>If you change it to sender or just about anything else, it should work.</p>
<p>I change the code above from this:</p>
<p>Dim from As String<br />&#39;the address you want the mail to appear to be from<br />from = &#8220;FirstName LastName &lt;firstnamelastname@mydomain.com&gt;&#8221; <br />&#8230;<br />Call mail.replaceItemValue(&#8220;From&#8221;, from )<br />Call mail.replaceItemValue(&#8220;InetFrom&#8221;, from )</p>
<p>to:</p>
<p>Dim Sender As String, SenderN As String<br />Sender = &#8220;FName LName &lt;flname@domain.com&gt;&#8221;<br />SenderN = &#8220;FName LName &lt;flname@domain.com@NotesDomain&gt;&#8221;<br />Call mail.replaceItemValue( &#8220;From&#8221;, SenderN )<br />Call mail.replaceItemValue( &#8220;InetFrom&#8221;, Sender )</p>
<p>As for the &#8220;icons&#8221; issue, you need to use a fully qualified path to it, since this is an email, not a webpage, it has no relative paths.  Again, I&#39;ll update the code and comment it, but for now you need to use something like:<br />&lt;img src=&#8221;http://yourserver.com/icons/logo.gif&#8221;&gt;</p>
<p>Or, since I don&#39;t like to use the &#8220;stock&#8221; Domino directories for stuff like this, I simply have an &#8220;images&#8221; directory under my datadominohtml folder and then I use paths like:<br />&lt;img src=&#8221;http://yourserver.com/images/logo.gif&#8221;&gt;</p>
<p>Glad you were able to make use of this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: murraycroft</title>
		<link>http://www.josephhoetzl.com/sending-an-email-with-a-custom-sender-with-lotus-notesdomino/comment-page-1/#comment-116</link>
		<dc:creator>murraycroft</dc:creator>
		<pubDate>Thu, 08 Oct 2009 12:45:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.josephhoetzl.com/?p=284#comment-116</guid>
		<description>Hi Joseph -- I have been struggling to get a MIME email code to work and finally -- with some modification you example above is working -- thanks. I had tried the IBM example code but that was failing -- the send to being converted as &lt;&lt;a href=&quot;mailto:murraycroft@oakmont.co.uk&quot; rel=&quot;nofollow&quot;&gt;murraycroft@oakmont.co.uk&lt;/a&gt;&gt; rather than &lt;a href=&quot;mailto:murraycroft@oakmont.co.uk&quot; rel=&quot;nofollow&quot;&gt;murraycroft@oakmont.co.uk&lt;/a&gt; and our Domino SMTP failed.&lt;br&gt;Couple problems I am having with you example code.&lt;br&gt;&lt;br&gt;1. The &quot;from As String&quot; errors when compiled in Lotusscript. My workaround was to remove the from variables and enter the values directly in the Call Replace Item values.&lt;br&gt;&lt;br&gt;2. I can&#039;t seem to get the header logo to work.  What is the correct path to be used. I had expected &quot;/icons/XYZ.gif&quot; with this being the data/domino/icons folder on the server. ??  What am I missing here as this would be a nice touch.&lt;br&gt;&lt;br&gt;Finally -- build = Domino 8.0.2, using your example code in a WebQuerySave called agent to send out email alerts in an Project Issues log.&lt;br&gt;&lt;br&gt;All the best&lt;br&gt;&lt;br&gt;Murray</description>
		<content:encoded><![CDATA[<p>Hi Joseph &#8212; I have been struggling to get a MIME email code to work and finally &#8212; with some modification you example above is working &#8212; thanks. I had tried the IBM example code but that was failing &#8212; the send to being converted as &lt;<a href="mailto:murraycroft@oakmont.co.uk" >murraycroft@oakmont.co.uk</a>&gt; rather than <a href="mailto:murraycroft@oakmont.co.uk" >murraycroft@oakmont.co.uk</a> and our Domino SMTP failed.<br />Couple problems I am having with you example code.</p>
<p>1. The &#8220;from As String&#8221; errors when compiled in Lotusscript. My workaround was to remove the from variables and enter the values directly in the Call Replace Item values.</p>
<p>2. I can&#39;t seem to get the header logo to work.  What is the correct path to be used. I had expected &#8220;/icons/XYZ.gif&#8221; with this being the data/domino/icons folder on the server. ??  What am I missing here as this would be a nice touch.</p>
<p>Finally &#8212; build = Domino 8.0.2, using your example code in a WebQuerySave called agent to send out email alerts in an Project Issues log.</p>
<p>All the best</p>
<p>Murray</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Served from: josephhoetzl.com @ 2012-02-10 20:28:17 by W3 Total Cache -->
