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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Remove dnn default register emailRemove dnn default register email
Previous
 
Next
New Post
2/20/2015 1:27 AM
 
Respected Sir/Mam,

I need to send my custom email when user register from registration page, I have customize the registration, but when user register from registration page then default email is also sending to that user, Below is email received.

"Dear firstname lastname,
Thank you for registering at My Website. Please read the following information carefully and be sure to save this message in a safe location for future reference.
Website Address: localhost:19295
Username: username1
Your account details will be reviewed by the website Administrator and you will receive a notification upon account activation.
Thank you, we appreciate your support...
My Website"

I need to remove this default dnn register email functionality, so from where I can achieve this?
Please help us to resolve this issue.

Regards,
Sourabh S. Malani


 
New Post
2/20/2015 4:23 AM
 
this is default function of private registration in DNN, you may edit the text in Admin > Languages (using the pen in Edit static resources > Site, in default document search key EMAIL_USER_Registration).

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/24/2015 2:19 AM
 

Respected Sir/Mam,

We don' require to use default register email template, we have created the new register email template and we have customize the registration page. but when we register new user then it is getting two emails, One is default email and another is the new email that is created by us.

so, how we can block this default register email sending to user?

Please help us to resolve this issue.

Regards,

Sourabh S. Malani

 
New Post
2/24/2015 2:56 AM
 
I am not aware of an Option to disable default mail being sent, except modifying the core.
Maybe it is easier to remove the send function from your module and move the mail template into the core.
Feel free to enter an enhancement request into the issue tracker at support.dnnsoftware.com, asking for
sendout being suppressed if subject or body template is empty.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/25/2015 8:10 AM
 
I've having the same problem, however I have a custom registration module that I have been using from DNN6 upwards, and it's only started within the latest version of DNN 7.3.4.

please see the code below

//Create Random Password
char[] wrandom = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'R', 'S', 'T', 'U', 'V', 'X', 'W', 'Y', 'Z' };
Random random = new Random();
string random_string = "";
int count = 8; //YOU WILL SPECIFY HOW MANY CHARACTER WILL BE GENERATE
for (int i = 0; i < count; i++)
{
random_string = random_string + wrandom[random.Next(0, 24)].ToString();
}

//Set required information to the UserInfo object
UserInfo objUser = new UserInfo();

objUser.PortalID = this.PortalId;
objUser.IsSuperUser = false;
objUser.FirstName = txtFirstName.Text;
objUser.LastName = txtLastName.Text;
objUser.DisplayName = txtFirstName.Text + " " + txtLastName.Text;
objUser.Email = txtEmail.Text;
objUser.Username = txtEmail.Text;

UserMembership objMembership = new UserMembership();
objMembership.Approved = true;
objMembership.CreatedDate = DateTime.Now;
objMembership.Email = txtEmail.Text;
objMembership.Username = txtEmail.Text;
objMembership.Password = random_string;

//Assign membership object to the UserInfo Object
objUser.Membership = objMembership;

//Register User
UserCreateStatus result = UserController.CreateUser(ref objUser);

//Check status
if (result == UserCreateStatus.Success)
{
// Save additional fields to database and sends custom email confirmation
}

I have tried turning off the accounts within the admin section, and it still sends the default email, and I don't want to use the default email, as we add additional tokens that aren't supported, and log each email that is sent.

Any ideas?
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Remove dnn default register emailRemove dnn default register 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.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out