Commit graph

73 commits

Author SHA1 Message Date
gwoo
6affb7f70a updating EmailComponent, making lineLength public, deprecating protected _lineLength, default value of 70, updating docblocks,
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7105 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-03 17:26:30 +00:00
nate
42da5aba81 Moving Cake folder to correct location
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7063 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 11:40:08 +00:00
DarkAngelBGE
e6e0d852a2 deleting cake folder from svn
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7061 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 10:59:16 +00:00
TommyO
67f2255076 Fixed minor bug in connect communications with SMTP server
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7059 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-29 20:43:13 +00:00
TommyO
ecc4347e25 Fixed bug for Authenticating against SMTP server. Added test case.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7058 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-29 17:26:43 +00:00
TommyO
a89feed085 EmailComponent reference twekaed to be more PHP4 friendly
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7055 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-28 15:28:47 +00:00
TommyO
3670598052 Adapted EmailComponent SMTP sends to use CakeSocket for communications
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7053 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-28 15:17:18 +00:00
TommyO
ee113b7a5c Fixes bugs in EmailComponent where multiple sends will duplicate headers and content. Makes debug more consistent with sends.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7052 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-28 14:59:13 +00:00
nate
9eeecc8755 Adding content stripping fix for email component, fixes #4753
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7043 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-25 18:08:55 +00:00
joelmoss
cedb20e612 Replaced all instances of renderElement() with element(). Fixes #4740
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7017 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 23:04:36 +00:00
mariano.iglesias
5f967487bb Encoding subject without modifying original, fixes #4489
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6683 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-17 22:12:58 +00:00
phpnut
1d9a096376 "Fixes #4427, Current protected attribute Email::_newLine renders Email Component unusable for SMTP.
Original change to EmailComponent:_newLine reverted, related bug has been fixed elsewhere in the code."

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6632 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-04 11:46:09 +00:00
phpnut
358c529e7a "Fixes #4416, Email component uses invalid \"Content-Type\" for attachments.
Added fclose();
Removed unused code"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6623 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-02 18:57:29 +00:00
phpnut
fa787aa82b "Closes #4304, EmailComponent::!__getSmtpResponse not handling multiline messages"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6601 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-26 03:49:30 +00:00
phpnut
63144591c6 "Fixes #3820, Email Component only sends message if using template and layout.
Fixes #4019, email component: attaching file is broke, fixes undefined variable, allows full paths to attachment.
Fixes #4171, Email Component: Lost a head line 'period' via SMTP method.
"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6522 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-08 20:26:16 +00:00
phpnut
348df0fca2 "Fixes #3849, Deprecated loadView() call in email component when using theme"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6333 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-08 02:48:07 +00:00
phpnut
cb53dc61b0 "Closes #2897, Built-in file validation.
Implemented Validation::extension(); and Vaidation::range();
Updated copyright notices in all files"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6296 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-01 22:18:17 +00:00
phpnut
f9c1058a20 "Closes #3295, Centralize encoding / charset setting in one Configure setting"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6253 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-25 09:08:36 +00:00
phpnut
1489239252 "Closes #2215, Santize Class and EmailComponent need some header injection protection and cleaning"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6244 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-25 05:30:54 +00:00
phpnut
aa86d05b96 "Fixes #2298, Mail subject is not influenced by charset-setting"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6109 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-03 00:16:27 +00:00
phpnut
d4a0f8300e "Fixes #3634, Email Component and PHP4. Double headers being set for To: and Subject:"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6047 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-22 17:12:03 +00:00
phpnut
c000940e36 Closes #2119 Only define clone() in PHP4 when it hasn't been already defined.
Closes #2213, Support multiple plugin paths.
Closes #2234, filepaths to behavior classes should be cached in class.paths.php also
Closes #2345, ability to group components into subfolders
Closes #2645, Improvement to basic.php for class loading.
Fixes #3526, Cache::write, when using just the config name, it fails.
Fixes #3559, loading plugin model as assoc don't work.
Closes #3567 Controller Folders (Note this does not need routing to work, but controller names can not conflict with others in the same application so naming must still be unique)
Fixes #3579, email.php component: Parse error with php 4.

Adding new class and file importer.
Updated most of the core to use the importer.
Added ClassRegsitry::init() that will create and instance of an object and store it in the registry.
Deprecated most of the load functions in basics.php
Plugin model loading now forces using the dot notation, to use models within a plugin, all the model associations must be in the PluginName.Model syntax, if this is not used, the plugin will look for the models in the main app/models directory first, if not found then it will search the plugin directories recursively until it finds a model.
	var $belongsTo = array('SomeModel'); will look for some_model.php in the app/models
	var $belongsTo = array('MyPlugin.SomeModel'); will look for some_model.php in my_plugin/models
	var $belongsTo = array('MyPlugin.MyPlugin', 'SomeModel'); will used my_plugin/models/my_plugin.php and app/models/some_model.php
	
The controllers of the plugin will still look for the default models inside the plugin if var $uses is not set:
	var $uses = array('SomeModel'); will look for some_model.php in the app/models
	var $uses = array('MyPlugin.SomeModel'); will look for some_model.php in my_plugin/models
	var $uses = array('MyPlugin.MyPlugin', 'SomeModel'); will used my_plugin/models/my_plugin.php and app/models/some_model.php

