Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Sending mail between 2 lan computers

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Related Topics:
Sending Mail via ASP.NET 1.1 on XP PRO SP1 with IIS 5.1 - I have a Web App that was sending mail on an XP PRO SP1 machine with IIS 5.1. A System Admin was looking at the same send mail issue for a Windows 2000 Server with IIS 5.0 and was looking at the settings on my machine. He changed the of the..

Sending Mail from IIS - Is there any way to send mail from IIS server when IIS is stopped and started?

Sending Mail in ASP - Windows Server 2003 R2 Standard. We have rehosted our web site to our Windows Server under the IIS. Most of the files are asp. I have code that submits the contents of a form via email. The following line of code fails: Set Mail =..

sending mail - On my windows 2003 server, I have installed IIS with ASP.NET and SMTP Service (not POP3). I have one website under the default site. When I look at the Domains in the SMTP I see my server name and domain listed. What else do I need to do to the server.

sending an e-mail with php using smtp - I have IIS6 on windows server 2003 on a virtual machine, hosting a couple of web and ftp sites (which work fine). I have a php form (the code works because I have tested it on a different server) which I want to send to my e-mail
Author Message
G Dean Blake

External


Since: Feb 03, 2005
Posts: 6



(Msg. 1) Posted: Fri Feb 04, 2005 9:13 am
Post subject: Sending mail between 2 lan computers
Archived from groups: microsoft>public>inetserver>iis (more info?)

I have two xp machines. This is my code on machine1
Dim m As MailMessage = New MailMessage
m.From = "myFromAddr@bogus.com"
m.To = "myToAddr@bogus.com"
m.BodyFormat = MailFormat.Text
m.Subject = "typeOfAction"
m.Body = "this is the body of my test email
SmtpMail.Send(m)

IIS shows a Default SMTP Virtual Server on both machine1 and machine2 but I
don't know how to address this mail to machine2. When I send it now it goes
out to my Earthlink ISP who rejects it by blocking port 25. How do I send
it to machine2 so I can look at the email as it gets received?
Thanks
G

 >> Stay informed about: Sending mail between 2 lan computers 
Back to top
Login to vote
kgafvert

External


Since: Aug 23, 2003
Posts: 3146



