load->library("Gmail"); $sender = ["email" => "padmanto@sismedika.com", "name" => "P. Kris"]; $recipients = [ ["email" => "padmanto@gmail.com", "name" => "Padmanto"] ]; $cc = []; $isHtml = true; $attachments = [ [ "name" => "LapReport.pdf", "url" => "https://devcpone.aplikasi.web.id/birt/run?__report=report/one/mcu/rpt_mcu_history.rptdesign&__format=pdf&PID=5&PPatientID=112&username=adhi&tm=1717726294764" ] ]; $subject = "Percobaan yang pertama"; $message = "

Informasi percobaan kedua

.
No. Nama
1 Joko
2 Budi
3 Koko

Terima Kasih."; list($status, $message) = $this->gmail->send( $sender, $subject, $message, $recipients, $cc, $isHtml, $attachments ); if ($status) { echo "Email success di kirimkan."; } else { echo "Email gagal di kirimkan. [$message]"; } } }