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 (anyemail@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="anyemail@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.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,604 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
866 questions
{count} votes