title: Open a modal window while click on an anchor tag in a mail content
body: <p>In my application I am sending a mail content with a link that is anchor tag. While click on that link from mail user has to redirect to the website and need to show a popup. How can I do that?we have to open corresponding comment box popup while click on that link</p>
  <pre><code>$subject = &quot;New Task Created&quot;;
      
                  $message = '
                  &lt;html&gt;
                  
                  &lt;body&gt;
                  
                  &lt;table&gt;
                  &lt;tr&gt;
                      &lt;td&gt;content.&lt;/td&gt;
                  &lt;/tr&gt;
                  
                  &lt;tr&gt;&lt;td&gt;&lt;a  href=&quot;#&quot;   data-toggle=&quot;modal&quot; data-target=&quot;#exampleModalLong'.$lastid.'&quot;&gt;Comment&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
  
                  &lt;/table&gt;
                  &lt;/body&gt;
                  &lt;/html&gt;
                  ';
      $to='test@gmail.com';
                  // Always set content-type when sending HTML email
                  $headers  = 'MIME-Version: 1.0' . &quot;\r\n&quot;;
                 $headers .= 'Content-type: text/html; charset=iso-8859-1' . &quot;\r\n&quot;;
                      $headers .= 'From: test &lt;info@test.in&gt;' . &quot;\r\n&quot;;
                      
                      // send email
                      mail($to, $subject, $message, $headers);
  </code></pre>