I'm trying to make a simple "Subscribe" and "Unsubscribe" button where a user enters their email address and the "Subscribe" button sends an email to a mailing list manager.
Protected Sub btnSubscribe_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubscribe.Click
DotNetNuke.Services.Mail.Mail.SendMail(txtEmailAddress.Text, "stList@mydomain.org", "", "Subscribe", "subscribe List@mydomain.org", "", "", "", "", "", "")
End Sub
I get an error saying that this is replaced by the Dotnetnuke.Services.Messaging.MessagingController as of 5.3
When I look at other examples, I couldn't find a good way to have my module send a message FROM the address in the text box (txtEmailAddress.Text)
Any idea how to send an email with the following properties with the new Dotnetnuke.Services.Messaging.MessagingController ?
To: stList@mydomain.org
From: txtEmailAddress.text (user input)
Subject: Subscribe
Message Body: Subscribe List@mydomain.org
Thanks!