Did you do an upgrade or a copy from D6 to D7?
The tokens changed, you'll need to modify the mail template to the
current format. The format is given on the form edit.
Earnie
> --
On Thu, Jun 27, 2013 at 9:49 AM, Kamal Palei <palei.kamal@gmail.com> wrote:
> Dear All
> Recently I noticed when account is created (D7), Drupal send a welcome mail
> to user (mode is no_approval_required),
>
> the format of the mail is something like this ..
>
> user,
>
> Thank you for registering at <site>. You may now log in by clicking this
> link or
> copying and pasting it to your browser. Please set your password
> accordingly.
>
> <link>
>
> username: user
>
> -- <site> team
>
>
> This was working fine till recently. Then I have written a custom module to
> send group mails. It is very simple, reads all mail ids from a table and
> send mail one by one just making use of PHP's inbuilt mail function.
>
> Then I noticed, all the yellow colored text above goes blank when Drupal
> sends mail to user.
>
> On further debugging found that, in function _user_mail_text (in user
> module), the variables site::name and user::name are blank.
>
> Did anybody face this kind of issue anytime?
> Kindly give me some pointer how to approach to fix this issue.
>
> Thanks
> Kamal
> Net Cloud Systems
>
>
> [ Drupal support list | http://lists.drupal.org/ ]
--
Earnie
-- https://sites.google.com/site/earnieboyd
--
[ Drupal support list | http://lists.drupal.org/ ]