chris
Posts: 16
|
Posted: 05/28/2004, 7:48 AM |
|
WIN XP / PHP / IIS /MYSQL
I wrote an application that is sending emails, but how can I include attachments. I guess I have to encode them in the message-body. Are there any utilities/functions/plug-ins .... in PHP or CC I can use ?
thx,
Chris
|
|
|
peterr
Posts: 5971
|
Posted: 05/28/2004, 11:37 AM |
|
Possibly Google would help: http://www.google.com/search?q=php+email+attachments
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
chris
Posts: 16
|
Posted: 06/01/2004, 11:50 AM |
|
Peterr,
thx, I found what I needed. But I have another question; I went through several pieces of interesting code allowing to send email +attachments.
After testing it, I like to include the php-code in the code generated by CCS; where do I put the include of the special mail code ? Is there a special area foreseen, to add in includes ?
thx,
CHris
|
|
|
peterr
Posts: 5971
|
Posted: 06/01/2004, 12:19 PM |
|
I believe that most CCS users put the global functions (common code) at the end of the Common.php file. Then you could call those functions from any page using the Events.
If you intend to use one function on just one page then you could place it inside the Page_events.php script, somewhere between the events, or just place the code without creating a function directly in the event.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
|