All of the above will work between plugins and main app
These changes also allow placing model and controllers is sub directories
Removed old class.paths.php file generation 

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6001 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-16 09:35:19 +00:00
phpnut
6d867d72a9 Fixes #3547, EmailComponent: SMTP: Cc and Bcc recipients must be sent through RCPT TO - also need different formatting.
Fixes #3548, EmailComponent: SMTP: No subject, and no recipient headers.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5985 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-12 03:26:34 +00:00
phpnut
4e163f471f Fixes #3520, EmailComponent: Doesn't catch valid SMTP authentication response.
Fixes #3521, EmailComponent: Violates SMTP protocol - "Improper use of SMTP command pipelining"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5959 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-06 06:09:06 +00:00
phpnut
1e1c49025a Fixes #3502. Minor fix to email component - leading newline bug
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5956 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-06 04:39:23 +00:00
phpnut
56425c7f39 Closes #3429, scripts_for_layout are lost when you send an email with EmailComponent
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5874 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 23:52:12 +00:00
mariano.iglesias
b1f42ec4c5 Adding documentation for EmailComponent
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5869 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 21:03:47 +00:00
phpnut
f5be2ded4b Adding fix to EmailComponent, would not use custom view.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5862 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 17:24:37 +00:00
phpnut
dfa840ad92 Fixes #3433, [5788] breaks email component under certain conditions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5861 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 17:14:49 +00:00
mariano.iglesias
896f62544b Changing @return int to @return integer and @param bool to @param boolean
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5860 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:54:36 +00:00
phpnut
1f9136eb18 Fixes #3432, Email component won't show smtp info during debug
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5859 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:20:07 +00:00
mariano.iglesias
897825d596 Adding documentation to classes belonging to Cake console.
Standarizing on datatypes used in phpdocblocs and removing unneeded @return types

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5851 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 05:52:20 +00:00
phpnut
28a36282c5 Fixes #3393, Email headers get appended each time send() is called
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5791 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-19 04:08:50 +00:00
phpnut
cc7d1ab74c Fixes #2462 mime_content_type() is deprecated in EmailComponent.
Closes #2909, Emailcomponent SMTP authentication.
Closes #2916, EmailComponent: Add read receipt header.
Closes #2969, change default charset in emailcomponent from ISO-8859-15 to utf-8.
Closes #3304, EmailComponent doesn't allow custom view class.
Fixes #3353, Email Component, content not shown when a file is attached.
Fixes #3381, Email::__wrap function ignores the $_newLine configuration property.
Fixed ThemeView::renderElement() to load helpers
Changed View::renderElement() to search core elements also

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5788 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-19 02:31:25 +00:00
phpnut
39612a9bad Fixes #2970, bad encoding in email send as text
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5662 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-16 20:36:28 +00:00
phpnut
45d50e8aaa Fixes #3173, Change single quotes to double quotes in EmailComponent
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5658 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-16 19:19:52 +00:00
dho
0d1d5f51fa Removing debug statement
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5507 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-11 14:58:09 +00:00
phpnut
aabbf0ed85 Adding patch from #2908, fixed to read the response from the server
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5505 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-11 13:31:12 +00:00
phpnut
31c3447682 Adding fix for #2937, Email component needs new lines when sending as both
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5459 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-24 20:02:14 +00:00
phpnut
17f1d90eba Reverting last commit to EmailComponent
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5458 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-24 19:34:35 +00:00
phpnut
2e342b7eb3 Adding doc comments and refactoring component
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5457 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-24 17:54:38 +00:00
phpnut
360f00becf Adding fix for #2105, Email Component template should default to null?
Adding fix for #2196, allow creation of user defined headers in email component.
Adding fix for #2215, EmailComponent header injection protection and cleaning.
Adding fix for #2717, EmailComponent should account for SAFE_MODE restriction on php mail function.
Adding fix for #2855, EmailComponent methods and parameters (to, subject, message, from etc.) should be email injection safe
Adding fix for #2859, EmailComponent does not send email when adding cc: and bcc:

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5389 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-07 23:33:22 +00:00
chartjes
d1f6f2339e Refactored SMTP send code, cleaned up tests. Test requires local SMTP server that is working
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5353 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 15:12:48 +00:00
chartjes
15da6d1255 Added code to allow Email compoenent to send email via SMTP, along with test for component
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5351 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-26 20:29:38 +00:00
dho
126fac4145 Typo (ticket #2829)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5349 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-26 06:00:50 +00:00
phpnut
40a47a5e90 Correcting session errors in EmailTest test case
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5348 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-26 04:28:24 +00:00
chartjes
5913b5d21e Added in support for sending code out via SMTP
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5346 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-25 21:17:09 +00:00
phpnut
dac1bd0913 Correcting code structure to standards
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5315 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 07:51:52 +00:00
phpnut
23dfd90b29 Correcting code structure to standards
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5313 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 06:15:35 +00:00
phpnut
137fea94c6 Cleaning up line endings
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4994 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-03 04:35:25 +00:00