I access 2 notes email accounts one in a corporate domain and one in a domain I manage. By using my corporate id and certifying it on my local domain I can acess both email databases at the same time.
I’ve managed to create 2 location documents one so I can send email from either domain. But if I forget to change location before sending a note from my local email database the reply to address is messed up.
Any way I can hard code the principle and reply to email addresses (I assume in the template) so all emials created on my local email database have the right address?
Subject: Hard Code Email Address in Mail Template
Wrong. Unfortunately IBM have agreed on some mail sending rules, and they use a process within the .send code.
May be simpler grabbing a openntf mail template that already has removed the .send feature. They will be advertised for the team shared address use.
This code sends the document, therefore you cannot intercept the principal / replyto etc.
You would need to REM out their .send code I think in the CoreEmailClasses (in a couple of places.)
Then call your code to edit the sender details and deposit the email into the mail.box
(In this case remember to add in the recipients field, as this too is generated by the .send function)
By stopping the router, you will see what fields are on the document and adjust code to strip / replace with the desired content.
Why they don’t make it much easier in this ‘collaborative software’ so shared databases (addresses) can be used with ease.
Supposedly, if your name is in the Delegate Access field in the Mail Preferences, it should take this into account and send the mail as though it was from the mail account, not the sender.
But I have found this not to work. Maybe because I too am trying to do this with other domain IDs. Or maybe their interpretation is that it works for them. But not necessarily for all types of Mail servers that can respond to different headers. ie ReplyTo, From or Sender