SMTP loses attachments w/ Vista
UPDATE SMTP losing attachments
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 ...
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
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
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
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
Vista
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
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
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
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
>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
Databases
James,
With error.log emails, there are no databases open.
Tim
With error.log emails, there are no databases open.
Tim
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Never resolved
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
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
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Path / Default
Same result ...
It is so bizarre ...
It is so bizarre ...
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Did that
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 ....
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
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact: