create pdf and add it as attachment to php mail function

Fertiggestellt Veröffentlicht Feb 22, 2011 Bezahlt bei Lieferung
Fertiggestellt Bezahlt bei Lieferung

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

Projekt-ID: #960273

Über das Projekt

33 Vorschläge Remote Projekt Aktiv Feb 28, 2011

Vergeben an:

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 in 1 Tag
(1 Bewertung)
3.7

33 Freelancer bieten im Durchschnitt $71 für diesen Job

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 Mehr

$60 USD in 5 Tagen
(43 Bewertungen)
6.8
dagdya99

Lets start

$100 USD in 1 Tag
(91 Bewertungen)
6.4
AndrwProjects

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

$44 USD in 2 Tagen
(170 Bewertungen)
6.2
shambhal

HI there Please check pmb Regards Shambhal

$30 USD in 1 Tag
(114 Bewertungen)
6.2
kev2me

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

$75 USD in 1 Tag
(74 Bewertungen)
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 Mehr

$75 USD in 4 Tagen
(17 Bewertungen)
5.7
prominentsoft

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

$100 USD in 4 Tagen
(9 Bewertungen)
5.5
allhen

Ready to work !!

$75 USD in 3 Tagen
(48 Bewertungen)
5.4
easycoders

Hi, Please check your inbox

$60 USD in 1 Tag
(35 Bewertungen)
5.4
nbgun

You have a PMB.

$100 USD in 3 Tagen
(17 Bewertungen)
5.3
aasol

Please check your inbox for details, Thanks

$30 USD in 1 Tag
(25 Bewertungen)
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 in 2 Tagen
(30 Bewertungen)
5.1
yancy

I can get this done for you.

$30 USD in 0 Tagen
(17 Bewertungen)
5.0
kumarefusion

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

$50 USD in 1 Tag
(32 Bewertungen)
4.9
kadukmm

I can do it for you.

$100 USD in 1 Tag
(28 Bewertungen)
4.9
kazaa

Hello please see pm.

$60 USD in 2 Tagen
(7 Bewertungen)
4.0
djkuddel

I can do it for you.

$50 USD in 1 Tag
(2 Bewertungen)
2.4
namtd

hi. please check your PMB!

$40 USD in 1 Tag
(3 Bewertungen)
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 Mehr

$30 USD in 0 Tagen
(1 Bewertung)
1.4
neelu7779

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

$150 USD in 1 Tag
(3 Bewertungen)
1.3