• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

Creating a VB.NET app to telnet to a mail server on port 25 and return the conversation.

Hi,

I do not quite no how to describe what I am trying to do, but I will do my best.

I am looking to create an App where I can enter a mail server and then have the app connect to the server and try to send a mail without ever actually getting as far as the body as the mail and then return the converstation.

i.e. I will enter a mail server and the app will return.
220 INETC289.home ESMTP MailEnable Service, Version: 0-1.72- ready at 05/07/06 2
2:53:58
helo me
250 Requested mail action okay, completed
mail from: oli@test.com
250 Requested mail action okay, completed
rcpt to: oli@tester.com
250 Requested mail action okay, completed
quit

I hope someone can point me in the right direction.

Oli
0
olifarago
Asked:
olifarago
  • 5
  • 4
1 Solution
 
jonorossiCommented:
If you make a small modification you can get this app to show the data/commands going between the client and server.
http://www.codeproject.com/vb/net/epsendmail.asp

Let me know if that is not what you are requesting.
0
 
olifaragoAuthor Commented:
What I really need is a way to monitor and report back the actual conversation that takes place between the servers.  I can't see what I would modify to do that. Am I missing something.

Sorry, I am really quite new to VB.NET

Regards,
Oli
0
 
jonorossiCommented:
Sorry I read that article wrong, it is using the System.Web.Mail classes so I don't think you can get the data going between the server and client. However if all you want to do is get the data going between server and client use a packet sniffer like Etheral. If you want to do what you were describing then let me know and I'll find another example that uses pure commands to send mail however it won't be easy to find because everyone uses the built in mail classes instead of rolling their own.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
olifaragoAuthor Commented:
I do really need to be able to view the output.
0
 
jonorossiCommented:
>I do really need to be able to view the output.

Do you just want to view the output (you can use a packet sniffer like I recommended before) or do you want a VB.NET application that shows the output so you can use it in your own project?
0
 
olifaragoAuthor Commented:
Sorry, I need to create VBNET app to view the output as I am creating a application that can perform various tests for a helpdesk.
0
 
jonorossiCommented:
try this one
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=244&lngWId=10&txtForceRefresh=511200620582348975

just comment out the code that is trying to use NGSRegistry and remove the reference, it is an additional project the guy made to count the number of emails or something.
0
 
olifaragoAuthor Commented:
Ill check this out tonight.  Many thanks for your effort.
0
 
olifaragoAuthor Commented:
Fantastic.  This is exactly what I needed to teach me the concepts.

Man thanks jonorossi.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now