Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesMaking Module send an email.Making Module send an email.
Previous
 
Next
New Post
3/28/2010 9:30 PM
 

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!

 
New Post
3/29/2010 4:30 AM
 
A warning is not an error, SendMail currently is still supported, but will be removed in some future framework version. I haven't looked at the new message interfaces yet.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/31/2010 11:47 PM
 

Sorry Sebastian, thanks for correcting.  OK, so it's a warning.  So now, how do I use the latest API to send a message?

I wanted to use the form and list module, but that doesn't seem to be an option because you can't change the "from" address....

All I want to do is have a text box with a "subscribe" button that sends an e-mail from the address entered into the text box to a mailing list aggregator (in SmarterMail).

 
New Post
4/1/2010 5:42 AM
 

On first look, new messaging API still needs some time to mature, there are features from previous send methods missing. 

Check out latest beta of FnL at dnnformandlist.codeplex.com, which allows specifying the from address as well.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesMaking Module send an email.Making Module send an email.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out