I gang

create pdf and add it as attachment to php mail function

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.

Færdigheder: PHP

Se mere: add pdf email, thank you mail, subject php, rr mail, return path, php style, php mail function pdf attachment, create email pdf file php, php create function, where is invoice?, type text pdf, type some pdf text, rr, php pdf invoice, php invoice, php function , pdf work, pdf type, pdf script, pdf invoice, pdf file in text, email add, create pdf file, create name, create membership

Om arbejdsgiveren:
( 15 bedømmelser ) Glen Allen, United States

Projekt-ID: #960273

Tildelt til:

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 på 1 dag
(1 bedømmelse)
3.7

33 freelancere byder i gennemsnit $71 for dette job

tomydeveloper

Hello,We are php / html / photoshop [url removed, login to view] check [url removed, login to view]

$100 USD in 3 dage
(197 bedømmelser)
7.3
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 Mere

$60 USD in 5 dage
(43 bedømmelser)
6.8
dagdya99

Lets start

$100 USD på 1 dag
(91 bedømmelser)
6.4
AndrwProjects

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

$44 USD in 2 dage
(170 bedømmelser)
6.2
shambhal

HI there Please check pmb Regards Shambhal

$30 USD på 1 dag
(114 bedømmelser)
6.2
kev2me

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

$75 USD på 1 dag
(74 bedømmelser)
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 Mere

$75 USD in 4 dage
(17 bedømmelser)
5.7
prominentsoft

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

$100 USD in 4 dage
(9 bedømmelser)
5.5
allhen

Ready to work !!

$75 USD in 3 dage
(48 bedømmelser)
5.4
easycoders

Hi, Please check your inbox

$60 USD på 1 dag
(35 bedømmelser)
5.4
nbgun

You have a PMB.

$100 USD in 3 dage
(17 bedømmelser)
5.3
aasol

Please check your inbox for details, Thanks

$30 USD på 1 dag
(25 bedømmelser)
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 dage
(30 bedømmelser)
5.1
yancy

I can get this done for you.

$30 USD in 0 dage
(17 bedømmelser)
5.0
kumarefusion

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

$50 USD på 1 dag
(32 bedømmelser)
4.9
kadukmm

I can do it for you.

$100 USD på 1 dag
(28 bedømmelser)
4.9
kazaa

Hello please see pm.

$60 USD in 2 dage
(7 bedømmelser)
4.0
djkuddel

I can do it for you.

$50 USD på 1 dag
(2 bedømmelser)
2.4
namtd

hi. please check your PMB!

$40 USD på 1 dag
(3 bedømmelser)
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 Mere

$30 USD in 0 dage
(1 bedømmelse)
1.4