Sending Email in DNN

11,533

The More likely problem is you don't have your SMTP settings properly configured. To configure your SMTP settings, Login as Host. Then, go to Host -> Settings and fill out the fields under "SMTP Server Settings" and save them. There's a test link there as well to verify they are working correctly.

Share:
11,533
Mitchell
Author by

Mitchell

Updated on July 19, 2022

Comments

  • Mitchell
    Mitchell almost 2 years

    I'm trying to send an email in a DNN module I'm making. However, though it doesn't crash the email isn't being sent. I think it has to do with the From Email I'm attempting to use. I'm not 100% sure what email I should be using for the from which is the first parameter.

    Protected Sub Submit_Click(sender As Object, e As EventArgs) Handles Submit.Click
        DotNetNuke.Services.Mail.Mail.SendEmail("support@localhost", "[email protected]", "EmailTest", "Hello world!")
    End Sub