Re: Email attachment through form.

2009-03-27 Thread morc

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. ()
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  wrote:
> On Mar 26, 12:15 pm, morc  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
-~--~~~~--~~--~--~---



Email attachment through form.

2009-03-26 Thread morc

Hi,
I've been trying to figure this out, i assume its pretty simple. I
have a form that users enter information about them self then an input
field that allows them to browse and attach there CV. Which then gets
sent by email.

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?

All help appreciated
Thanks in advance.
-morc

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---