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 email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
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 email@example.com to be your sender's email address, then the code is : doc.principal = "firstname.lastname@example.org " 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 <email@example.com> ". 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 firstname.lastname@example.org email@example.com