summaryrefslogtreecommitdiff
path: root/inc/mail.php
Commit message (Collapse)AuthorAge
* The mail() function shouldn't be executed when no recipients are given.Matthias Schulte2011-06-26
| | | | | Empty to, cc or bcc fields could lead to an Internal Server Error: malformed header from script. Bad header=No recipient addresses found...
* fixed email subject encoding bug ($enc_subj typo)Kazutaka Miyasaka2011-06-06
|
* correctly encode quoted email namesElan Ruusamäe2011-02-11
|
* Use Base64 encoding for long subjects FS#2169Andreas Gohr2011-02-10
| | | | | | | | | | | | | | | Quoted-Printable specifies a maximum line length and some mail tools (Apple mail and Thunderbird) take this quite serious and will fail to decode subjects encoded with quoted-printable when the subject exceeds the length limit. The correct fix would be to wrap the header into multiple lines. But this seems not to be possible with mails() $subject variable. This patch switches to Base64 encoding for long subjects. A general decision if switching completely to Base64 is the best way to go is still open. (see bugreport)
* Revert "use CRLF in quoted printable encoding FS#1755"Andreas Gohr2011-02-06
| | | | | | | | | | This research suggests that, the change does not help, but in fact breaks previoulsy working setups: https://bugs.dokuwiki.org/index.php?do=details&task_id=1755#comment3446 I'm still at loss on how to fix this bug. This reverts commit 2ae68f97446ff6bae5fbbe463eb00312598be840.
* Update EmailValidator to r10 and allow local email addresses FS#2118Andreas Gohr2010-12-18
|
* surpress warning in mail setup when hostname can't be determinedAndreas Gohr2010-12-08
|
* Use $USERINFO in mail_setup, as $INFO['userinfo'] is not yet available.Elan Ruusamäe2010-11-29
| | | | | | | | | 20:51:05 <glen> what is the difference between $INFO['userinfo'] and $USERINFO? 20:52:17 <splitbrain> none really 20:52:33 <glen> yet one works ($USERINFO) and the other doesn't in my setup 20:52:59 <splitbrain> $INFO isn't available everywhere 20:53:27 <splitbrain> or might not have been set yet (if you're fetching an early action hook) 20:53:27 <glen> yeah, mail headers setup failed for me
* handle mailfrom replacements in a central place FS#2091Andreas Gohr2010-11-05
|
* use CRLF in quoted printable encoding FS#1755Andreas Gohr2010-06-26
| | | | | | | Needs testing from: a) Exchange users - is FS1755 fixed for you? b) everone else - all okay still?
* first attempt to centralize all include loadingAndreas Gohr2010-01-31
| | | | | | | | Classes are loaded throug PHP5's class autoloader, all other includes are just loaded by default. This skips a lot of require_once calls. Parser and Plugin stuff isn't handled by the class loader yet.
* Coding Standard CleanupAndreas Gohr2009-10-20
| | | | | | Ignore-this: 259cb5773c3144c6c706d87298dcf674 darcs-hash:20091020212338-7ad00-6bf1c5c403491f136a1c02af5ecd9f84d7227107.gz
* Change expensive uses of split to the much faster explode.Tom N Harris2009-05-28
| | | | darcs-hash:20090528215438-6942e-bf1b875e689ade6bd1a17e3d812ce16bf35c84a6.gz
* removed some illogical path setupsAndreas Gohr2008-12-13
| | | | darcs-hash:20081213090400-7ad00-4e21cd75978bb07513f32f5d750658e8d777c59e.gz
* reverted the envelope address setting patchAndreas Gohr2008-10-13
| | | | | | | | | This implementation proved to be troublesome on certain setups. Instead of breaking possibly a *lot* of working setups to fix a few other systems, we decided to revert to the previous behavior. Users which can't use this method for sending mails should consider the swiftmail plugin. darcs-hash:20081013171949-7ad00-83c336824da6e5428b7d8e06aea7e6d8e8a24f58.gz
* readded email patterns -> fixes email links broken with yesterdays validator ↵Andreas Gohr2008-10-12
| | | | | | switch darcs-hash:20081012132714-7ad00-39316b19200fc122bdd4f780235e25a9fea09932.gz
* use EmailAddressValidator class for email validation FS#1503Andreas Gohr2008-10-11
| | | | darcs-hash:20081011173245-7ad00-578e03ca701fc4443ba91329be6ac1ca9344c7a7.gz
* some changes for the recent FS#1419 and FS#1375 fixesAndreas Gohr2008-10-11
| | | | | | very simple unit test added. Still needs *real world* testing! darcs-hash:20081011141442-7ad00-13378a7a14f81b0799102f0d53d6db8e1078b3e0.gz
* pass envelope headers to sendmail on Unix systems FS#1419 FS#1375Andreas Gohr2008-10-11
| | | | | | | This patch will pass the from and to headers to the sendmail binary, when sending mails. This needs heavy testing. darcs-hash:20081011122529-7ad00-db97a65eecf29a21a40abe9280b33a76cac58aec.gz
* fix parsing of email addresses with uppercase letters FS#1378Andreas Gohr2008-04-10
| | | | darcs-hash:20080410190757-7ad00-5876d4273cd99e64d1adc13e6a7e90e9b85cd673.gz
* corrections for earlier MAIL_MESSAGE_SEND patch :)Chris Smith2007-09-30
| | | | darcs-hash:20070930124603-d26fc-599122159a088c92dbbe3ed3fb10dc376d40c54e.gz
* Add MAIL_MESSAGE_SEND event (resolution of FS#1007)Chris Smith2007-09-30
| | | | | | | | | Wrapper around DokuWiki's mail_send() function. For full details refer http://wiki.splitbrain.org/wiki:events_list#mail_message_send Also see discussion at http://www.freelists.org/archives/dokuwiki/09-2007/msg00077.html darcs-hash:20070930014728-d26fc-ecdc7df22f35d1c04e8d22da332426df8a85da5b.gz
* don't use realpath() anymore (FS#1261 and others)Andreas Gohr2007-09-30
| | | | | | | | | | | The use of realpath() to clean up relative file names caused some trouble in certain setups relying on symlinks or having restricitve file structure setups. This patch replaces all realpath() calls with a PHP only replacement which should solve those problems. darcs-hash:20070930184250-7ad00-512ff04c95f57fc9eaf104f80372237a3c94286f.gz
* update email address validation to support 'museum' & 'travel' tldsChris Smith2007-06-27
| | | | darcs-hash:20070627184603-d26fc-b557a7f1c2ed4be7d967a25e64ca71b68095e6d5.gz
* fix for encoding email addressesAndreas Gohr2007-06-13
| | | | | | | There was a problem in the mail header builder which left out a space between real names and the email address, which broke certain mailers. darcs-hash:20070613153201-7ad00-df21a26f31a199c2a1e8754d76b23afcf7981539.gz
* RFC2047 fix for mail subjects (FS #1080)Guy Brand2007-02-15
| | | | | | Patch by Per Foreby darcs-hash:20070215184609-19e2d-a5361f5009df14a3c21729758e758fe4ee2d1117.gz
* improve and centralise email regexp, fixes FS#1049chris2007-01-25
| | | | darcs-hash:20070125143421-9b6ab-93ce6bfd804924af4651da9424738494f11fe5f2.gz
* user the MAILHEADER_EOL in quoted printable encodingAndreas Gohr2006-06-06
| | | | darcs-hash:20060606191953-7ad00-0e8098d5d8f4cf5379f3cce0e6899ac11c20a321.gz
* fix for quoted printable encodingAndreas Gohr2006-03-09
| | | | | | | | This patch replaces the old mail_quotedprintable_encode function with a better one which makes sure to never split an encoded character. This also makes sure mail headers aren't wrapped when quoting is needed. darcs-hash:20060309182459-7ad00-0c442b5422e9727fc70d206f8e1bcd6281536573.gz
* fix for the windows' limited to: header support in mails FS#738Andreas Gohr2006-03-07
| | | | darcs-hash:20060307185713-7ad00-d0952c48ec84d20d4a50897c670129ae5b4c7e09.gz
* file cleanupsAndreas Gohr2006-02-17
| | | | | | | | | | This patch cleans up the source code to satisfy the coding guidelines (see http://wiki.splitbrain.org/wiki:development#coding_style) It converts files to UNIX lineendings and removes tabs and trailing whitespace. Not all files were cleaned yet. darcs-hash:20060217222040-7ad00-bba3d2bee3b5aa7cbb5184258abd50805cd071bf.gz
* don't use named recipients in mails on Windows #652Andreas Gohr2005-12-03
| | | | darcs-hash:20051203131542-7ad00-9c65b70a7fade074b4d46939b1cc62984caa59c9.gz
* allowing + char in email addressesAndreas Gohr2005-09-16
| | | | darcs-hash:20050916191719-7ad00-703ee14706e6629e6312c103be0121bf2996c6cb.gz
* do not use params parameter in call to mail() if unneeded #397andi2005-06-20
| | | | darcs-hash:20050620203612-9977f-860eb4da35c5dcdba641fa0fb50786aec3477fe6.gz
* changed mail header seperator back to newlineandi2005-05-23
| | | | darcs-hash:20050523202635-9977f-802f9faa8e76e8a7e44e2ab8d6959d44684d43a9.gz
* make notify mails more RFC2822 conform (fixes #341 and #168)andi2005-05-23
| | | | | | | | | DokuWiki now uses only one To, Ccc or Bcc header and addes additinal addresses separated by commas. The headers are folded after each address to avoid too long headers. The header newline was changed to CRLF (as specified in RFC). This maybe fixes problems with some Windows Mailservers as well. darcs-hash:20050523194316-9977f-53b03081426d0f1946b6ca4ef2e6ddb4b798e533.gz
* removed closing php tag for includesandi2005-04-13
| | | | darcs-hash:20050413175338-9977f-c969db6f86df5df175db9a39b4fabb9f072f8f67.gz
* better mailheader handling #168andi2005-02-27
| | | | darcs-hash:20050227094102-9977f-a481ce76ccdb40f8eaa762a332b93093de8f7a87.gz
* added init.php - may have broken something! (related to #153)andi2005-02-19
| | | | darcs-hash:20050219102055-9977f-575d654e742934c911ffab855d82aa91f198b5cf.gz
* utf8 safe mailfunctions added (fixes #82)andi2005-01-27
darcs-hash:20050127211411-9977f-77f25921e855969dd8b7d4ded732bfdba5aec7ab.gz