You're actually getting farther this time, it just may not seem like it. The step is building, but you're now getting a runtime error when the script code gets executed. Two problems that I see:
1) If this code is in the Script code field of a Run Script action, you should remove the bracket [ ] chars (brackets are used in other step fields to indicate a script expression to be evaluated).
2) VBScript syntax requires that you not use parentheses around a function call unless a) you're passing the result to another function or b) you prefix it with the line with Call.
So simpifying your expression to
vbld_SendMail
should get you farther along (it should then actually make it into your function).
|