CINXE.COM

FS#1375 from address as sendmail option -f (with patch proposal)

<html> <head> <title>FS#1375 from address as sendmail option -f (with patch proposal)</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 /> Implemented </div> <h1>FS#1375 from address as sendmail option -f (with patch proposal)</h1> <h2>Customization</h2> <ul class="tasks"> <li class="task"> <div class="taskhead"> <img src="http://www.gravatar.com/avatar/845e48556c0684f8ebf1da84d3b44996?d=monsterid&s=48" align="left"/> <p class="text"> <span class="date">2008-04-09</span> <span class="user">etoulas</span> </p> </div> <div class="tasktext"> Some hosting providers (e.g. Host Europe) require the sendmail &quot;From&quot; option -f with a valid email address in order to send out email via PHP&#039;s send() function. This is due to their spam prevention precautions.<br /> <br /> DokuWiki already provides an option to customize the &quot;From&quot; field of the header. Additionally it should automatically set the above mentioned sendmail option if a custom &quot;From&quot; address is provided.<br /> <br /> My proposal looks like this:<br /> <br /> file: &nbsp; &nbsp; inc/mail.php<br /> function: mail_send()<br /> code:<br /> &nbsp;if (&#039;&#039; != $from) {<br /> &nbsp; &nbsp;if (null == $params) {<br /> &nbsp; &nbsp; &nbsp;$params = &quot;-f $from&quot;;<br /> &nbsp; &nbsp;} else {<br /> &nbsp; &nbsp; &nbsp;$params .= &quot; -f $from&quot;;<br /> &nbsp; &nbsp;}<br /> &nbsp;}<br /> <br /> I also attached a patchfile.<br /> The patchfile also contains an addition to the regex pattern used for mail_isvalid(). It includes the domainname &quot;localdomain&quot; as per RFC-something.<br /> <ul class="attachments"> <li> <a href="attachments/1375_b31767c020a5c4a4bfce44cfb" download="mail.php.patch">mail.php.patch</a> text/plain </li> </ul> </div> </li> <li class="task"> <div class="taskhead"> <img src="http://www.gravatar.com/avatar/845e48556c0684f8ebf1da84d3b44996?d=monsterid&s=48" align="left"/> <p class="text"> <span class="date">2008-04-16</span> <span class="user">etoulas</span> </p> </div> <div class="tasktext"> Still an issue with rc2008-04-11 </div> </li> <li class="task"> <div class="taskhead"> <img src="http://www.gravatar.com/avatar/b6b4d7dbe3fb7cf61b68e36cd80f8698?d=monsterid&s=48" align="left"/> <p class="text"> <span class="date">2008-10-11</span> <span class="user">andi</span> </p> </div> <div class="tasktext"> patch in devel - needs testing </div> </li> <li class="task"> <div class="taskhead"> <img src="http://www.gravatar.com/avatar/b6b4d7dbe3fb7cf61b68e36cd80f8698?d=monsterid&s=48" align="left"/> <p class="text"> <span class="date">2008-10-13</span> <span class="user">andi</span> </p> </div> <div class="tasktext"> Applied patch was reverted because it broke other mail setups. Users with the mentioned problem should consider the swiftmail plugin instead. </div> </li> <li> Related tasks: <ul> <li><a href="1419.html">FS#1419 mail sender does not works with ssmtp</a></li> </ul> </li> </ul> </div> </body> </html>

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