Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php Subject: Re: sending pdf files to individual email... Date: Tue, 29 Jul 2014 09:34:52 +0200 Lines: 31 Message-ID: References: <80518368-4133-4211-9d51-4949a5799d06@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net W9hPI1Xs2/NxyHFFsDcvUwYhaSmWq3eUZlIyzCyZQYQO+pwxOR Cancel-Lock: sha1:8yUopN9ngHBQ4IwpjaSTuXTuA54= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: <80518368-4133-4211-9d51-4949a5799d06@googlegroups.com> Xref: csiph.com comp.lang.php:14144 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 .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