You're using the standard PHP mail function. You should consider the Cake EmailComponent, instead. Have a look here:
http://bakery.cakephp.org/articles/view/brief-overview-of-the-new-emailcomponent http://dsi.vozibrale.com/articles/view/using-emailcomponent-in-cakephp-1-2 and, of course ... http://book.cakephp.org/view/176/email On Fri, Mar 27, 2009 at 11:32 AM, morc <questionmarc...@msn.com> wrote: > > Im using: mail($to, $subject, $message, $from); > Im not incredibly advanced with php so excuse the fact that the link > you gave me confuses me. > I got the above line working correctly. > However i can't figure out how to attach a file to the email. It will > be a CV. (<input type="file" name="upload">) > I stored that into a variable $file. > But like i said, I can't figure out what to do with it. Can someone > help a bit more? > > Thanks in advance > -morc > > On Mar 26, 12:58 pm, mscdex <msc...@gmail.com> wrote: >> On Mar 26, 12:15 pm, morc <questionmarc...@msn.com> wrote: >> >> > Now I've been able to send the email with all the information without >> > a problem. But Ive been googling and can't find a comprehensive >> > explanation on how to add an attachment to the e-mail. Can anybody >> > hear help me? or point me in the right direction? >> >> If you're using the EmailComponent, then according to the CakePHP >> manual, there is a class attribute called "attachments" which is an >> array containing the full or relative paths of file(s) to attach to >> the email >> mesage:http://book.cakephp.org/view/270/Class-Attributes-and-Variables > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---