Introduction
Sometimes we need to test the functionality of sending emails on any server and do not have a customer e-mail it to. With these steps you can perform this test with the application via Telnet command prompt (cmd).
Step-by-Step
- Open the command prompt on the server that you want to test sending emails;
- Connect to the server that sent the e-mail.
Enter: telnet <name or ip of the server> <number of gate> and key <enter>
Ex1: telnet srvcorreio01 25 <enter>
Ex2: telnet 176.0.15.225 25<enter>Say: Generally the door is 25. See this information with the administrator who configured the server emails. - Set the domain sending email. Enter: Helo <domain name>
Former: helo meudominio.com.br <enter> - Set the e-mail sender. Enter: mail from : e-mailRemetente
Former: mail from : aaa@bbb.com.br <enter> - Set the e-mail address. Enter: rcpt to : e-mailDestinatario
Former: rcpt to : bbb@aaa.com.br <enter> - Set the body of the email. Enter: data
Former: data <enter>
OBS: After dialing <enter> type what you want to be placed in the body of the email. - Send e-mail. Enter: .
Just enter a “.” on an empty line prompt.
Soon. The server will be able to send the email mounted with the specifications defined above. If any error occurs, note the error message and search the internet for a solution to this.
Tips:
- When I try to connect the prompt back to normal and nothing happens.
R.: Probably the source server does not have permission to connect to the mail server. Check this permission. - When I type <enter> always appears the message “Unrecognized command” or “Unrecognized Parameter”
R.: Enter the command slowly and without errors. Use the key “backspace” or “delete” to correct some character already prevents the command. Enter slowly.
Related Pages:
If you want to know more about sending e-mails by Telnet, I suggest the following pages:
-
Testing sending email via Telnet
- Send mail through SMTP using Telnet
-
Sending Email without a Client
-
Trivial uses of Telnet – SMTP
Taking the hint of Wagner, correct the text which was “mail to” to “mail from”. Thank Wagner!
Hello, good day! How do I get it to send an email with an attached file in the same way? Thank you!
when access to the server , typed characters that do not aparecem.O? thank you.
kra not aprece msmo over all q has been entered by the terminal is being imterpretado!!!!!!1
Look PO MY NEXT wanted to know my shit soon NAO APARESCE nothing Fass!???????
How does a guy post graduate, full of certificates still write SHIT, WRONG teaching is better not to write! The above commands are wrong: o "helo" should be replaced by "ehlo". And nice tip that your: "If any error occurs, note the error message and search the internet for a solution to this. ". Ation are worth peel!!!
Ola Claudius!
Just because I'm a graduate degree and having a certification does not mean that I know everything and I'm better or worse than anyone. My goal in my blog is to write about topics that may help others. If I wrote something that feels wrong, take a constructive comment pointing my mistake that surely will fix it on the blog. I miss a lot, I will continue making mistakes and always learning.
Tip for you: Looking Humilde é look intelligent. Think nisso.
Although the review is not as polished, thanks for visiting.
friend, Corrigan your tutorial, in place of mail to: mail is from:
before posting a tutorial, be careful not to put anything wrong as it may be people studying or trying to learn through the website and if he is here to learn, will learn arrado!
the allberao !!
I wanted to ask here until q q day I'll be here in mosque!then speak