mgroen2
9 years agoSuper Contributor
Is this correct?
To send an email I used the SendMail function in the example described here:
I used following code:
Sub Email()
If SendMail("m.groen@BLABLA.COM", "smtp-mail.outlook.com", "testrunner", "testrunner_dp@BLABLA.COM", "Message!", "This is a test message", "C:/a/File1.txt") Then
Log.Message "Mail was sent"
Else
Log.Warning "Mail was not sent"
End If
End Sub
The mail is sent, however, the attached filename is not "File1.txt", BUT "aFile1.txt".
Is this normal? How to change this back to the original filename?
Hi,
Just a guess: what if you change slashes in the file path to backslashes ?
(I.e. "C:/a/File1.txt" ==> "C:\a\File1.txt")