How can we help?

Email2SMS - sending test emails via telnet or powershell

Follow

Each email server verifies correctness of received emails by checking its headers and content. The same is with internal SMSEagle email server. We suggest to always use email client for sending emails to SMSEagle. This will assure that emails are created in conformance with all proper standards.

However if you would like to send emails to SMSEagle via telnet commands, be sure to include all required headers in email. The server requires at minimum the following headers:

From:
To:
Subject:

And email body.

===============================================
Example of correct email:
From: smstest@onet.pl
To: 123456789@192.168.0.100
Subject: subject-test

Hello

===============================================
Example of telnet commands to send an email:

telnet smseagle.ip 25
ehlo smseagle

mail from: smstest@onet.pl
rcpt to:123456789@192.168.0.100

data (press Enter button to enter data):
subject: subject-test
From: SMSTEST
Hello
(End message with .)

================================================
Example of Powershell command to send an email:
Send-MailMessage -SMTPServer 192.168.0.100 -To 123456789@192.168.0.100 -From smstest@onet.pl -Subject "This is a test email" -Body "This is the body of the test email sent via PS."


Was this article helpful?
2 out of 2 found this helpful