Setting Reply-To for SMTP MEssages

Good Morning,

I have a Domino server acting as a web server only - the email is handled by a Non-Domino server.

When I send an email via LotusScript, I set the Principal and the Replyto. For example, to “sales@domain.com”.

However, upon receipt, reply-to, Principal both show “MyName/Domino%net”

I have seen other posts talking about making sure the person document has the correct internet address, and I have set the internet address to sales@, and the shortname to “sales”. No good.

Any other suggestions on making my repl-to and principal fields stick as it routes through the verious servers?

Thanks…

Subject: Setting Reply-To for SMTP MEssages

Hi

If you ‘send’ a mail with a function or script the name taken is the signer’s of the agent.

The easiest way ios to put the created document into the mail.box

Instead of ‘doc.send’ use those lines (replace docMemo by the document-variable and nss by the notessession-variable you’ve used):

docMemo.PostedDate = Now

docMemo.From = docMemo.Principal(0)

Dim ndbMailBox As New NotesDatabase( nss.currentdatabase.server, "mail.box" )

Print "Put New Mail into " + ndbMailbox.filename + " on " + ndbMailbox.server

stST = implode( docMemo.SendTo , ",")

stCT = implode( docMemo.CopyTo , ",")

stBCC = implode( docMemo.BlindCopyTo , ",")

docMemo.Recipients = split(stST + "," + stCT + "," + stBCC , ",")

Call docMemo.save(True,False,True)		

Call docMemo.CopyToDatabase( ndbMailBox )

Call docMemo.remove(True)

This script copies the document to the mail.box and there it will be sent by the notes server (From can also be set!)

Subject: RE: Setting Reply-To for SMTP MEssages

Thanks, that worked fairly well.

I was able to shrink it a bit by just creating the docMemo directly in mail.box and skipping the copy, but the concept is the same. :slight_smile:

Subject: RE: Setting Reply-To for SMTP MEssages

pay attention: the usual user access to the mail.box is ‘Depositor’ which means: only copies can be placed in but no document might be created.In your partucular case it might work (webagent with adminsigner) but in other cases the ‘longer’ way is the one which works for sure.