Question

Connecting to a different mailin DB in lotus notes

Asked by: Dezzar82

Hi All,

I am using some code originally posted by Bill Hanson for sending HTML emails through lotus notes.  Posted here:  http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/Lotus_SmartSuite/Lotus_Notes/Q_24468076.html?sfQueryTermInfo=1+attach+displai+imag+lotu

..and thank you very much Bill it has provided some functionality long missing from my systems.

Previously I had been using some avilable code that I'd fine tuned for just plain text emails....

Two questions then:
a) I find with this code that I am unable to set the "Principal" with the email.  Generally I had been able to say set say (MailDoc.Principal = "Frederick Von Harpen") in the mail code and so when the mail was sent, it would appear to come from good ol frederick.  Setting [Call doc.ReplaceItemValue ("Principal","Frederick Von Harpen")]is ineffectual on this code and I'm not really sure why....it should work the same as does CopyTo, BlindCopyTo, RepyTo etc...all of which work, except "Principal"

b) I would like to be able to send the mail through a specified mail database.  The code just grabs your default mail DB for sending the mail, but here in the office we have lotus notes open with our own mail, and common shared mailboxes.  How would I modify the code to select a specific mailbox?

I am not overly proficient in VB so please be kind in your responces as I am likely to simply copy paste and test :)

Cheers
DeZZar

##FOR REFERENCE THIS IS (IN PART) THE CODE ORIGINALLY PROVIDED BY BILL HANSON##
Sub ValidationComplete(sendto As String, ByVal subject As String, ByVal html As String, imageFiles() As String, imageTypes() As String, imageIds() As String, ByVal fromFile As Boolean)
 
  Dim sess As Object, db As Object, doc As Object, stream As Object
  Dim mimeBody As Object, mimeHtml As Object, mimeFile As Object, mimeImage As Object, mimeHeader As Object
  Dim mailServer As String, mailFile As String
  Dim i As Integer
  Dim convertMime As Boolean
  Const ENC_NONE = 1725
  Const ENC_QUOTED_PRINTABLE = 1726
  Const ENC_IDENTITY_8BIT = 1729
  Const ENC_IDENTITY_BINARY = 1730
  
  ' Create an email doc
  Set sess = CreateObject("Lotus.NotesSession")
  sess.Initialize ("nag1999")
  mailServer = sess.GetEnvironmentString("MailServer", True)
  mailFile = sess.GetEnvironmentString("MailFile", True)
  Set db = sess.GetDatabase(mailServer, mailFile, False)
  Set doc = db.CreateDocument()
  doc.SaveMessageOnSend = False
  Call doc.ReplaceItemValue("Form", "Memo")
  Call doc.ReplaceItemValue("Subject", subject)
  'This isn't working for some reason
  'Call doc.ReplaceItemValue("Principal","John Smith")
  
  ' add the body as a mime html part
  convertMime = sess.convertMime
  sess.convertMime = False
  Set stream = sess.CreateStream()
  'If (fromFile) Then html = FileRead(html)
  html = html
  stream.WriteText (html & "<br><br>")
  Set mimeBody = doc.CreateMIMEEntity("Body")
  Set mimeHtml = mimeBody.CreateChildEntity(Nothing)
  Call mimeHtml.SetContentFromText(stream, "text/html; charset=""iso-8859-1""", ENC_QUOTED_PRINTABLE)
  Call stream.Close
  
  ' add images referenced by cid tags
  For i = 0 To UBound(imageFiles)
    Set mimeImage = mimeBody.CreateChildEntity(Nothing)
    Set mimeHeader = mimeImage.CreateHeader("Content-ID")
    Call mimeHeader.SetHeaderVal("<" & imageIds(i) & ">")
    Call stream.Open(imageFiles(i))
    Call mimeImage.SetContentFromBytes(stream, imageTypes(i) & "; name=" + imageIds(i), ENC_IDENTITY_BINARY)
    Call stream.Close
  Next
   
  ' send the document
  Call doc.Send(False, sendto)
 
