SMTP

Telnet a SMTP gateway or Exchange Server

Posted by robd on May 15, 2012
exchange 2010, SMTP, Telnet / No Comments

I can never remember the telnet commands to send a test email so here they are:

 

telnet ADDRESS.OR.IP 25
 helo
 MAIL FROM:FIRST.LAST@DOMAIN.com
 RCPT TO: FIRST.LAST@DOMAIN.com
 Data
 SUBJECT:YourSubject
 Blah Blah Blah
 .
 quit

Tags:

Send a test email via a VB Script

Posted by robd on May 15, 2012
SMTP / No Comments

This is a great one!

Are you trying to fix SMTP or relaying or some email shit and you really need to send a test email but really can’t remember the telnet commands!!

Well this is helpful!!

It’s a VB Script that send a test email!  Specify the From user, To user and finally the SMTP server address and your done!!

 

Set objEmail = CreateObject("CDO.Message")
objEmail.From = "FROM.ADDRESS@DOMAIN.COM"
objEmail.To = "TO.ADDRESS@DOMAIN.COM"
objEmail.Subject = "This is your conscience" 
objEmail.Textbody = "This is your conscience, stop calling flirting with Nia!!"
objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
        "SMTP.YOURSERVER.FULLY.QUALIFIED.DOMAIN" 
objEmail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.Configuration.Fields.Update
objEmail.Send

Tags: