FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » sending pdf files to individual email...
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: sending pdf files to individual email... [message #186432 is a reply to message #186431] Tue, 29 July 2014 07:34 Go to previous messageGo to previous message
J.O. Aho is currently offline  J.O. Aho
Messages: 194
Registered: September 2010
Karma:
Senior Member
On 29/07/14 07:31, nag wrote:

Hi nag,

> I have a basic idea on PHP and mysql.
> I have a text file with employee_number and employee_name and employee_email id delimited with comma.
> i have uploaded it into a mysql table called empDetails.

I assume the table has three columns and not one column where you have a
row from the csv.



> I have a folder containing pdf files. Each pdf file is named with <employee_number>.pdf
> Now I want to send the each pdf file to respective employee mail id as an attachment from my mail.

Look at www.php.net/manual/en/function.mail.php

Don't forget to verify that there is an pdf file to send before you try
to send the mail, people do not like email which states there is an
attachment and there is none or getting an empty email.


> Kindly give me a solution.

Do we get your salary too?


--

//Aho
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: We are trying to make the world a better place, wanna join us?
Next Topic: installation de php_ssh2.dll avec PHP 5.4.3
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Dec 19 08:08:07 GMT 2024

Total time taken to generate the page: 0.04941 seconds