SMTP loses attachments w/ Vista

UPDATE SMTP losing attachments

Postby TimStone » Wed Sep 12, 2007 10:49 pm

OK ... this is really weird.

I went back to my original code for SMTP. I got it working, then lost it again. Here is the situation:

1) I have two files, one the error.log file which is naturally stored in the directory where the client executable exists ( ie. under program files ) and the other is a PDF of a screen preview which is also stored in that directory when it is created.

2) IF I am accessing the data file in a directory on the same computer, the SMTP works absolutely perfectly ... sends both attachments out.

3) If I am accessing the data file across the network from an ADS installation, the attachments are created correctly as specified in #1 on the local computer, but the attachments are not included with the email. Instead, a file of 80 to 100 bytes is created, empty, and attached with the correct file name !

Now that is really strange.

The OS is Vista ... :(
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Postby James Bott » Thu Sep 13, 2007 3:10 am

Hi Tim,

I wonder it this is a Vista security issue. Have you tried emailing an attachment from another computer without using ADS? That would tell you if ADS has anything to do with it.

I note that even under XP you cannot load a help file (HLP) across a network anymore. This problem was created by a security update to XP. So it is conceivable that Vista is the problem.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Vista

Postby TimStone » Thu Sep 13, 2007 5:06 pm

James,

The files are on the local machine. The data is drawn across the network, and the files are created just fine, but they are saved on the local machine and then sent.

When doing this on a machine accessing a local database it works. However, even though the files have .txt and .pdf extensions, and are stored local, if the program accesses an ADS on another computer, the problem occurs, even though ADS should not be at all relative to this task !

Its one of those strange things ....

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Postby James Bott » Thu Sep 13, 2007 5:25 pm

Tim,

>When doing this on a machine accessing a local database it works.

I see.

>However, even though the files have .txt and .pdf extensions, and are stored local, if the program accesses an ADS on another computer, the problem occurs, even though ADS should not be at all relative to this task !

Hmm, do you mean when a ADS database is open only? Have you tried closing all ADS DBFs before emailing?

>Its one of those strange things ....

Right, but if it was easy, then anyone could do it!

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Databases

Postby TimStone » Thu Sep 13, 2007 8:27 pm

James,

With error.log emails, there are no databases open.

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Postby James Bott » Fri Sep 14, 2007 7:07 pm

Tim,

>With error.log emails, there are no databases open.

What I would try is creating a small test app that (before opening any databases) sends a test email, then attach to the ADS database then close it, then send the same test email.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Never resolved

Postby TimStone » Tue Mar 11, 2008 6:10 pm

This issue never resolved.

Using TSMTP - revised version ( 2006 )

When sending an email attachment

If the program has the default drive set to the local machine, it works perfectly

If the program has the default drive set elsewhere on the network for the data files, even though the attachment is on the local machine and has absolutely nothing to do with the data files, the attachment is sent as a blank file of about 100 to 120 bytes.

In all cases the email works perfectly except the attachment is not sent when the default directory is across the network.

Its as if when the network is engaged, this won't work. However, the full path is provided to the local file to be attached.

The only variable that seems to make a difference is when SET DEFAULT TO points to a directory across a network even though the file to be attached is on the local machine with a local address fully set.

I'm using Vista Ultimate.

Ideas would be greatly appreciated
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Postby James Bott » Tue Mar 11, 2008 6:52 pm

How about switching the default drive to the local drive, then send the email, then switch the default back to the network drive?

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Path / Default

Postby TimStone » Tue Mar 11, 2008 7:05 pm

Same result ...

It is so bizarre ...
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Postby James Bott » Tue Mar 11, 2008 7:14 pm

Maybe try moving the attachment to the network drive then attaching it?

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Did that

Postby TimStone » Tue Mar 11, 2008 7:34 pm

Yeah ... did that before I posted the question. I exhausted every option.

I read the path from the registry for which drive to set as the default. If I set it in the registry to the folder on the local machine, it works perfectly. If I set it to the folder on a machine across the network, it doesn't attach. In all cases, the actual file to be attached is on the local drive. It is always in the same folder where the executable resides ( not in Program Files, however, but in a shared folder off the C: drive ). The path to that folder, which is passed to oMail:SendMail( ) is always exactly the same.

Maybe its time to take an ax to the computer ....
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Postby James Bott » Mon Nov 03, 2008 8:35 pm

Tim,

I am about to undertake an email project and I am wondering if you ever solved this Vista email issue?

Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 58 guests