Tip

Changing the sender's email address in web mail

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.

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 vrk_prasad@hotmail.com to be your sender's email address, then the code is : doc.principal = "vrkprasad@hotmail.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 <vrk_prasad@hotmail.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 vrk_prasad@hotmail.com vrkprasad@hotmail.com

This was first published in October 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.