Hi Muthu,
The most common issue when receiving error 500 is that the recipient is not allowed by the server or that the syntax of the address is incorrect. I was able to reproduce the error by sending an email to the address "test.test" because the address needs to be of the type "[user]@[hostname]".
The best way to find out what is causing the error is to probe the actual messages between your computer and the mail server. I will recommend that you use the "SMTP Email Send Message.vi" to try to send a test message. Follow these instructions:
- Open the front panel of "SMTP Email Send Message.vi".
- Fill out the "mail server", "recipients", "subject" and "message" controls.
- Go to "Browse >> Show Vi Hierarchy" and double-click on the VI named "SMTP Email Command.vi" (see the attached "SMTP Email Command.jpg").
- Go to "File >> VI Properties... >> Execution" and disable "Reentrant execution". Click "OK".
- Go to the block diagram and place a breakpoint and a probe by right-clicking on the "reply string" wire (see where on the attached "Error500Probe.jpg").
- Run the "SMTP Email Send Message.vi".
- Press the "Continue" button (red "Pause" button) several times to see all the messages received from the mail server. By viewing these messages you should be able to understand what goes wrong in your case. Try to invoke errors by intentionally specifying wrong addresses.
I hope that this will help you troubleshoot your SMTP program - otherwise, please let me know.
- Philip Courtois, Thinkbot Solutions