create pdf and add it as attachment to php mail function
$30-250 USD
Pagado a la entrega
I have a script that queries a database and then sends emails to the query output. I need to add an attachment to this php function:
$message="Dear $rr[firstname], <br /><br />
<b>Hello</b>, this is an email. Thank You";
$subject="Your membership expires in 1 Week";
$recipient = $rr[email];
$body = "<html>\n";
$body .= "<body style="font-family:Verdana, Verdana, Geneva, sans-serif; font-size:12px; color:#000;">\n";
$body = $message;
$body .= "</body>\n";
$body .= "</html>\n";
$headers = "From: name <[url removed, login to view]>\r\n";
$headers .= "Reply-To: [url removed, login to view]\r\n";
$headers .= "Return-Path: [url removed, login to view]\r\n";
$headers .= 'MIME-Version: 1.0' . "\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$attachment = chunk_split(base64_encode(file_get_contents("[url removed, login to view]")));;
return mail($recipient, $subject, $message, $headers);
}
I tried adding this to the parameters, but it did not work:
$attachment = chunk_split(base64_encode(file_get_contents("[url removed, login to view]")));
I need to actually create the PDF file where you can dynamically enter in some details such as name, email, etc from the query and then attach that to the email. The PDF invoices should be personalized for each recipient.
Nº del proyecto: #960273
Sobre el proyecto
Adjudicado a:
Have done this many times before... No upfront needed, all payments through Milestone Payment (Escrow).. Online 16 Hours a day, Can start right away.. Thanks
33 freelancers están ofertando un promedio de $71 por este trabajo
Sri Technocrat is marvelous in its quality. We have been maintaining the quality in every field whether it is services or training. We have proved our stability. We have been working with the same grace & quality. Our Más
Dear sir, After reading your project details,we are interested in this project and would like to bid on this project. Please view my PMB for more details. Thank you.
we will do this job according to your requirements and as per your satisfaction. we can show you sample of this work also. we will be happy to work for you. you wont regret working with us, and we will be in touch with Más