Page 1 of 1

Resend Registration

Posted: Mon Feb 13, 2023 9:47 pm
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.


Re: ASPM223 Resend Regsitration

Posted: Tue Feb 14, 2023 7:16 am
by MichaelG

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


Re: Resend Regsitration (v2023)

Posted: Mon Feb 20, 2023 2:09 am
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


Re: Resend Regsitration (v2023)

Posted: Mon Feb 20, 2023 7:14 am
by MichaelG

Check your email subject before modifying the email.


Re: Resend Registration

Posted: Thu Feb 23, 2023 5:58 am
by crash

Thanks, I got this working, removed current user level


Re: Resend Registration

Posted: Tue Aug 29, 2023 5:20 am
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


Re: Resend Registration

Posted: Tue Aug 29, 2023 8:05 am
by MichaelG

Check the email subject first before modifying.