Sending MIME messages using LotusScript

I’d like to know how I can stop Notes from inserting the “From” header in the message. I am setting it using the following code (both don’t work, and you can only use one at a time or else you get errors) but I receive the email message with the From header looking like

From: MYNotes_Name/ORG%ORG@mydomain.com

(where MyNotes_Name is my Notes common user name and ORG is my organization in the Domino directory)

CODE:

Dim mailDoc As NotesDocument

Dim body As NotesMIMEEntity

Dim header As NotesMIMEHeader



Set mailDoc = New NotesDocument(db)

Set body = mailDoc.CreateMIMEEntity

’ use the doc to set From

Call mailDoc.ReplaceItemValue("From", "NOREPLY@mydomain.com")

'or

’ use the MIME header to set From

Set header = body.CreateHeader("From")

Call header.SetHeaderVal("NOREPLY@mydomain.com")

Is there a setting I need to enable to tell Domino to keep it’s hands out of the message? Or is it because I’m using the NotesDocument.send() method? Is there a way around this so I can set the From header?

Thanks,

Shawn

Subject: Sending MIME messages using LotusScript

you can’t change the value of FROM, it’s system generated, anything you place in there will be overwritten by the router

use the principal field instead (username@internetdomain@notesdomain)

Subject: RE: Sending MIME messages using LotusScript

Thank you sooooo much!