Skip to main content

Mark Wagner - Cogitation Blog

Go Search
Blog
SPDev
SharePoint
Governance
  

Welcome
Mark Wagner works for Microsoft as a Consultant working in the West Region.
My old blog
Mark Wagner - Cogitation Blog > Posts > How to send SMTP email using Telnet
How to send SMTP email using Telnet

How to send SMTP email using Telnet

This is an old method of sending email using Telnet.  I've posted it here mostly for a remider to me on exactly how to do this, but thought I would share it with others who may not know of this.  This can be useful when testing if a server can successfully send email.  For example, I use this to confirm if a SharePoint server can successfully send emails for alerts and notifications.

Important: If you make any typing errors and use the backspace button to correct them, your command will return as invalid or as an error.  Therefore, you must type each command exactly - without any errors or corrections.

The items in bold are what you should type.

Start a Telnet session from a command line by entering:
Telnet your.mailserver.com 25

220 a.mail.server.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.2499 ready at  Thu, 29 Jun 2006 15:59:02 -0600
helo

250 a.mail.server.com Hello [192.168.125.237]
mail from: fromemail@server.com

250 2.1.0 email@server.com...Sender OK
rcpt to: joe@server.com

250 2.1.5 joe@server.com
data

354 Start mail input; end with .
This is a test.
.  (enter a dot/period to end the data)

250 2.6.0 Queued mail for delivery

quit
Connection to host lost.

Comments

Add Attachement

What about adding attachement/s to a telnet email for testing?
at 4/22/2008 2:21 PM

Re: Add Attachement

I'm not sure if there is a way to send an attachement using Telnet.  However, this will confirm that emails (even without an attachement) are able to be sent successfully.  To send an email with an attachement you will likely need to use a simple email tool such as Outlook Express that has been installed on your web server(s).
Mark at 4/25/2008 8:08 AM

THANKS FOR THE super VASC Solution .....

As you promised, it works well on both WSS3.0 and MOSS.

I am now searching for a solution to remove the entire column that VASC used, but that is much less critcal for my client.

Dave Beatty
beattyd@yahoo.com
at 5/22/2008 1:35 PM

I tried but failed

I tried but failed befor the rcpt to:  command as it said "503: sender not yet given...pls help how to proceed now
at 5/20/2009 11:43 PM

Helo requires domain address

Getting this error on helo

501 5.0.0 helo requires domain address

at 6/8/2009 9:19 PM

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Body *


Today's Date *

Please enter today's date. This will help prevent blog spam. Thank you.
Attachments