'Added some clean up as some issues with locking notes up were encountered
Set sess = Nothing
Set db = Nothing
Set doc = Nothing
Set stream = Nothing
Set mimeBody = Nothing
Set mimeHtml = Nothing
Set mimeFile = Nothing
Set mimeImage = Nothing
Set mimeHeader = Nothing
 
End Sub

                                  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:

Select allOpen in new window

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-10-07 at 23:25:14ID24794942
Tags

lotus notes html email maildb mime

Topics

Lotus Notes

,

Hypertext Markup Language (HTML)

Participating Experts
1
Points
200
Comments
18

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. how to export from lotus to MS and SmartSuite
    Hi, I would like to export the contest of invoice form in Lotus Client R5 to Microsoft Office and Smartsuite . I am quite new about this features, so I would thank if anyone could tell me where I may find a good place to guide me step by step on exporting. Thanks a lot.
  2. Lotus SmartSuite 96/97 & Windows 98/ME
    Hello, I'm going to buy a computer with Windows 98 or Windows ME. I have CDs for both Lotus SmartSuite 96 and 97 (Word Pro, Lotus 1-2-3, etc.), and would like to know whether either of these suites (which were developed for Windows 95) will work with Windows 98 and/or Window...
  3. MSOffice vs IBM Lotus SmartSuite
    hi.. Can anybody explain me in details the difference between "MSOffice 2000 or above" and "IBM Lotus SmartSuite". Thanks in advance anu

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: sjef_bosmanPosted on 2009-10-08 at 01:58:19ID: 25523263

To me, the line with
      Call doc.ReplaceItemValue("Principal","John Smith")
seems completely legit. If you have 2 John Smiths at your company, you'd better use the complete hierarchical name, like
      Call doc.ReplaceItemValue("Principal","John Smith/OU/Acme")

> How would I modify the code to select a specific mailbox?
What exactly do you mean by that? Do you want the mail saved, in a specific mail database? To do that, you open that mail database and set SaveMessageOnSend to True.

 

by: Dezzar82Posted on 2009-10-08 at 03:51:19ID: 25523853

sorry Bosman, the call for "Principal" has nothing to do with the mail DB being used.  It simply changes the "Name" the email appears to come from.

 

by: sjef_bosmanPosted on 2009-10-08 at 04:12:58ID: 25524003

I know. It normally works, but I don't know why it doesn't work here.

What you want with the mail database I don't understand. At the moment, you don't really use the database: the code needs "some" database to create a document in, but that's all, since the document isn't saved. In fact, you could have used ANY database. So what do you want exactly with the mailin database??

 

by: Dezzar82Posted on 2009-10-08 at 05:00:49ID: 25524337

Using Lotus Notes I have my own mail database - which is for my own personal email.  call the database DeZZar82.nsf....this is an inbox, sent items, folders etc....

