title: Add $_POST['url'] to body of email Pear package?
body: <p>I need my php script to email me some variables which is parsed to it.</p>
  
  <p>I receive the email properly when any text is passed:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>mypage.php?url=hello</code></pre>
  </div>
  </div>
  </p>
  
  <p>But I do not receive the email if an url is passed:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>mypage.php?url=http://www.google.com</code></pre>
  </div>
  </div>
  </p>
  
  <p>I searched for hours but didn't found any way to do it.</p>
  
  <p>This is the php script:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  // Pear Mail Library
  require_once "Mail.php";
  
  
  $name = $_POST['name'];
  $url = $_POST['url'];
  
  
  
  $from = '&lt;noreply@website.com&gt;';
  $to = '&lt;me@gmail.com&gt;';
  $subject = 'Hi!';
  $body = '
  
  
  Name: '.$name.'
  The url is: '.$url.'
  
  
  ';
  
              
  $headers = array(
      'From' =&gt; $from,
      'To' =&gt; $to,
      'Subject' =&gt; $subject
  );
  
  
  
  $smtp = Mail::factory('smtp', array(
          'host' =&gt; 'ssl://smtp.gmail.com',
          'port' =&gt; '465',
          'auth' =&gt; true,
          'username' =&gt; 'mail@gmail.com',
          'password' =&gt; 'password'
      ));
  
  
  $mail = $smtp-&gt;send($to, $headers, $body);
  
  if (PEAR::isError($mail)) {
      echo('&lt;p&gt;' . $mail-&gt;getMessage() . '&lt;/p&gt;');
  } else {
      echo('&lt;h1&gt;Message successfully sent!&lt;/h1&gt;');
  }
  
  ?&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>When an actual url is parsed, I don't recive the email but also no error is shown.</p>