<div dir="ltr"><div><div><div><div><div><div>Hi Earnie<br></div>Thanks for reply.<br><br></div>It is a D7 platform from starting.<br><br><br></div>I have one module, if I uninstall that, then these things works fine.<br><br>
<br></div>Not sure, how one module if enabled, causes this problem...<br><br></div>BR,<br></div>kamal<br><div><div><div><div><br><br></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Jun 27, 2013 at 8:50 PM, Earnie Boyd <span dir="ltr"><<a href="mailto:earnie@users.sourceforge.net" target="_blank">earnie@users.sourceforge.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Did you do an upgrade or a copy from D6 to D7?<br>
<br>
The tokens changed, you'll need to modify the mail template to the<br>
current format. The format is given on the form edit.<br>
<br>
Earnie<br>
<div><div class="h5"><br>
On Thu, Jun 27, 2013 at 9:49 AM, Kamal Palei <<a href="mailto:palei.kamal@gmail.com">palei.kamal@gmail.com</a>> wrote:<br>
> Dear All<br>
> Recently I noticed when account is created (D7), Drupal send a welcome mail<br>
> to user (mode is no_approval_required),<br>
><br>
> the format of the mail is something like this ..<br>
><br>
> user,<br>
><br>
> Thank you for registering at <site>. You may now log in by clicking this<br>
> link or<br>
> copying and pasting it to your browser. Please set your password<br>
> accordingly.<br>
><br>
> <link><br>
><br>
> username: user<br>
><br>
> -- <site> team<br>
><br>
><br>
> This was working fine till recently. Then I have written a custom module to<br>
> send group mails. It is very simple, reads all mail ids from a table and<br>
> send mail one by one just making use of PHP's inbuilt mail function.<br>
><br>
> Then I noticed, all the yellow colored text above goes blank when Drupal<br>
> sends mail to user.<br>
><br>
> On further debugging found that, in function _user_mail_text (in user<br>
> module), the variables site::name and user::name are blank.<br>
><br>
> Did anybody face this kind of issue anytime?<br>
> Kindly give me some pointer how to approach to fix this issue.<br>
><br>
> Thanks<br>
> Kamal<br>
> Net Cloud Systems<br>
><br>
><br>
</div></div>> --<br>
> [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Earnie<br>
-- <a href="https://sites.google.com/site/earnieboyd" target="_blank">https://sites.google.com/site/earnieboyd</a><br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></span></blockquote></div><br></div>