I'm not sure what I should be putting in for the following 2 variables. For
testing purposes, I am using your SendMail form. Eventually, if this works, I
will be moving this code into a scheduled agent.
Let HostNameOrIP = "127.0.0.1" ' Address of SMTP server to contact (IP or
HostName) LEAVE as localhost if on same server
Let SMTPName = "FakeSMTP" ' The name you identify yourself as to the SMTP
I've currently left the variables as is. However, I get the error message
"Relay rejected for policy reasons.". When I remove my SMTP restrictions from
the server | configuration document, this then works. However, that is not the
solution I am looking for.
Do the above variables have anything to do with my error?
Can I still use this code while leaving my relay restrictions as they are?