Re: Sending SMTP mail

From: Jim (jfeaz_at_hotNOSPAMmail.com)
Date: 03/26/04


Date: Fri, 26 Mar 2004 00:46:09 GMT

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: Why is it so hard to connect SQL2000 over Static IP?
    ... Yeah i know, lol, the above connection string is probably overkill... ... Network Utility and is it set to port 1433? ... gives me crazy message about server not being there or access denied,... ...
    (microsoft.public.sqlserver.connect)
  • Re: OT--another free ng server
    ... just wishful think'n on my part i guess, lol. ... it uses my settings from aioe re email reply addy etc so works well for me. ... and added the server to my list. ... "Judie in Penfield NY" wrote... ...
    (rec.crafts.textiles.quilting)
  • Re: Stupid email tricks: Have a good laugh on me
    ... Slipstick has a list of duplicate email deleters that your customer may find ... >> LOl... ... > secondary server, which is called ETRN.FEA.NET. ... > for whatever reason, none of my client's customers get a bounce-back. ...
    (microsoft.public.windows.server.sbs)
  • Re: Message from our leader.
    ... You get yer nose right up there mate!! ... Lord High Troll of the Highlands and Islands. ... Hazel, lol. ... Hehehe...there is a better "server" than that though...it's called yes yes ...
    (uk.local.essx)
  • Re: OT: Finally got it...
    ... >> win prizes at computer fairs when I was 15, ... >> I can't be fussed learning MIRC, it's a hack IMHO...that's out lived it's ... > lol... ... They configure the server for you and connects you to the right server ...
    (rec.music.hip-hop)