We Recommend

Accelerated C# 2008 Accelerated C# 2008
This book is both a rapid tutorial and a permanent reference. You’ll quickly master C# syntax while learning how the CLR simplifies many programming tasks. You’ll also learn best practices that ensure your code will be efficient, reusable, and robust. Why spend months or years discovering the best ways to design and code C# when this book will show you how to do things the right way, right from the start?


Posted By

mbadran on 08/15/06


Tagged

smtp telnet


Versions (?)


Who likes this?

7 people have marked this snippet as a favorite

meth
aurele
ishikawa
yuconner
rengber
vali29
johnself


sending mail manually via smtp


Published in: Other 


URL: http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol

  1. % telnet 127.0.0.1 25
  2.  
  3. HELO mydomain.com
  4.  
  5. MAIL FROM:<foo@mydomain.com>
  6.  
  7. RCPT TO:<bar@example.com>
  8.  
  9. DATA
  10.  
  11. Date: Thu, 7 Jul 2005 13:32:19 +1000 (EST)
  12. From: <foo@mydomain.com>
  13. To: <bar@example.com>
  14. Subject: Testing
  15.  
  16. Hello,
  17.  
  18. This is a test.
  19. Goodbye.
  20.  
  21. .
  22.  
  23. QUIT

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: mbadran on August 26, 2006

Fixed this up to remove any potential confusion.

You need to login to post a comment.