Commit graph

27 commits

Author SHA1 Message Date
Colin Kuskie
aed2c13f52 Fix double body encoding when sending emails. Added tests. Fixes bug #11672. 2010-07-05 11:56:33 -07:00
Colin Kuskie
40e6d7036b Add a test for UTF-8 handling in the subject. 2010-07-05 10:21:26 -07:00
Colin Kuskie
169fa47cdc Insert mail footers into the first attachment of the email, trying to match its type (text/html). Convert email messages with only 1 part to singlepart, instead of multipart. Fixes bug #11560. 2010-06-15 12:26:02 -07:00
Graham Knop
b832deecd1 convert all cleanup methods to addToCleanup 2010-06-10 10:09:53 -05:00
Colin Kuskie
3b7d582e8d Removing END blocks 2010-06-07 18:12:03 -07:00
Colin Kuskie
16e482f1d2 Remove diags, and fix counts for mail tests. 2009-10-27 19:15:26 -07:00
Colin Kuskie
636ed5ce9a MIME headers should be MIME encoded. Fixes bug #11089. 2009-10-07 16:15:01 -07:00
Colin Kuskie
0390d77833 Update number of tests to skip when the correct modules aren't present. 2009-08-21 04:23:16 +00:00
Patrick Donelan
388a0b1267 Fixed a whole lot of brokenness in Inbox SMS/Email notifications
WebGUI::Inbox::Message::create now passes isInbox flag to WebGUI::Mail::Send::create
so that per-user notification settings get used

SMS Gateway setting field is now 'text' instead of 'email' so that user can enter a
properly formed value (such as 'myemailgateway.com', which is not an email address).

Added SMS notification template as distinct from email notification template because
SMSs should not be HTML and in general you will want to make your SMS notification
message a lot shorter than your html email notification message (160 char limits in
many countries). As a result, SMSs are now sent as separate emails to gateway rather
than being CCd on email notification.

Added smsGatewaySubject setting because many SMS Gateways use email subject for
authentication. For consistency, also added Email notification email subject.

Fixed handling of different combinations of site-wide sendInboxNotificationsOnly with
per-user receiveInboxEmailNotifications and receiveInboxSmsEmailNotifications.
 * sendInboxNotificationsOnly && receiveInboxEmailNotifications = email notification
 * sendInboxNotificationsOnly && !receiveInboxEmailNotifications = no email
 * !sendInboxNotificationsOnly = ignore receiveInboxEmailNotifications
 * In all cases, SMS is optional and only dependent on receiveInboxSmsEmailNotifications

Updated tests and i18n
2009-08-16 09:42:35 +00:00
Doug Bell
e99c78cb58 refactor Mail/Send test to make test smtp server useful 2009-06-05 02:26:40 +00:00
Colin Kuskie
cbb32cbce8 Fix number of skips in tests. 2009-05-28 22:46:25 +00:00
Colin Kuskie
5690b18125 Forward porting t/Mail/Send.t delay for server startup 2009-05-19 16:44:39 +00:00
Colin Kuskie
f54e975c14 Enable WebGUI sites to send SMS messages as inbox notifications. 2009-05-13 21:55:33 +00:00
Graham Knop
7d0f1e4b8a improve handling of SMTP test server 2009-04-30 18:17:23 +00:00
Colin Kuskie
70845fd9e8 Fix bad angle bracket handling in messageIds in Main/Send.pm
Extend Mail/Send.t to test messageId generation.
2009-04-26 03:05:22 +00:00
Colin Kuskie
4e78593395 Change tests to use the automatic backup of Settings in END blocks. 2009-03-30 20:41:02 +00:00
Colin Kuskie
5248423519 Add tests for toGroup sending. 2009-03-17 16:11:37 -07:00
Colin Kuskie
7336d2d630 SMS coding complete, beginning testing.
Added getInboxAddresses method to User.pm, with tests.
All SMS/Email address choices are made in Mail/Send, on create
and on send, since that's when it handles groups.
Test variable addresses on creating mails.
Updated t/smtpd.pl to handle receiving and sending multiple messages.
2009-03-17 14:35:13 -07:00
Colin Kuskie
69768606eb Fix syntax warnings. 2009-03-16 21:54:52 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Graham Knop
7867ba61d5 turn off email to log properly for mail tests 2008-11-04 22:47:05 +00:00
Graham Knop
9856cc5904 clean up tests some 2008-10-14 22:03:41 +00:00
Frank Dillon
7901eb9642 Added a config setting that allows email to be piped to the log rather than pass through a mailserver that may or may not exist. Added a TODO test block. 2008-08-26 15:56:21 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00
Doug Bell
e5ca1aa00d fix: missed a skip 2008-02-05 23:52:01 +00:00
Doug Bell
53ac4be8d1 Added a simple smtpd for testing
MERGE: Added ability for WebGUI::Test->getPage to work on Operations
MERGE: Fix for AdSpace and tests for Operation::AdSpace
Fixed Poll's use of JSON
Added tests for emailOverride
2008-02-05 19:34:09 +00:00
Doug Bell
338c494d47 fix: Mails sent from WebGUI now wrap at 78 characters to prevent a problem with SMTP servers that do not accept lines longer than 998 characters. This is per the SMTP RFCs. Added testing for this fix, still much to test for WebGUI::Mail::Send. Added API method to facilitate testing. 2008-01-12 07:46:32 +00:00