Changing the From value when sending mail triggered by a WebQuerySave

jatpannu
jatpannu used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
The recommended method is by using the reserved field name PRINCIPAL. Sett this to whatever you want the from address to be.

The recipient will then se:
From: (whatever you enter in PRINCIPAL)
Sent by: sev1/acme...

If this isnt good enough for you, then you will have to change the FROM field, and then COPY (not send) the document to the mail.box (or mail1.box) on the server, and save. This is an unsupported method.

Author

Commented:
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.

:-)
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Author

Commented:
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" ???

Commented:
What server version are you running for your outbound SMTP mail? Support for from/sent by was added somwhere on the 4.6 versions.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial