473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Talking To An SMTP Server In .NET

My General Goal is to add e-mail functionality to my program without
using external (smtp) servers. I tried the following:
Lookup MX record: example: mx.home.nl (when looking up home.nl)

connect to mx.home.nl on port 25
mailserver sends welcome

reply with HELO (or EHLO) followed by the hostname
250 +OK response

MAIL FROM:<sender>
250 +OK response

RCPT TO:<remoteaddress>
250 +OK response

DATA
334 i think or alike response, telling to send data, end with crlf
then a . and then a nother crlf
250 +OK response

QUIT
quit response (also 2xx +OK i think)
this is how it should be, i just find that every smtp server does not
allow me to deliver the message for a address on their domain. i have
tried it with my uni's server, the @ home server, can't even connect
to my own domain's mail server :P so i Think i am doing something
wrong.

I have the written code in vb.net, i am just not @ my desk atm.
I have tested it with local SMTP server software, with works prefectly
(they can't deliver the messages eather tho, so i think i am missing
something else.
Any help is appreciated.
Nov 21 '05 #1
1 1210
"ViRi" <cm******@gmail.com> wrote in message
news:78**************************@posting.google.c om...
My General Goal is to add e-mail functionality to my program without
using external (smtp) servers. I tried the following:
Lookup MX record: example: mx.home.nl (when looking up home.nl)

connect to mx.home.nl on port 25
mailserver sends welcome

reply with HELO (or EHLO) followed by the hostname
250 +OK response

MAIL FROM:<sender>
250 +OK response

RCPT TO:<remoteaddress>
250 +OK response

DATA
334 i think or alike response, telling to send data, end with crlf
then a . and then a nother crlf
250 +OK response

QUIT
quit response (also 2xx +OK i think)
this is how it should be, i just find that every smtp server does not
allow me to deliver the message for a address on their domain. i have
tried it with my uni's server, the @ home server, can't even connect
to my own domain's mail server :P so i Think i am doing something
wrong.

I have the written code in vb.net, i am just not @ my desk atm.
I have tested it with local SMTP server software, with works prefectly
(they can't deliver the messages eather tho, so i think i am missing
something else.
Any help is appreciated.


Do you mean deliver messages from or to accounts on the domain ? I would
mostly expect it to deliver messages to local accounts but not often to
allow mail from those accounts to be forwarded to prevent the servers use by
spammers. Have you tried using telnet to verify it works OK that way ?

--
Jonathan Bailey.
Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mark Carter | last post by:
I'm trying to create a mail server in Twisted. I either get SMTPSenderRefused or SMTPException: SMTP AUTH extension not supported by server. What do I need to do to get it to work?
7
by: Nancy | last post by:
Hi, Is there any one knows, if I want to use mod_python to handle my html form, I must have a SMTP server on my PC(winxp pro)? Where can I get a free SMTP server? I cann't follow mod_python's...
21
by: Nancy | last post by:
Hi, Guys, Is there any other way to use python or mod_python writing a web page? I mean, not use "form.py/email", no SMTP server. <form action="form.py/email" method="POST"> ... Thanks a lot. ...
2
by: David | last post by:
Hi Group, I'm having a few problems with getting an SMTP server configured on my Windows 2000 Server web server. My web server is co-located at my hosts and i use VNC to remotely access the web...
15
by: Steven Burn | last post by:
My server has POP but only has SMTP if sending to my domain, and not other domains (such as hotmail). I'm therefore wondering, if anyone knows of any scripts etc, that will allow me to have a sort...
3
by: dale zhang | last post by:
Hi, I write an asp.net web application. It has a “Contact Us” page, where users fill in their email, subject and text and hit send. Then the email will go to my hard coded yahoo email...
1
by: bivin | last post by:
hai i am requesting your technical support. please help me. i have been working with this for five days. the problem is relating with the smtp. i am trying to send an email from the asp.net...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.