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

Re: Sending mail between 2 lan computers by Kristofer

Kristofer
Sat Feb 05 03:06:39 CST 2005

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@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
www.gafvert.info - My Articles and help
www.ilopia.com


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

Re: Sending mail between 2 lan computers by G

G
Sun Feb 06 14:21:17 CST 2005

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@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@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
> www.gafvert.info - My Articles and help
> www.ilopia.com
>
>
> 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



Re: Sending mail between 2 lan computers by Kristofer

Kristofer
Sun Feb 06 14:25:35 CST 2005

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

Start->Run, eventvwr.msc

--
Regards,
Kristofer Gafvert
www.gafvert.info - My Articles and help
www.ilopia.com


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@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@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
> > www.gafvert.info - My Articles and help
> > www.ilopia.com
> >
> >
> > 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

Re: Sending mail between 2 lan computers by G

G
Sun Feb 06 14:32:58 CST 2005

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@192.168.0.147

Any clue there?
G


"Kristofer Gafvert" <kgafvert@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
> www.gafvert.info - My Articles and help
> www.ilopia.com
>
>
> 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@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@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
>> > www.gafvert.info - My Articles and help
>> > www.ilopia.com
>> >
>> >
>> > 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



Re: Sending mail between 2 lan computers by Kristofer

Kristofer
Mon Feb 07 00:19:39 CST 2005

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
www.gafvert.info - My Articles and help
www.ilopia.com


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@192.168.0.147
>
> Any clue there?
> G
>
>
> "Kristofer Gafvert" <kgafvert@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
> > www.gafvert.info - My Articles and help
> > www.ilopia.com
> >
> >
> > 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@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@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
> >> > www.gafvert.info - My Articles and help
> >> > www.ilopia.com
> >> >
> >> >
> >> > 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