Resend Registration

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
crash
User
Posts: 186

Resend Registration

Post by crash »

Has anyone tested resend registration email? (v2023)

Resend registration button shows, but when I click nothing happens.
Microsoft SQL Express , could this be a SQL database setting.


MichaelG
User
Posts: 1186

Post by MichaelG »

Enable debug mode (Tools -> Advanced Settings -> Debug), check if there is any errors during sending emails.


crash
User
Posts: 186

Post by crash »

After lots of trial and error, I have realized that the resend registration system does not work when I have email sending in place.

When I remove this completely the resend works in ASPM23 and sends the registration email

This code breaks resend registration function. I use this code for another function

// Email Sending event
public bool Email_Sending(Email email, dynamic? args) {
//Log(email);

if (CurrentUserLevel() == "-1")
{
email.Recipient = Convert.ToString(args["rsold"]["email"]);
email.Subject = "Subject Text";
email.Content = "Dear" + " " ;
}
return true;
}

Any help pls, I have use the code as is explained in the help files


MichaelG
User
Posts: 1186

Post by MichaelG »

Check your email subject before modifying the email.


crash
User
Posts: 186

Post by crash »

Thanks, I got this working, removed current user level


crash
User
Posts: 186

Post by crash »

I am trying this again... I need the email to send on if (CurrentUserLevel() == "-1")
This is then as the master admin... it works if I set to edit page...

Is there another way to write this code so that it does not block my resend registration

Thanks


MichaelG
User
Posts: 1186

Post by MichaelG »

Check the email subject first before modifying.


Post Reply