• Resolved khansadi

    (@khansadi)


    Hi,

    I am testing the corn CSV import to create users with specific role. However when I use corn import no emails are generated to the new user’s with the login credentials.

    Hope you can help and thanks in advance for your time.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter khansadi

    (@khansadi)

    Found the bug.
    In importer.php the send mail part is only designed for from submission.

    //On line 420 
    if( isset( $form_data["sends_email"] ) && $form_data["sends_email"] && $mail_for_this_user ):

    Modified it for now as a workaround

    if( isset( $mail_for_this_user ) && $mail_for_this_user ):

    • This reply was modified 7 years, 3 months ago by khansadi.
    • This reply was modified 7 years, 3 months ago by khansadi.
    • This reply was modified 7 years, 3 months ago by khansadi.
    • This reply was modified 7 years, 3 months ago by khansadi.
    Plugin Author Javier Carazo

    (@carazo)

    Good morning,

    Sorry for the delay but I was on my holidays.

    I have just fixed it. Thanks for find the bug and for your code.

    I have made it a bit more complex to solve some cases, look at it:

    $mail_for_this_user = false;
    if( $is_cron ){
    if( get_option( “acui_send_mail_cron” ) )
    $mail_for_this_user = true;
    }
    else{
    if( $created || ( isset( $form_data[“send_email_updated”] ) && $form_data[“send_email_updated”] ) )
    $mail_for_this_user = true;
    }

    // send mail
    if( isset( $mail_for_this_user ) && $mail_for_this_user ):`

    This will be included in next version with a mention to you.

    Thanks!!!!

    Thread Starter khansadi

    (@khansadi)

    Thanks a lot Javier. I love this plugin and it match exactly the requirements I have for one of my project.
    Will look forward for new features (if you have time 🙂 ).

    Plugin Author Javier Carazo

    (@carazo)

    @khansadi,

    Thanks for your words.

    If you have a minute please give us a good review and if you can, any little donation would be really great appreciated.

    We use lots of our hours in this plugins and we almost never used it for personal projects so we need some help to continue with the develop.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No email is sent to new users when created via corn import’ is closed to new replies.