Hi,

When Email Message is left blank, the email sent to the user is derived from the default message. The default message however, offers various emails options, where to my humble opinion the "user created by administrator" email should be selected, as opposed to the email message sent out when a user creates an account.

Regards,

Comments

ambereyes’s picture

I agree that the admin_body message should be used for imported users. But I do prefer the welcome_subject text.

So I suggest the following change: Change 'welcome_body' to 'admin_body' as below at lines 59-62 of user_import.inc

    $subject = (empty($subject)) ? _user_mail_text('welcome_subject', $variables) : strtr($subject, $variables);
    $subject = mime_header_encode($subject);
    $body = (empty($body)) ? _user_mail_text('admin_body', $variables) : strtr($body, $variables);
    $body = str_replace("\r", '', $body);

Katrina

--
www.ambereyes.net

ambereyes’s picture

Version: 5.x-1.3 » 5.x-2.x-dev

Forgot to change version.

esadot’s picture

Thanks Katerina. I'm not keen on changing the code, and in any event i can freely use the welcome message on my sites. I thought of raising the issue for the community sake, so others may not get confused as i did.

robert castelo’s picture

Status: Active » Closed (works as designed)

I can see your point, but I prefer to stick with the current set up because I think it's more straight forward for most admins, and may cause problems for people upgrading this module - the welcome message can be customised on the import settings form, so users have the option to send any message they prefer.