Re: Sending SMTP mail
From: Jim (jfeaz_at_hotNOSPAMmail.com)
Date: 03/26/04
- Next message: LM: ""Set as Start Page" doesn't work"
- Previous message: Peter Long: "ATL Samples -- DispSink doesn't work in VS.NET 2003."
- In reply to: Gary Milton: "Re: Sending SMTP mail"
- Next in thread: Gary Milton: "Re: Sending SMTP mail"
- Reply: Gary Milton: "Re: Sending SMTP mail"
- Messages sorted by: [ date ] [ thread ]
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
>
- Next message: LM: ""Set as Start Page" doesn't work"
- Previous message: Peter Long: "ATL Samples -- DispSink doesn't work in VS.NET 2003."
- In reply to: Gary Milton: "Re: Sending SMTP mail"
- Next in thread: Gary Milton: "Re: Sending SMTP mail"
- Reply: Gary Milton: "Re: Sending SMTP mail"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|