Link to home
Start Free TrialLog in
Avatar of jatpannu
jatpannu

asked on

Changing the From value when sending mail triggered by a WebQuerySave

I'm attempting to send mail to a SMTP/POP mail server (external mail domain) from a Domino server when a user saves a document via WebQuereySave.  When viewed, I'd like the From address to be different than that of the Server.  How do I specify a different address and how can do that accross multiple datases?  I would like this return address to be an Internet Mail address and not a Notes address.  Here is an example of what I see when viewing the mail using outlook:

From:  server/notesdomain%notesdomain@internetdomain.com
       (i.e. sev1/acme%acme@loonytoons.com)
To:  user@internetdomain.com
Subject....

Any help would be greatly appreciated.

jat
ASKER CERTIFIED SOLUTION
Avatar of stltt
stltt

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jatpannu
jatpannu

ASKER

So do I just do a

doc.PRINCIPAL = "FROM_EMAIL"

before sending?
Yeap !  Principal field should do the trick for you. Copying the document to the mail.box is making a mess here.

:-)
Thanks for the reply.  I tried it and the following resulted:

Outlook inbox displayed the msg, but the from was blank.

Upon opening the email, the From fied in the header still has the server address.

help?
did you stamp the doc.From = "ADDRESS" ???
What server version are you running for your outbound SMTP mail? Support for from/sent by was added somwhere on the 4.6 versions.