<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Dear All<br></div>Recently I noticed when account is created (D7), Drupal send a welcome mail to user  (mode is no_approval_required),<br><br></div>the format of the mail is something like this ..<br>
<br><pre><span style="background-color:rgb(255,255,0)"><b>user</b></span>,

Thank you for registering at<b> <span style="background-color:rgb(255,255,0)">&lt;site&gt;</span></b>. You may now log in by clicking this link or
copying and pasting it to your browser. Please set your password accordingly.
<br>&lt;link&gt;

username: <span style="background-color:rgb(255,255,0)"><b>user</b></span>

-- <span style="background-color:rgb(255,255,0)"> &lt;site&gt; </span>team</pre><br></div>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&#39;s inbuilt mail function.<br>

<br></div>Then I noticed, all the yellow colored text above goes blank when Drupal sends mail to user.  <br><br></div>On further debugging found that, in function <b>_user_mail_text </b>(in user module), the variables <b>site::name</b> and <b>user::name</b> are blank.<br>
<br></div>Did anybody face this kind of issue anytime?<br></div>Kindly give me some pointer how to approach to fix this issue.<br><br></div>Thanks<br></div>Kamal<br></div>Net Cloud Systems<br><div><div><div><div><div><div>
<div><div><br></div></div></div></div></div></div></div></div></div>