yii - Send mail using mail() function in PHP , XAMPP on LOCALHOST smtp GMAIL -
i have send attchments chunk_splits have utilize simple mail service function can not utilize other things phpmailer, swiftmailer,
my current settings php.ini
smtp=smtp.gmail.com smtp_port=587 sendmail_from=xyz@gmail.com sendmail_path = "\"d:\xampp\sendmail\sendmail.exe\" -t"
sendmial settings
smtp_port=587 smtp_ssl=tls auth_username=xyz@gmail.com auth_password=xyz
are settings right ... able send via yiimail extension.. becuase of attachments have add together so.. can not that..
in mail service have can not utilize other things swift/php mailer
$pdf tcpdf object attaching pdf on go not saving on local disk
$_session['pdf'] = $pdf->output("order_receipt.pdf", "s"); $attachment[0] = chunk_split(base64_encode($_session['pdf'])); $headers .= "--" . $separator . $eol; $headers .= "content-type: application/octet-stream; name=\"" . $lable[0] . "\"" . $eol; $headers .= "content-transfer-encoding: base64" . $eol; $headers .= "content-disposition: attachment" . $eol . $eol; $headers .= $attachment[0] . $eol . $eol;
phpmailer supports chunksplit configure phpmailer , try
$mail->addattachment($_files['uploaded_file']['tmp_name'],$_files['uploaded_file']['name']);
php yii smtp sendmail tcpdf
No comments:
Post a Comment