Hello, I have a small lotusscript agent to send mail notifications in my web application whenever somebody registers to my website. However, the mail always carries the server name as the sender's address.
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
I searched notes.net and several other forums without any success. Then I found this simplest answer to this problem by chance.
the correct syntax is : doc.principal = "<emailaddress><blankspace>" for example, if you want firstname.lastname@example.org to be your sender's email address, then the code is : doc.principal = "email@example.com " likewise, if you want capture the sender's address through user's input the code is doc.principal = email+" " where 'email' is the email address entered by the user or stored in a field. the email should be suffixed by a single blank space. another example, doc.principal = "RK Prasad Venugopal <firstname.lastname@example.org> ". Again the blank space after the email address is very important. If you miss it, it will give wrong results. I hope this will solve the problem many of us facing. Thanks & Regards Ramakrishnaprasad Venugopal email@example.com firstname.lastname@example.org