The code above (and all the lotus email code I've used in the past) simply uses your 'default' mail database to send the email created by the code.

However, within my lotus notes program I can not only use my own mail database...the DeZZar82 mail in database (say for arguments sake email address dezzar82@mycompany.com) but also other databases that I have access to (say CompanyEnquiries@company.com).

So the code above doesn't have a way to specify that I do not want mail sent using DeZZar82 as the mail database, but rather 'CompanyEnquiries' instead.

Don't confuse the two portions of my question. One doesn't relate to the other.  "Principal" is just a setting to let you change the 'name' the mail appears to come from.  Using other mail code I have I can specify "Principal" as Mikey Mouse and so when you recieve an email from my database it will come from "Mikey Mouse"  it will still however have used the 'default' lotus mail database to send the mail....(DeZZar82)

 

by: sjef_bosmanPosted on 2009-10-08 at 07:47:34ID: 25526036

No, sorry, it doesn't work like that in Notes, that is to say: I sense a misconception about the mail database that you use. Which is: you DON'T really use any database at all. All the code does is, basically: an in-memory NotesDocument object is created, the object is filled and sent away, and then it is destroyed! The object is not saved to disk. Hence, you could have created that very same object in ANY database, because you don't use a form, you don't use fields, or any property or method that requires a document saved to disk. Setting doc.Form= "Memo" is just an assignment, nothing else. It means in this case that the receiving end will recognise which form should be used to open the document received. That's all.

That's why I asked my question: where does a mail-in database come in??

 

by: Dezzar82Posted on 2009-10-08 at 15:03:42ID: 25530672

it is a given that you know alot more about notes than I do so I apologise for any mis-understandings.

I'll attach the code I have been using in the past to simply construct plain text emails and perhaps this might shed some light on where I am coming from.

In the code above, if I change the line:
doc.SaveMessageOnSend = False

the email being sent will be saved in the sent items of (DeZZar82@company.com) the mail file I am refering to as my default mail database and any recieving the mail will see that it has come from Dezzar82@company.com and when they hit reply it will go back to DeZZar82@company.com.  

It would not matter if my lotus notes had 4 different mail databases open (all sending and recieving mail on my machine):
(dezzar82@company.com) (enquiries@company.com) (feedback@company.com) (complaints@company.com)
The code would still manage to save in the sent item in the mail database that hosts dezzar82@company.com

In the code below the line "Set Maildb = Session.GetDatabase ("",MailDbName) seems to cleary point to the fact I could, if I knew how, set up the code to use say (enquiries@company.com) as the mail database instead of my own (my default) dezzar82.

I guess I am looking for some information on how this can be controlled and how it might be integrated into the code above that uses mime for sending html email instead of the method employed by the code below.

Private Sub LotusEmail()
On Error GoTo Err_LotusEmail
 
Dim Maildb As Object 'The mail database
Dim UserName As String 'The current users notes name
Dim MailDbName As String 'The current users notes mail database name
Dim MailDoc As Object 'The mail document itself
Dim AttachME As Object 'The attachment richtextfile object
Dim Session As Object 'The notes session
Dim EmbedObj As Object 'The embedded object (Attachment)
Dim strBody As String 'Email body text
Set Session = CreateObject("Notes.NotesSession")
Set Maildb = Session.GetDatabase("", MailDbName)
    
    If Maildb.IsOpen = True Then
    Else
        Maildb.OPENMAIL
    End If
 
'Email body text _
Need to put this into html. _
Simply adding html tags doesn't work
strBody = "Hi Bob," & vbCrLf & _
vbCrLf & "This is supposed to be a HTML email!" & vbCrLf & _
vbCrLf & "But it isn't is it?"
    
Set MailDoc = Maildb.CreateDocument
    MailDoc.Form = "Memo"
    MailDoc.sendto = "derrick.n.goostrey@nab.com.au"
    MailDoc.CopyTo = ""
    MailDoc.BlindCopyTo = ""
    MailDoc.Principal = "Mickey Mouse"
    MailDoc.ReplyTo = ""
    MailDoc.subject = "email subject"
    MailDoc.htmlBody = strBody
    MailDoc.SaveMessageOnSend = False
'   True if email to be saved in sent items
    
    
'    Include if attachements required
'    Set AttachME = MailDoc.CreateRichTextItem("Attachemt")
'    Set EmbedObj = AttachME.EmbedObject(1454, "", "C:\File path in here")
 
    MailDoc.CreateRichTextItem ("Attachement")
    MailDoc.Send 0, Recipient
 
'Clean up
Set Maildb = Nothing
Set MailDoc = Nothing
Set AttachME = Nothing
Set Session = Nothing
Set EmbedObj = Nothing
 
Exit_LotusEmail:
    Exit Sub
    
Err_LotusEmail:
    MsgBox "The following error has occured" & _
    vbCrLf & vbCrLf & Err.Number & "-" & Err.Description & _
    vbCrLf & vbCrLf & "Please report to system administration", vbOKOnly + vbCritical, "Lotus Notes Email Error"
    
End Sub

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:

Select allOpen in new window

 

by: Dezzar82Posted on 2009-10-08 at 15:41:05ID: 25530980

just something to add to this, if I close my own default email within notes and simply leave one of the other inboxes open.  When the original code posted runs, it still manages to use my 'closed' mail file as the the place to save the sent item and the recipient of the email still sees it as coming from me "dezzar82" reply automatically selects Dezzar82 as the place to submit a reply the message

Based on what you said regarding the fact the code doesn't use a mail faile as such I would then expect the recipient to recieve the mail from some undefined name and when the hit reply it would have a blank email address as it wouldn't know "where" the email came from....?

So the comment that the system isn't using a mailfilemailin databse (whatever you want to call it)  to send the email doesn't make any sense...

and if it is supposed to just use whatever mail database is open on your machine, it doesn't explain why, when my own mail file is closed and I only have another common inbox open, that it has still used my mail file as the effective sender...

 

by: sjef_bosmanPosted on 2009-10-08 at 16:20:10ID: 25531231

Setting
      doc.SaveMessageOnSend = True
changes everything, because its effect will be that the document is saved in the database it was created in. If that's what you want to happen, and you want it to be a different mail database, change

    Set Maildb = Session.GetDatabase("", MailDbName)    
    If Maildb.IsOpen = True Then
    Else
        Maildb.OPENMAIL
    End If

into

    Set Maildb = Session.GetDatabase("your server", "mail/somemaildatabase.nsf")
   
    If Not Maildb.IsOpenThen
        MsgBox "Cannot open mail database"
        Exit Sub
    End If

That snippet would open a specific database on a specific server, which is probably what you need. The person who runs your code would obviously need sufficient access rights to create the mail (Author rights will do).

 

by: sjef_bosmanPosted on 2009-10-08 at 16:30:38ID: 25531293

Assuming that you set SaveMessageOnSend to True,

> if I close my own default email within notes and simply
> leave one of the other inboxes open.  
The code runs in the background, and has nothing to do with the foreground Notes client activities.

> When the original code posted runs, it still manages
> to use my 'closed' mail file as the the place to save
>the sent item
Correct. This happens because the OpenMail method specifically opens the current user's mail database.

> and the recipient of the email still sees it as coming
> from me "dezzar82" reply automatically selects Dezzar82
> as the place to submit a reply the message
Ah, no, not true. There is a difference between the mail database and the current user. The current user sends the mail, so his return address will be used in the mail, irrespective of the mail database the mail will be stored in.

So there are 2 things very important:
- the current user: when a mail is sent through the Domino server, it is sent in his/her name with the right reply address
- the NotesDatabase object:  when the document is saved (which is not required for mail to work), it is saved in the database in which the NotesDocument object was created

Sorry for any misunderstandings, I might have misunderstood you. Hope this clears it up a bit.

 

by: Dezzar82Posted on 2009-10-08 at 16:38:37ID: 25531343

thanks sjef it seems we're both on the same page now.

So the second snipet of code I posted is not the one I want to change the mail file on....it is the original one posted by Bill Hanson for using MIME to send HTML email.

I don't see the same: Set Maildb = Session.GetDatabase("", MailDbName)
in his code and so I don't know where to start to achieve this.  It seems to only call on notes with the following:

 Set sess = CreateObject("Lotus.NotesSession")
 sess.Initialize ("nag1999")

You may also notice that the second set of code I posted (the plain text one) doesn't require a password to be set - it just uses the open mail file - Bill Hansons code specifically calls for the password and if you leave it out your presented with a Notes message asking for a password before the message will send.  Is there any way to avoid this.

Effectively, can the original code posted be modified to work more like the second code posted in regards to setting the mail file, changing the "principal" and functioning through an open lotus notes sessions without asking for passwords etc...

You help is greatly appreciated!

Cheers
DeZZar

 

by: Dezzar82Posted on 2009-10-08 at 17:22:34ID: 25531544

ok.....looks like I've done it. Thanks for the tips, it pointed me in the right directio.  

I have changed:
  MailServer = sess.GetEnvironmentString("MailServer", True)
  MailFile = sess.GetEnvironmentString("MailFile", True)
  Set db = sess.GetDatabase(MailServer, MailFile, True)

to just:
  Set db = sess.GetDatabase("SERVER/NAME/ETC", "mailindb\name.nsf", True)

and I am able to connect to any database to 'save' the message in sent items.

I am still however frustrated with:
 Call doc.ReplaceItemValue("Principal", "John Smith")

In order to achieve the desired effect I MUST be able to change the 'Name' the email is coming from.  I can set ReplyTo in the same manner without issue.  And can set Principal in other notes email code.

Any help as to why it wont work with this code would be greatly appreciated!

 

by: sjef_bosmanPosted on 2009-10-09 at 02:44:42ID: 25533417

Sorry, but you're exactly right. Just a small remark: instead of
  Set db = sess.GetDatabase("SERVER/NAME/ETC", "mailindb\name.nsf", True)
it's better to use
  Set db = sess.GetDatabase("SERVER/NAME/ETC", "mailindb\name.nsf", False)
The last parameter indicates whether you want the database to be created on the server if it doesn't exist. Which you don't want, I assume.

As for John Smith: is there a John Smith in the company, and in the server's Name and Address book? Otherwise it won't work. But let's assume there is.

Can you look in the saved mail if there is a field called Principal? In the view, click right on the mail, then click on Document Properties. On the 2nd tab, you'll see all fields (called Items actually) in the document. Does Principal have the correct value? Do the same for the received mail (send one to yourself). What do you see?

 

by: sjef_bosmanPosted on 2009-10-09 at 02:50:26ID: 25533439

By the way, if this is an agent, you CAN change the sender's name: ask your admin to create an additional notes-ID for a fake person, and ask him to sign the agent using that ID. To prevent asking the admin over and over again to re-sign the agent, when you applied changes to it, you can put the real code in a script library, which you call from the agent.

So in the agent's Initialize, you only have

      Use "Agents"

      Call SendMailAgent

and in a scriptlibrary called "Agents" you put all the code, starting with

      Sub SendMailAgent
            ...
      End Sub

 

by: Dezzar82Posted on 2009-10-09 at 05:09:10ID: 25534114

thanks sjef, I will check the principal settings when I'm back at work on monday.

What I find a little strage though is that, with the second set of code I posted above (the full script for just sending plain text emails) I can literally set "Principal" to whatever I want.  I could put  "MailDoc.Principal = "Slap My Forehead" and it will work, people will be getting mail from "Slap My Forehead" obviously without 'Slap My Forehead' ever actually being found anywhere in any system/address book or otherwise...

If your having trouble believing me, try the code.

So based on this, I'm not seeing any relevant connection between the setting of "Princpal" which appears to me to be simply a setting to amend the display name..(?) and the actual existance of the name a user on the servers....
?

 

by: sjef_bosmanPosted on 2009-10-09 at 05:34:51ID: 25534295

Could be, I believe you. I suppose, what should happen is that Domino retrieves the user you mention in the Principal field, fetches his or her mail address, and posts it to the other side. Anyway, that's what I am led to believe.

Setting Principal seems to need to be handled differently with MIME:
http://www-10.lotus.com/ldd/nd85forum.nsf/PlatformAllThreadedWeb/92fe3533ae6374d5852575ec006ce5d0?OpenDocument

 

by: Dezzar82Posted on 2009-10-14 at 15:05:00ID: 25575697

OK well to date there is still no solution to setting the "Principal" or for all intensive purposes the "From Name" on the emails being sent with this code.

I checked the property settings on the actual emails and strangely enough, emails issued with this code do not contain "Principal" in the mail settings, instead the available settings are: (in part)
- AltFrom
- DisplayFrom
- DisplayFrom_Preview
- From

All of which are in-effectual on the actual name displayed.  Some of these settings are indeed changed by the code when sending the email (becuase they have the value set in the code when checked) but don't actually change the from name displayed.

The thread contained in the link above might provide clues to someone who knows Mime inside out, but for me it basically just shows someone had the same issue and then suddenly figured it out without bother to share the result.

So I will close this thread and live with this issue for a while longer, maybe revisit with a new thread soon.

Cheers
DeZZar.

 

by: sjef_bosmanPosted on 2009-10-15 at 02:07:46ID: 25578640

How disappointing...

Last attempt: can you also set the InetFrom-field, to the Internet reply address of the principal?
http://www.josephhoetzl.com/topics/lotus/

 

by: Dezzar82Posted on 2009-11-03 at 14:14:02ID: 25734407

Partial points awarded for assitance with setting a different mail db for the original code posted.

Setting principal in the original code remains an outstanding issue.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...