<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">&lt;<a href="mailto:earnie@users.sourceforge.net" target="_blank">earnie@users.sourceforge.net</a>&gt;</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&#39;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 &lt;<a href="mailto:palei.kamal@gmail.com">palei.kamal@gmail.com</a>&gt; wrote:<br>
&gt; Dear All<br>
&gt; Recently I noticed when account is created (D7), Drupal send a welcome mail<br>
&gt; to user  (mode is no_approval_required),<br>
&gt;<br>
&gt; the format of the mail is something like this ..<br>
&gt;<br>
&gt; user,<br>
&gt;<br>
&gt; Thank you for registering at &lt;site&gt;. You may now log in by clicking this<br>
&gt; link or<br>
&gt; copying and pasting it to your browser. Please set your password<br>
&gt; accordingly.<br>
&gt;<br>
&gt; &lt;link&gt;<br>
&gt;<br>
&gt; username: user<br>
&gt;<br>
&gt; --  &lt;site&gt; team<br>
&gt;<br>
&gt;<br>
&gt; This was working fine till recently.  Then I have written a custom module to<br>
&gt; send group mails. It is very simple, reads all mail ids from a table and<br>
&gt; send mail one by one just making use of PHP&#39;s inbuilt mail function.<br>
&gt;<br>
&gt; Then I noticed, all the yellow colored text above goes blank when Drupal<br>
&gt; sends mail to user.<br>
&gt;<br>
&gt; On further debugging found that, in function _user_mail_text (in user<br>
&gt; module), the variables site::name and user::name are blank.<br>
&gt;<br>
&gt; Did anybody face this kind of issue anytime?<br>
&gt; Kindly give me some pointer how to approach to fix this issue.<br>
&gt;<br>
&gt; Thanks<br>
&gt; Kamal<br>
&gt; Net Cloud Systems<br>
&gt;<br>
&gt;<br>
</div></div>&gt; --<br>
&gt; [ 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>