create pdf and add it as attachment to php mail function

Completado Publicado Feb 22, 2011 Pagado a la entrega
Completado 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.

PHP

Nº del proyecto: #960273

Sobre el proyecto

33 propuestas Proyecto remoto Activo Feb 28, 2011

Adjudicado a:

lightcresent

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

$85 USD en 1 día
(1 comentario)
3.7

33 freelancers están ofertando un promedio de $71 por este trabajo

sritechnocrat

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

$60 USD en 5 días
(43 comentarios)
6.8
dagdya99

Lets start

$100 USD en 1 día
(91 comentarios)
6.4
AndrwProjects

Hi, will create email with attachment. I know how. thanks.

$44 USD en 2 días
(170 comentarios)
6.2
shambhal

HI there Please check pmb Regards Shambhal

$30 USD en 1 día
(114 comentarios)
6.2
kev2me

I can fix your mail function to have attachments work and generate a custom PDF.

$75 USD en 1 día
(74 comentarios)
6.0
Techurge

Hi We are ready to start this project ASAP. We assure you a great output of this project. We are a great team of graphic designers and programmers. we make long term business relationship with our clients for daily upd Más

$75 USD en 4 días
(17 comentarios)
5.7
prominentsoft

I can fix the problem regarding mail attachment. Details on PMB.

$100 USD en 4 días
(9 comentarios)
5.5
allhen

Ready to work !!

$75 USD en 3 días
(48 comentarios)
5.4
easycoders

Hi, Please check your inbox

$60 USD en 1 día
(35 comentarios)
5.4
nbgun

You have a PMB.

$100 USD en 3 días
(17 comentarios)
5.3
aasol

Please check your inbox for details, Thanks

$30 USD en 1 día
(25 comentarios)
5.1
Softanz

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.

$50 USD en 2 días
(30 comentarios)
5.1
yancy

I can get this done for you.

$30 USD en 0 días
(17 comentarios)
5.0
kumarefusion

Hi We are the specialists in PDF Making. We can start work immediately.

$50 USD en 1 día
(32 comentarios)
4.9
kadukmm

I can do it for you.

$100 USD en 1 día
(28 comentarios)
4.9
kazaa

Hello please see pm.

$60 USD en 2 días
(7 comentarios)
4.0
djkuddel

I can do it for you.

$50 USD en 1 día
(2 comentarios)
2.4
namtd

hi. please check your PMB!

$40 USD en 1 día
(3 comentarios)
1.6
basantnegi

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

$30 USD en 0 días
(1 comentario)
1.4
neelu7779

hi I have done this before and I know this inside out. Can do it in a day.

$150 USD en 1 día
(3 comentarios)
1.3