Jump to content
Sign in to follow this  

INetSmtpMailCom Won't attach File

Recommended Posts


I have been using INetSmtpMailCom to generate emails that includes a attachment. It has worked in the past is it is likely something I am doing but can't figure it out.

The file I am trying to attach


The error I get is that the file can not be found but I have confirmed that it exists and is at the location I have specified.

Is the name too long?

Error Log:

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Infostore Auto Reports\InfoStore2.au3"

@@ Debug(62) : $S_Files2Attach =

>Error code: 0

!> File not found to attach: \\nawrms-web01\webdocs\pdf_reports\PM16_Reports\3D_Historical_Morning_Report\PM16_3D_Historical_Report_07_14_2010.pdf

>Exit code: 0 Time: 248.419

Share this post

Link to post
Share on other sites

add some debugging in the UDF to see what it does by checking the result of $S_Files2Attach[$x] in the first line shown.:

$S_Files2Attach[$x] = _PathFull($S_Files2Attach[$x])
                If FileExists($S_Files2Attach[$x]) Then


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
Live for the present,
Dream of the future,
Learn from the past.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this