Re: Sending SMTP mail

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Gary Milton (anonymous_at_discussions.microsoft.com)
Date: 03/26/04


Date: Fri, 26 Mar 2004 01:31:39 -0000

Jim,

Don't forget that running the EXE from a network location may introduce
other issues because unless you have specifically configured the machine to
allow it to run .NET programs from the network, the security model of the
.NET Framework will no allow this by default.

It definitely sounds like your server isn't allowing SMTP access from an
external source. Have you checked that the port 25 is open on the server?
It might be worth trying to Telnet into port 25 on the server and see what
response you get...

http://www.activexperts.com/activemail/telnet/

It may also be worth doing a search to see if there are any SMTP diagnostic
tools that might help track down the problem. Another thing that might be
worthwhile doing is to set up the SMTP service up on another server and try
sending via that.

I'm afraid I won't be able to respond again until later on tomorrow as it is
the early hours of the morning here in the UK and it is time I got my head
down.

Gary

"Jim" <jfeaz@hotNOSPAMmail.com> wrote in message
news:0hu660pqq9su1h6u3n9e6af5d39fuq6il9@4ax.com...
> Gary,
>
> I'm actually about half a chapter ahead of you... LOL that is
> PRECISELY what I was doing when I got your message... I think I have
> it working... uhm... sort of... LOL This is REALLY INTERESTING.....
>
> The program fails to find the SMTP server on my build machine.
> However, if I run the assembly ON my server, it DOES find the server,
> whether I leave the SmtpServer property blank (to default to
> localhost) or actually specify the DNS name of the server. I know it
> is reading that property though, because if I misspell the server
> name, it will fail (as it should)... BUT, Gary, here's what I think is
> REALLY interesting...
>
> If I go over to the server and run the program from over the network
> (like going to Explorer and typing
> \\buildmach\c$\VSProjects\SmtpTest\Bin\Debug\ and then clicking
> SmstpTest.exe), the thing fails. Copy the EXE file though (and the
> dll that supports it), over onto a local directory on the server (like
> My Dcouments), and click it, and it runs fine. In both instances, the
> thing is executing in the context of local machine environment; the
> only difference is the path over which it gets the initial EXE and
> initializes the dll. The only thing I can come up with at this point,
> is that some kind of request is sent off to the SMTP service to tell
> it, "Hey, I have something for you." The server comes back and says,
> "Oh yeah, well initialize this dll....." and the server tries to
> initialize a dll that is on the remote machine sending the mail, and
> for some reason, that fails. That sounds stupid and almost completely
> baeless, but I can't think of any other reason why the program would
> run from one location, and not another, especially on the same
> machine. Interestingly enough, if I do just the opposite... That is,
> go back to the build machine, and try ot run the program outside of
> the VS environment, it still blows up. If I try to run it remotely
> off of the server, it still blows up, so that blows a hole in my
> previous theory..... This is making me nuts!!! LOL How am I supposed
> to troubleshoot something like this? :(
>
> Any feedback?
>
> Jim
>
> On Thu, 25 Mar 2004 23:42:24 -0000, "Gary Milton"
> <anonymous@discussions.microsoft.com> wrote:
>
> >Jim,
> >
> >Just a thought but have you tried knocking up a quick app that sends an
> >email and running executable on the SMTP server itself (as an
> >administrator)? This might help to eliminate/pinpoint any issues with
your
> >internal network routing/security when running the app from your
development
> >machine.
> >
> >Gary
> >
> >"Jim" <anonymous@discussions.microsoft.com> wrote in message
> >news:200970DC-09F6-4BA5-A170-E6AE55822EA5@microsoft.com...
> >> Gary,
> >>
> >> Thanks... Actually, I did just that. The only reason for the phoney
> >addresses / domains here is that I don't want the spammers scooping my
email
> >address out of the newsgroups.
> >>
> >> I'm thinknig now that maybe I just need to put a share on the machine
> >hosting the SMTP server, and then properly format my message and save it
> >into the sever's "drop" folder. I need to get this darn thing done, or
I'm
> >not gonna get paid. LOL
> >>
> >> JIM
> >
>



Relevant Pages

  • Re: Fully parallel Scheme-based language w/ evaluator
    ... Windows Server 2003 and networks in simple - and irreverent - terms. ... If networking really is a big deal, ... Concepts and Terminology in Part I, and The Design and Deployment of Network ...
    (comp.lang.misc)
  • Re: ASP.Net V 2.0 problems with sending email
    ... Presumably it is trying to deliver it from the web server, ... parties smtp server. ... I suggest you try turn on the network Tracing asMischa has suggested. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP.Net V 2.0 problems with sending email
    ... Presumably it is trying to deliver it from the web server, ... parties smtp server. ... I suggest you try turn on the network Tracing asMischa has suggested. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Outgoing POP3 email missing/lost/not received
    ... Funny thing is that I have had this ISP for 8 years and it has always been ... It looks like when you last ran CEICW, you set the ISP's mail server to: ... Internet Connection Wizard. ... After the wizard completes, the following network connection ...
    (microsoft.public.windows.server.sbs)
  • Re: SMTP servers dont allow me to send email
    ... from the world of SMTP: "You do not have a trusted IP address (or ... Most ISPs will not let people out side of their network relay through their SMTP servers, or at least not with out authentication. ... Yahoo, I had a moment of hope, when the server responded "email address not verified" and a link to a help page. ... If you are unable to find a place to do Auth SMTP like you need to, contact me off list with a subject including "Auth SMTP Request" as my company can help you. ...
    (comp.mail.sendmail)