• thephrase

    (@thephrase)


    I think the [Import from spreadsheet] function is supposed to send email, but I think it doesn’t.

    I believe what EWD_FEUP_Send_Email needs and what the call to this function in Update_admin_databases.php provides do not match.

    EWD_FEUP_Send_Email is wanting 3 inputs
    1- an array with user data like this

    Array
    (
    [Username] => vanzelf
    [User_Registration_Type] => FEUP
    [User_Password] => 34b98fa1111c82da442eb11ad6f3fe5cda756d7b
    etc.
    [User_Date_Created] => 2016-11-21 16:55:52
    [User_Last_Login] => 2016-11-21 16:55:52
    )

    and
    2- An array with extra fields like this
    Array
    (
    [First Name] => Array
    (
    [Field_ID] => 1
    [Field_Name] => First Name
    [Field_Value] => van
    )

    [Last Name] => Array
    (
    [Field_ID] => 2
    [Field_Name] => Last Name
    [Field_Value] => Self
    )
    [mail] => Array
    (
    [Field_ID] => 3
    [Field_Name] => mail
    [Field_Value] => [email protected]
    )
    )

    And
    3- password data from $_POST

    What the function is given in Update_Admin_Databases.php/Add_FEUP_Users_From_Spreadsheet is just
    (array(), array(), $User_ID)

    I tried to create a quick fix, but I need to do more digging, I didn’t want to alter the send email function, but I want the Password to be sent in the email as well. And that is retrieved from $_POST.

    Just to let you know.

    Also the shortcode that is pasted in the editor [user-profile-page login_necessary=”Yes”] I think should be [user-profile login_necessary=”Yes”] ?

    That was it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Phrase,

    The spreadsheet import does not send emails. The sign-up email that is sent to the user is triggered on submission of the registration form, as is the email that is sent to the admin when someone registers.

    You can indeed include the password in the initial email that is sent to the user when they register by using the [password] shortcode/placeholder in the “Registration Message Body” field in the “Emails” tab. However, as previously mentioned, this only applies if someone is registering using the form on your site. No email will be sent out if you import users via spreadsheet.

    When you say, “shortcode that is pasted in the editor [user-profile-page login_necessary=”Yes”],” which editor are you talking about? Where did you see this shortcode?

    Thread Starter thephrase

    (@thephrase)

    Oh, so sending mails is not part of the spreadsheet import. Ok. Why is there a call to EWD_FEUP_Send_Email() in Add_FEUP_Users_From_Spreadsheet()?

    Notifying front end users
    More importantly: If there is no mail send in the bulk upload from spreadsheet: What would you suggest would be the way my students (front end users) would be notified of the way they can login to the system?

    Shortcode
    When I tick the FE Basic users option: ‘Should a shortcode bulider be added to the tinyMCE toolbar in the page editor?’ A shortcode builder menu item [ <>FE Users ] is added. If you choose the user-profile one, the user-profile-page is inserted. This is not a valid shortcode in my version.

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    We’ve been testing implementing such a feature and hoped to have it out already, but, unfortunately, it isn’t ready yet. Right now, there is no automatic notification alternative for spreadsheet import. We hope to be able to implement a feature like this in a future update.

    Thank you for clarifying that it is the toolbar shortcode builder that is inserting the incorrect shortcode. That isn’t a valid shortcode in anyone’s version. We’ll look to get this corrected in an upcoming update.

    Thread Starter thephrase

    (@thephrase)

    No problem, I added just a few lines of code to EWD_FEUP_Send_Email() and Add_FEUP_Users_From_Spreadsheet() and my version can send the correct mails.
    It’s only a one-time action.

    In the meantime in the production version I suggest the call
    EWD_FEUP_Send_Email(array(), array(), $User_ID)
    in function Add_FEUP_Users_From_Spreadsheet()
    is also a buggy line and it’s better removed.

    Thanks.

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Phrase,

    Glad to hear you have it working the way you require. And thank you for the suggestion.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Import users from spreadsheet does not send an email’ is closed to new replies.