Sending mail from the server
=============================
Breaking away from the Mobile Mania, this time round I'll be talking about sending mails from the SMTP server.This may sound a bit advanced to new users but you can try it. It is infact very simple.

What is SMTP anyway?
--------------------
SMTP stands for Simple Mail Transfer Protocol.

Why do I have to send a mail from the server?
----------------------------------------------
There is not any specific use of this, but most of us keep sending mails without knowing what exactly happens in the background, this provides an insight.

Okie, what should I have to send mails?
----------------------------------------
Since you are reading this post, you most certainly have an OS running and access to the internet, also you must have an E-mail account with some service provide. Apart from that you don't need anything else!

Right, I now have all those. How do I go about Sending mails?
--------------------------------------------------------------
I'll try and explain the procedure in a few simple steps.
You will need to know the SMTP address of your email service provider. It is usually smtp.serviceprovider.com. It may vary so to be on the safer side, check the help pages for configuring a email client.
I will be using my ID 'vaishaksuresh' at mailnew.com. the server address is 'mail.messagingengine.com'.

A) Now open Command prompt and type in the following without quotes. 
  'telnet mail.messagingengine.com 25'
  here telnet is a tiny application that is bundled with the OS to help connecting to remote                                  computers. the 25 at the end is to denote the SMTP port.

B) You will now get a prompt on the screen that looks like this
  '220 abcdefg'
This varies from server to server but the 220 has to appear.
C) Now Identify yourself, type 
'helo hellsangel'
note it is 'helo' and not 'hello'.Then the server says 
'250 xyz'
now again the 250 part is important.
D) You just introduced yourself to the server. Now give the server you email address. say    
'mail from: vaishaksuresh@mailnew.com'                                                              replace yourid@yourdomain.com with your email address.
you get a '250 ok'.
E) Next type in the recepients address, I'll send it to myself.
'rcpt to:vaishaksuresh@despammed.com' again you get a '250 ok'.
F) now to type te contents of the mail, type
'data' the server says '354 end data with . this means hit return the .(dot) and  hit return again to end the data. =carriage return, =line feed.
G) now type the body of the mail like this.
this is a test mail from me to myself.                                                                 I hope this works well.
.
after finishing press enter, dot and enter again.
you now get ' 250:ok queued as 12345'
lo and behold, your first mail was just sent.
H) you can now send another mail  by following steps E through G or disconnect by typing 'quit'.
you will get a '221 bye' on quitting.
==============================================================================================
The mail sent above was a bare minimum without a FROM or TO name, SUBJECT,CC etc.It can certainly be improved. Queries are welcome
Vaishak Suresh
http://www.geocities.com/vaishaksuresh
vaishaksuresh.despammed@com  (interchange . and @)


-
DISCLAIMER:-
		The above material is an original work of the author.
		It is not bound by any copyright law and can be 
		used for any purpose. The author is not responsible for its further use.
		article contributed to "GEEKMAIL@YAHOOGROUPS" by Vaishak Suresh	

    Source: geocities.com/vaishaksuresh/geekmail

               ( geocities.com/vaishaksuresh)