ASP Email Script Failing

Admin Travis 1 Reputation point
2021-07-19T05:17:42.317+00:00

Im quite new to scripting, i have a support team that has a requirement for an app theyre developing and they need to send emails using the script they provided. Now they asked for a mailbo but i recommended simply relaying since we have an email gateway, similar to all systems i have internally. Usually i input only the email (******@mydomain.com), no password, specify my smtp server and port, no SSL and email goes through.

However with this configuration we are receiving an error within the logs " elay mailbox unavailable. the server response was no such domain at this location at system.net.mail.smtptransport.sendmail"

The script as follows;
<appsettings>
<add key="Username" value="******@mydomain.com" />
<add key="password" value="empty" />
<add key="smtpserver" value="smtp.mydomain.com" />
<add key="smtpPort" value="25" />
<add key="EnableSSL" value="false" />
<add key="Servicepollinterval" value="3000" />
</appsettings>

Hope this is not confusing, kindly assist.

Developer technologies | ASP.NET | ASP.NET Core
Microsoft 365 and Office | Development | Office JavaScript API
Developer technologies | Visual Studio | Other
Developer technologies | ASP.NET | Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.