What is wrong with this PHP script to send mail using Pear Mail?

后端 未结 3 546
花落未央
花落未央 2021-01-05 17:12

I have this script:

require_once \"Mail.php\";

 $from = \"Stephen \";//Google apps domain
 $to = \"username@gmail.com\";
 $sub         


        
3条回答
  •  抹茶落季
    2021-01-05 17:35

    perhaps it has to do with a missing ampersand?

    I notice in documentation examples, the usage of factory looks like this:

    // Create the mail object using the Mail::factory method
    $mail_object =& Mail::factory('sendmail', $params);
    

    Note the assigment using =&

提交回复
热议问题