I am having trouble sending a screenshot of a form to an external email address.
When the code below sends an email to an email address within our domain, the screenshot of the form shows up correctly. If the email is sent to an external email address, the screenshot shows up as follows the LotusScript below. Essentially, all of the information is there, but none of the form.
Here is my code:
Dim docA As NotesDocument
Dim docB As NotesDocument
Dim myrtitem As NotesRichTextItem
Dim success As Variant
Dim DBProfile As NotesDocument
Set db = session.CurrentDatabase
Set docA = uidoc.Document
Set docB = New NotesDocument( db )
Set myrtitem = New NotesRichTextItem( docB, "Body" )
Set DBProfile = db.getProfileDocument("DBProfile")
docB.Form = "Memo"
docB.ReplyTo = "myemail@internaldomain.com" 'Email recipient will be notified that they should reply to this address. If they hit 'reply' this address will populate the "To" field
docB.Subject = "replyaddress@internaldomain.com"
success = docA.RenderToRTItem( myrtitem ) ' Add a screenshot of the Help Desk call to the email
docB.SendTo = DBProfile.InnovatedEmails 'This is an array of email addresses. If internal domain addresses are included, they get the screenshot of the document, if external addresses are included, they get inintelligible text output. This array of email addresses are specified in the DBProfile document
docB.CopyTo = DBProfile.COTBInnovatedCC ' This array of email addresses are specified in the DBProfile document
Call docB.Send(False )
The screenshot that shows up looks like this:
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
| My Organization | | | | | | | | |
| | | | | | | | | |
| - Client | | | | | | | | |
| Services | | | | | | | | |
| Call | | | | | | | | |
| Tracking | | | | | | | | |
| System | | | | | | | | |
| Call #
| | | | | | | |
| 20| | | | | | | | |
| 09| | | | | | | | |
| 00| | | | | | | | |
| 02| | | | | | | | |
| 37| | | | | | | | |
| | | | | | | | | |
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
----------------------------------------------|
| |
----------------------------------------------|
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
| Caller Name:| | Caller | | | | Phone: | | 555-2959 |
| | | Name/Finance/GRT| | | | | | |
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
----------------------------------------------|
| |
----------------------------------------------|
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
| Department: | | Finance | | | | PC Name: | | |
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
----------------------------------------------|
| |
----------------------------------------------|
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
| Division: | | Corporate Information | | | | Network | | |
| | | and Technology | | | | ID: | | |
| | | | | | | | | |
| | | | | | | | | mname|
| | | | | | | | | IP |
| | | | | | | | | Address: |
| | | | | | | | | |
| | | | | | | | | |
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
----------------------------------------------|
| |
----------------------------------------------|
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
| | | Business Applications | | | | Applicatio| | |
| | | | | | | n ID | | |
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
----------------------------------------------|
| |
----------------------------------------------|
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
| Asset Tag: | | | | | | Call | | Caller|
| | | | | | | Owner: | | name/Finance/GTB|
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
----------------------------------------------|
| |
----------------------------------------------|
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
| | | | | | | | | |
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
----------------------------------------------|
| |
----------------------------------------------|
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
| | | | | | | | | |
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
----------------------------------------------|
| |
----------------------------------------------|
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
| | | | | | | | | |
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
----------------------------------------------|
| |
----------------------------------------------|
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
| | | | | | | | | |
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
----------------------------------------------|
| |
----------------------------------------------|
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
| Long | | None | | | | | | |
| Description.| | | | | | | | |
| : | | | | | | | | |
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
----------------------------------------------|
| |
----------------------------------------------|
|-------------±-------------±----------------------±±±---------------------±----------±----------±------------------------>
| Issue Type: | | Help Desk | | | | | | |
|-------------±-------------±----------------------±±±----------------
And it goes on and on.