I Am trying to use a ready script to send an email with a file that took from here:
but when I run the script I get an error:
Exception calling "Send" with "1" argument(s): "Failure sending mail."
At 131 char:11
+ $smtp.send <<<< ($msg)
+ CategoryInfo : NotSpecified: (:) , MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
My question is which lines do i need to change do to fix this error?