Forum Discussion

mgroen2's avatar
mgroen2
Super Contributor
9 years ago

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")

  • mgroen2's avatar
    mgroen2
    9 years ago

    AlexKaras Good guess! :) Thanks

     

    I'll ask support if they could correct the help file.

     

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    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")

    • mgroen2's avatar
      mgroen2
      Super Contributor

      AlexKaras Good guess! :) Thanks

       

      I'll ask support if they could correct the help file.