Use Telnet from the command line to troubleshoot scan to email.
Install Telnet Client
These instructions applies to Windows 10 and 11.
- Open Control Panel and select Programs and Features.
- Select Turns Windows Features on or off.
- Scroll down the list and check Telnet Client.
- Select OK.
Send email from the command line via Telnet
Connect to the SMTP server
- Open a Command prompt.
- To connect to the SMTP server (example: acme-com.mail.protection.outlook.com) on port 25 type:
telnet acme-com.mail.protection.outlook.com 25
- Should respond with its welcome banner.
- Replace acme-com.mail.protection.outlook.com with your SMTP server address.
Send the HELO command
Some mail server will accept the HELO on its own, others will require you to also provide a host or domain name along with it.
- Send the HELO command. Type:
- Should respond with Hello.
- Replace acme.com with your email domain.
Use the MAIL FROM command
- Use the MAIL FROM command to specify the sender. Type:
mail from: email@example.com
- Should respond with Sender OK.
- Replace firstname.lastname@example.org with a valid email address.
Use the RCPT TO command.
- Use the RCPT TO command to specify the receiver. Type:
rcpt to: email@example.com
- Should respond with Recipient OK.
- Replace firstname.lastname@example.org with a valid email address.
Use the DATA command to send data
- Use the DATA command to send data. Type:
- Should respond with Start mail input; end with ..
- If you just want to send a blank message type a period “.” and press Enter. Otherwise you can set a subject line for the message if you like. Use SUBJECT and then type your subject line, and press enter.
- Use SUBJECT and end message with period.
subject: this is a test
- Should respond with Queued mail for delivery.
Thanks for your feedback.