无法使用codeigniter中的弹性电子邮件API发送带有附件的电子邮件

您所在的位置:网站首页 在线发送邮件api 无法使用codeigniter中的弹性电子邮件API发送带有附件的电子邮件

无法使用codeigniter中的弹性电子邮件API发送带有附件的电子邮件

2023-03-24 02:59| 来源: 网络整理| 查看: 265

我已经使用TCPDF生成PDF,它工作正常。我尝试发送电子邮件与PDF生成作为附件的电子邮件。电子邮件发送没有附件。请帮助更正下面的代码,以确保附件也在电子邮件中发送。payment.php

$attachment = $pdf->Output('example_001.pdf', 'D'); $attachment = base64_encode($attachment); $attachmentlink = 'http://localhost/cfac/resources/invoices/example_001.pdf'; $inputdata['firstname']="abc"; $inputdata['ename']="Event Name"; $inputdata['tno']="tno:232423"; $inputdata['amount']="10000rs"; $inputdata['edetails']="EDetails"; $inputdata['startdate']="Start Date"; $inputdata['enddate']="End Date"; $template='xyz'; $emailid="[email protected]"; // email helper to send email $this->load->helper ('email'); $filename = "example_001.pdf"; $file_name_with_full_path = base_url()."resources/inv/example_001.pdf"; $filetype = "application/pdf"; $attachmentFiles = array('http://localhost/cfac/resources/inv/example_001.pdf'); send_email($emailid,$inputdata,$template, $attachmentFiles );

emailhelper.phpemailconfig详细信息已设置为配置文件中的值。



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3