CINXE.COM

FS#652 The "To" field is not the proper syntax for Windows based php mail

<html> <head> <title>FS#652 The &quot;To&quot; field is not the proper syntax for Windows based php mail</title> <link href="static/style.css" rel="stylesheet"/> <meta charset="utf-8"/> </head> <body> <div class="container"> <div class="warning"> This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests are now tracked at the <a href="https://github.com/splitbrain/dokuwiki/issues">issue tracker at Github</a>. </div> <div class="resolution"> <strong>Closed</strong><br /> Fixed </div> <h1>FS#652 The &quot;To&quot; field is not the proper syntax for Windows based php mail</h1> <h2>Syntax</h2> <ul class="tasks"> <li class="task"> <div class="taskhead"> <img src="http://www.gravatar.com/avatar/?d=monsterid&s=48" align="left"/> <p class="text"> <span class="date">2005-12-01</span> <span class="user"></span> </p> </div> <div class="tasktext"> In auth.php, auth_sendPassword, the user&#039;s name is concatenated with their email address and sent into mail_send as the &quot;To&quot; parameter. &nbsp;This produces a &quot;username &lt;<a href="mailto:user@email.com">user@email.com</a>&gt;&quot; string which the Windows version of php rejects.<br /> <br /> From<a href=" http://us2.php.net/function.mail"> http://us2.php.net/function.mail</a><br /> <br /> &quot;Note: The Windows implementation of mail() differs in many ways from the Unix implementation. ..blah blah blah<br /> <br /> As such, the to parameter should not be an address in the form of &quot;Something &lt;<a href="mailto:someone@example.com">someone@example.com</a>&gt;&quot;. The mail command may not parse this properly while talking with the MTA. &quot;<br /> <br /> The quick fix to this is to send only the email address as the To param in mail_send from the auth_sendPassword function. </div> </li> <li> Related tasks: <ul> <li><a href="642.html">FS#642 Registration Email Bounces Because of From Syntax</a></li> </ul> </li> </ul> </div> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10