(Msg. 2) Posted: Sat Feb 05, 2005 1:06 am
Post subject: Re: Sending mail between 2 lan computers [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello,

You need to send it to the machine running SMTP. Assuming that you do not
want to configure a local DNS server, you can simply send the emails to
someone.DeleteThis@192.168.0.1 assuming that 192.168.0.1 is a machine running SMTP.
This email will end up in the DROP folder on that machine.


--
Regards,
Kristofer Gafvert
<a style='text-decoration: underline;' href="http://www.gafvert.info" target="_blank">www.gafvert.info</a> - My Articles and help
<a style='text-decoration: underline;' href="http://www.ilopia.com" target="_blank">www.ilopia.com</a>


G Dean Blake wrote:

 > I have two xp machines. This is my code on machine1
 > Dim m As MailMessage = New MailMessage
 > m.From = "myFromAddr@bogus.com"
 > m.To = "myToAddr@bogus.com"
 > m.BodyFormat = MailFormat.Text
 > m.Subject = "typeOfAction"
 > m.Body = "this is the body of my test email
 > SmtpMail.Send(m)
 >
 > IIS shows a Default SMTP Virtual Server on both machine1 and machine2
but I
 > don't know how to address this mail to machine2. When I send it now it
goes
 > out to my Earthlink ISP who rejects it by blocking port 25. How do I
send
 > it to machine2 so I can look at the email as it gets received?
 > Thanks
 > G<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Sending mail between 2 lan computers 
Back to top
Login to vote
G Dean Blake

External


Since: Feb 03, 2005
Posts: 6



(Msg. 3) Posted: Sun Feb 06, 2005 12:21 pm
Post subject: Re: Sending mail between 2 lan computers [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

my other computer is 192.168.0.147 (per ipconfig) on my local lan but it
didn't work. That machine is running smtp. However the email ended up in
my own \mailroot\queue folder as an EML file as a rejected email where I
could see what it looked like but I'm still curious why it didn't work.
G
"Kristofer Gafvert" <kgafvert.TakeThisOut@NEWSilopia.com> wrote in message
news:xn0dy52ac99rhkc01f@news.microsoft.com...
 > Hello,
 >
 > You need to send it to the machine running SMTP. Assuming that you do not
 > want to configure a local DNS server, you can simply send the emails to
 > someone.TakeThisOut@192.168.0.1 assuming that 192.168.0.1 is a machine running SMTP.
 > This email will end up in the DROP folder on that machine.
 >
 >
 > --
 > Regards,
 > Kristofer Gafvert
 > <a style='text-decoration: underline;' href="http://www.gafvert.info" target="_blank">www.gafvert.info</a> - My Articles and help
<font color=purple> > <a style='text-decoration: underline;' href="http://www.ilopia.com</font" target="_blank">www.ilopia.com</font</a>>
 >
 >
 > G Dean Blake wrote:
 >
  >> I have two xp machines. This is my code on machine1
  >> Dim m As MailMessage = New MailMessage
  >> m.From = "myFromAddr@bogus.com"
  >> m.To = "myToAddr@bogus.com"
  >> m.BodyFormat = MailFormat.Text
  >> m.Subject = "typeOfAction"
  >> m.Body = "this is the body of my test email
  >> SmtpMail.Send(m)
  >>
  >> IIS shows a Default SMTP Virtual Server on both machine1 and machine2
 > but I
  >> don't know how to address this mail to machine2. When I send it now it
 > goes
  >> out to my Earthlink ISP who rejects it by blocking port 25. How do I
 > send
  >> it to machine2 so I can look at the email as it gets received?
  >> Thanks
  >> G<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Sending mail between 2 lan computers 
Back to top
Login to vote
kgafvert

External


Since: Aug 23, 2003
Posts: 3146



(Msg. 4) Posted: Sun Feb 06, 2005 12:25 pm
Post subject: Re: Sending mail between 2 lan computers [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If you are using the SMTP server it would log something to the event log.

Start->Run, eventvwr.msc

--
Regards,
Kristofer Gafvert
<a style='text-decoration: underline;' href="http://www.gafvert.info" target="_blank">www.gafvert.info</a> - My Articles and help
<a style='text-decoration: underline;' href="http://www.ilopia.com" target="_blank">www.ilopia.com</a>


G Dean Blake wrote:

 > my other computer is 192.168.0.147 (per ipconfig) on my local lan but it
 > didn't work. That machine is running smtp. However the email ended up
in
 > my own \mailroot\queue folder as an EML file as a rejected email where I
 > could see what it looked like but I'm still curious why it didn't work.
 > G
 > "Kristofer Gafvert" <kgafvert DeleteThis @NEWSilopia.com> wrote in message
 > news:xn0dy52ac99rhkc01f@news.microsoft.com...
  > > Hello,
  > >
  > > You need to send it to the machine running SMTP. Assuming that you do
not
  > > want to configure a local DNS server, you can simply send the emails to
  > > someone DeleteThis @192.168.0.1 assuming that 192.168.0.1 is a machine running
SMTP.
  > > This email will end up in the DROP folder on that machine.
  > >
  > >
  > > --
  > > Regards,
  > > Kristofer Gafvert
  > > <a style='text-decoration: underline;' href="http://www.gafvert.info" target="_blank">www.gafvert.info</a> - My Articles and help
<font color=green>  > > <a style='text-decoration: underline;' href="http://www.ilopia.com</font" target="_blank">www.ilopia.com</font</a>>
  > >
  > >
  > > G Dean Blake wrote:
  > >
   > >> I have two xp machines. This is my code on machine1
   > >> Dim m As MailMessage = New MailMessage
   > >> m.From = "myFromAddr@bogus.com"
   > >> m.To = "myToAddr@bogus.com"
   > >> m.BodyFormat = MailFormat.Text
   > >> m.Subject = "typeOfAction"
   > >> m.Body = "this is the body of my test email
   > >> SmtpMail.Send(m)
   > > >
   > >> IIS shows a Default SMTP Virtual Server on both machine1 and machine2
  > > but I
   > >> don't know how to address this mail to machine2. When I send it now
it
  > > goes
   > >> out to my Earthlink ISP who rejects it by blocking port 25. How do I
  > > send
   > >> it to machine2 so I can look at the email as it gets received?
   > >> Thanks
   > >> G<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Sending mail between 2 lan computers 
Back to top
Login to vote
G Dean Blake

External


Since: Feb 03, 2005
Posts: 6



(Msg. 5) Posted: Sun Feb 06, 2005 12:32 pm
Post subject: Re: Sending mail between 2 lan computers [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

it never got to that computer. I searched for any file created today on all
th hard disks. but I looked at the error data from the send side and it
says...

Reporting-MTA: dns;yorkdell
Received-From-MTA: dns;yorkdell
Arrival-Date: Sun, 6 Feb 2005 12:10:46 -0800

Final-Recipient: rfc822;someone@192.168.0.147
Action: failed
Status: 5.7.1
Diagnostic-Code: smtp;550 5.7.1 Unable to relay for someone.RemoveThis@192.168.0.147

Any clue there?
G


"Kristofer Gafvert" <kgafvert.RemoveThis@NEWSilopia.com> wrote in message
news:xn0dy6yp7bdg4fk01u@news.microsoft.com...
 > If you are using the SMTP server it would log something to the event log.
 >
 > Start->Run, eventvwr.msc
 >
 > --
 > Regards,
 > Kristofer Gafvert
 > <a style='text-decoration: underline;' href="http://www.gafvert.info" target="_blank">www.gafvert.info</a> - My Articles and help
<font color=purple> > <a style='text-decoration: underline;' href="http://www.ilopia.com</font" target="_blank">www.ilopia.com</font</a>>
 >
 >
 > G Dean Blake wrote:
 >
  >> my other computer is 192.168.0.147 (per ipconfig) on my local lan but it
  >> didn't work. That machine is running smtp. However the email ended up
 > in
  >> my own \mailroot\queue folder as an EML file as a rejected email where I
  >> could see what it looked like but I'm still curious why it didn't work.
  >> G
  >> "Kristofer Gafvert" <kgafvert.RemoveThis@NEWSilopia.com> wrote in message
  >> news:xn0dy52ac99rhkc01f@news.microsoft.com...
   >> > Hello,
   >> >
   >> > You need to send it to the machine running SMTP. Assuming that you do
 > not
   >> > want to configure a local DNS server, you can simply send the emails to
   >> > someone.RemoveThis@192.168.0.1 assuming that 192.168.0.1 is a machine running
 > SMTP.
   >> > This email will end up in the DROP folder on that machine.
   >> >
   >> >
   >> > --
   >> > Regards,
   >> > Kristofer Gafvert
   >> > <a style='text-decoration: underline;' href="http://www.gafvert.info" target="_blank">www.gafvert.info</a> - My Articles and help
<font color=brown>   >> > <a style='text-decoration: underline;' href="http://www.ilopia.com</font" target="_blank">www.ilopia.com</font</a>>
   >> >
   >> >
   >> > G Dean Blake wrote:
   >> >
   >> >> I have two xp machines. This is my code on machine1
   >> >> Dim m As MailMessage = New MailMessage
   >> >> m.From = "myFromAddr@bogus.com"
   >> >> m.To = "myToAddr@bogus.com"
   >> >> m.BodyFormat = MailFormat.Text
   >> >> m.Subject = "typeOfAction"
   >> >> m.Body = "this is the body of my test email
   >> >> SmtpMail.Send(m)
   >> > >
   >> >> IIS shows a Default SMTP Virtual Server on both machine1 and machine2
   >> > but I
   >> >> don't know how to address this mail to machine2. When I send it now
 > it
   >> > goes
   >> >> out to my Earthlink ISP who rejects it by blocking port 25. How do I
   >> > send
   >> >> it to machine2 so I can look at the email as it gets received?
   >> >> Thanks
   >> >> G<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Sending mail between 2 lan computers 
Back to top
Login to vote
kgafvert

External


Since: Aug 23, 2003
Posts: 3146



(Msg. 6) Posted: Sun Feb 06, 2005 10:19 pm
Post subject: Re: Sending mail between 2 lan computers [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Maybe you should look in the MSDN documentation about the SmtpMail class?

It uses the local SMTP server (unless something else is specified), so it
should log something in the event log (but maybe not in this case since it
is a relay denied error).

Anyway, the error you get back is a relay denied. So you need to configure
the local SMTP server so that you are able to relay thru it. You can for
example add the IP of your machine to the list of allowed IPs to relay.

--
Regards,
Kristofer Gafvert
<a style='text-decoration: underline;' href="http://www.gafvert.info" target="_blank">www.gafvert.info</a> - My Articles and help
<a style='text-decoration: underline;' href="http://www.ilopia.com" target="_blank">www.ilopia.com</a>


G Dean Blake wrote:

 > it never got to that computer. I searched for any file created today on
all
 > th hard disks. but I looked at the error data from the send side and it
 > says...
 >
 > Reporting-MTA: dns;yorkdell
 > Received-From-MTA: dns;yorkdell
 > Arrival-Date: Sun, 6 Feb 2005 12:10:46 -0800
 >
 > Final-Recipient: rfc822;someone@192.168.0.147
 > Action: failed
 > Status: 5.7.1
 > Diagnostic-Code: smtp;550 5.7.1 Unable to relay for someone RemoveThis @192.168.0.147
 >
 > Any clue there?
 > G
 >
 >
 > "Kristofer Gafvert" <kgafvert RemoveThis @NEWSilopia.com> wrote in message
 > news:xn0dy6yp7bdg4fk01u@news.microsoft.com...
  > > If you are using the SMTP server it would log something to the event
log.
  > >
  > > Start->Run, eventvwr.msc
  > >
  > > --
  > > Regards,
  > > Kristofer Gafvert
  > > <a style='text-decoration: underline;' href="http://www.gafvert.info" target="_blank">www.gafvert.info</a> - My Articles and help
<font color=green>  > > <a style='text-decoration: underline;' href="http://www.ilopia.com</font" target="_blank">www.ilopia.com</font</a>>
  > >
  > >
  > > G Dean Blake wrote:
  > >
   > >> my other computer is 192.168.0.147 (per ipconfig) on my local lan but
it
   > >> didn't work. That machine is running smtp. However the email ended
up
  > > in
   > >> my own \mailroot\queue folder as an EML file as a rejected email
where I
   > >> could see what it looked like but I'm still curious why it didn't
work.
   > >> G
   > >> "Kristofer Gafvert" <kgafvert RemoveThis @NEWSilopia.com> wrote in message
   > >> news:xn0dy52ac99rhkc01f@news.microsoft.com...
   > >> > Hello,
   > >> >
   > >> > You need to send it to the machine running SMTP. Assuming that you
do
  > > not
   > >> > want to configure a local DNS server, you can simply send the
emails to
   > >> > someone RemoveThis @192.168.0.1 assuming that 192.168.0.1 is a machine running
  > > SMTP.
   > >> > This email will end up in the DROP folder on that machine.
   > >> >
   > >> >
   > >> > --
   > >> > Regards,
   > >> > Kristofer Gafvert
   > >> > <a style='text-decoration: underline;' href="http://www.gafvert.info" target="_blank">www.gafvert.info</a> - My Articles and help
<font color=brown>   > >> > <a style='text-decoration: underline;' href="http://www.ilopia.com</font" target="_blank">www.ilopia.com</font</a>>
   > >> >
   > >> >
   > >> > G Dean Blake wrote:
   > >> >
   > >> >> I have two xp machines. This is my code on machine1
   > >> >> Dim m As MailMessage = New MailMessage
   > >> >> m.From = "myFromAddr@bogus.com"
   > >> >> m.To = "myToAddr@bogus.com"
   > >> >> m.BodyFormat = MailFormat.Text
   > >> >> m.Subject = "typeOfAction"
   > >> >> m.Body = "this is the body of my test email
   > >> >> SmtpMail.Send(m)
   > >> > >
   > >> >> IIS shows a Default SMTP Virtual Server on both machine1 and
machine2
   > >> > but I
   > >> >> don't know how to address this mail to machine2. When I send it
now
  > > it
   > >> > goes
   > >> >> out to my Earthlink ISP who rejects it by blocking port 25. How
do I
   > >> > send
   > >> >> it to machine2 so I can look at the email as it gets received?
   > >> >> Thanks
   > >> >> G<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Sending mail between 2 lan computers 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]