Looking for assistance...Yes for a change I'm asking the questions :-)
Category Principal Field MIME
In an agent being called by a web user I am generating a MIME email. All works great, email looks great. The issue is, I cannot get the Principal field to work with a MIME email.
I am Doing this:
doc.Principal = "CN=John Brown/OU=US/O=Epilio@Notesdomain"
But the mail still doesn't come from John. I can change the replyto field etc. just that Principal doesn't stick.
Searching the notes forum there have been some people suggest you can't do this with a MIME email, can anyone confirm if this is true, I'm really hoping it isn't as my email formatting will be totally screwed up.
Thanks for any help anyone can provide.
Also whilst I'm on the subject, we shouldn't have to do this voodoo with Principal fields and such. It should be a simple lotusscript function call to override this stuff.
Update: Thanks everybody, I ended up writing to the mail.box. I don't like doing it, but I couldn't find any other way. I'll chalk it up as one of those Domino quirks, that makes us love it so much.
In an agent being called by a web user I am generating a MIME email. All works great, email looks great. The issue is, I cannot get the Principal field to work with a MIME email.
I am Doing this:
doc.Principal = "CN=John Brown/OU=US/O=Epilio@Notesdomain"
But the mail still doesn't come from John. I can change the replyto field etc. just that Principal doesn't stick.
Searching the notes forum there have been some people suggest you can't do this with a MIME email, can anyone confirm if this is true, I'm really hoping it isn't as my email formatting will be totally screwed up.
Thanks for any help anyone can provide.
Also whilst I'm on the subject, we shouldn't have to do this voodoo with Principal fields and such. It should be a simple lotusscript function call to override this stuff.
Update: Thanks everybody, I ended up writing to the mail.box. I don't like doing it, but I couldn't find any other way. I'll chalk it up as one of those Domino quirks, that makes us love it so much.
Comments
Posted by Martin At 03:43:40 AM On 08/05/2008 | - Website - |
But I could be wrong, I've not done much with this stuff!
Posted by Ben Poole At 05:16:35 AM On 08/05/2008 | - Website - |
Posted by Glen Urban At 05:24:34 AM On 08/05/2008 | - Website - |
{ Link }
and it has worked great.
Posted by Stuart Bogom At 07:17:00 AM On 08/05/2008 | - Website - |
Posted by Jeremy Hodge At 08:01:04 AM On 08/05/2008 | - Website - |
Posted by Kevin Pettitt At 09:31:40 AM On 08/05/2008 | - Website - |
Does anyone know why this works for regular notes mail in agents, but not MIME mails?
Posted by Carl Tyler At 12:58:40 PM On 08/05/2008 | - Website - |
Also with the direct writing to mail.box I remember there was some change (version 7 or 8?) that it shouldn't support mails with attachments anymore. Have no idea why.
Posted by Martin At 02:59:31 AM On 08/06/2008 | - Website - |
Posted by Glen Urban At 05:20:48 AM On 08/06/2008 | - Website - |
Posted by Carl Tyler At 02:42:48 PM On 08/06/2008 | - Website - |
set mimeBody = doc.CreateMimeEntity( "Body")
set headerBody = mimeBody.CreateHeader( "InetFrom")
call headerBody.SetHeaderVal( "youremail")
And the same was necessary for Subject field as well.
Looking forward for your solution.
Posted by Martin At 04:28:46 AM On 08/07/2008 | - Website - |