Note that there are some explanatory texts on larger screens.

plurals
  1. POReally weird Php Mail::factory Issue
    text
    copied!<p>I have this really weird issue that am troubled with and do not know how to fix it!</p> <p>Sample code i used here Wroks and sends me the email correctly!</p> <pre><code>&lt;?php require_once "Mail.php"; $from = "Web Master &lt;contact@sample.com&gt;"; $to = "bob &lt;sample@sample.com&gt;"; $subject = "Test email using PHP SMTP\r\n\r\n"; $body = "This is a test email message"; $host = "mail.emailsrvr.com"; $username = "sample@sample.com"; $password = "11111"; $headers = array ('From' =&gt; $from, 'To' =&gt; $to, 'Subject' =&gt; $subject); $smtp = Mail::factory('smtp', array ('host' =&gt; $host, 'auth' =&gt; true, 'username' =&gt; $username, '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;p&gt;Message successfully sent!&lt;/p&gt;"); } ?&gt; </code></pre> <p>But when i put this code into a email password reminder php code it stops working! i have put the code at the very front or at the place where u click to send button to trigger, nothing works and i have no idea why! the funny part is i had it working if i slowly copy in parts of the code and it WORKS for about the first one or two email and it stops working after...</p> <p>the code that comes before the reminder.php before the email script is below</p> <pre><code>&lt;?php ini_set("display_errors","1"); ini_set("display_startup_errors","1"); if(get_magic_quotes_runtime()) { set_magic_quotes_runtime(false); } include("include/dbcommon.php"); $cEmailField = "email"; $reminded=false; $strSearchBy="username"; include('libs/Smarty.class.php'); $smarty = new Smarty(); $strUsername=""; $strEmail=""; $strMessage=""; $conn=db_connect(); // Before Process event if(function_exists("BeforeProcessRemindPwd")) BeforeProcessRemindPwd($conn); </code></pre> <p>Please ! if you have any idea on the solution to this?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload