User475983607 posted
Hello everyone,
I am trying to test sending out emails to users from a generic email such as
noreply@company.com.
I want to do this in a button click event. How do I achieve this without using credentials?
Thanks
Write the email to disk.
https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/network/specifiedpickupdirectory-element-network-settings
<configuration>
<system.net>
<mailSettings>
<smtp deliveryMethod="SpecifiedPickupDirectory">
<specifiedPickupDirectory pickupDirectoryLocation="C:\some\folder\" />
</smtp>
</mailSettings>
</system.net>
</configuration>
You'll need to ask your SMTP host if you you actually want to send an email.