LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error '500 5.5.1 Unknown command "MIME-Version: 1.0" specified' in smtp

dear sir,

when i am trying to send mail to my account through smtp server, i got the error as ahown above.
i don't know the real cause. please explain to me briefly with possible solution.my server name and account name have been verified correctly.
0 Kudos
Message 1 of 2
(4,372 Views)
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:

  1. Open the front panel of "SMTP Email Send Message.vi".

  2. Fill out the "mail server", "recipients", "subject" and "message" controls.

  3. Go to "Browse >> Show Vi Hierarchy" and double-click on the VI named "SMTP Email Command.vi" (see the attached "SMTP Email Command.jpg").

  4. Go to "File >> VI Properties... >> Execution" and disable "Reentrant execution". Click "OK".

  5. 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").

  6. Run the "SMTP Email Send Message.vi".

  7. 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

Thinkbot Solutions
0 Kudos
Message 2 of 2
(4,344 Views)