Commit graph

45 commits

Author SHA1 Message Date
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
Colin Kuskie
636ed5ce9a MIME headers should be MIME encoded. Fixes bug #11089. 2009-10-07 16:15:01 -07: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
Colin Kuskie
f54e975c14 Enable WebGUI sites to send SMS messages as inbox notifications. 2009-05-13 21:55:33 +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
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
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Wes Morgan
f88093a82b added more MIME encoding of mail headers in case wide chars sneak in there 2009-02-18 21:40:47 +00:00
Frank Dillon
cde696c767 Added isAdHocMailGroup flag which can be used to build temporary groups of users to send notifications to. Once the users have been added to the mail queue in WebGUI::Mail::send, the group is deleted. 2008-09-22 22:26:59 +00:00
Graham Knop
7aa9c59af8 clean up sent messages some 2008-09-18 19:51:14 +00:00
Kaleb Murphy
f8f797fa24 Sent email from field now prefixed with username 2008-09-09 15:09:45 +00:00
Colin Kuskie
0f41a4916a update POD for send method 2008-08-27 03:02:11 +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
Graham Knop
1b8567abb2 encode all parts of sent mail properly 2008-06-25 20:02:46 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00
JT Smith
fa09c41598 replaced return; with return undef; 2008-01-24 21:58:15 +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
Colin Kuskie
96178fd70c first round of Perl::Critic cleanups. Do not use return undef, use a bare return instead 2007-12-05 00:30:43 +00:00
Graham Knop
c091192f47 merging 7.4 changes 2007-11-29 05:56:46 +00:00
Graham Knop
0635a2a17e fix relative links in emails 2007-07-19 16:51:46 +00:00
JT Smith
a7dde82421 updated copyright 2007-07-01 16:09:42 +00:00
Colin Kuskie
4f570b67c9 Forward port of inactive user group email fix, and user status documentation. 2007-06-28 20:03:22 +00:00
Frank Dillon
a2098b828a removed debug code accidentally left in 2007-06-15 22:30:23 +00:00
Frank Dillon
82e020dc4f Changes to WebGUI for Private Messaging 2007-06-14 20:10:33 +00:00
Graham Knop
688e3ac7b6 Always use correct format for Message-Id headers in mail. 2007-05-08 05:51:18 +00:00
Drake
c3ec86ed82 Removed extraneous UTF-8 BOM from WebGUI/Mail/Send.pm since the rest of the
file is valid US-ASCII.
2006-11-03 15:11:13 +00:00
JT Smith
aeba6ec83c merging 7.1.4 changes 2006-11-03 04:36:13 +00:00
JT Smith
dfe92a73e2 preparing for 7.0.5 release
fixed some bugs
2006-08-09 16:09:17 +00:00
JT Smith
c65d9490e7 - Fixed mail bounce processing.
- fix: Asset Manager displaying incorrectly
 - fix: Cannot paste from clipboard
 - Made the search indexer mor compatible with Chinese and other non-ascii
   characters. (Thanks to Zhou Xiaopeng)
2006-07-24 22:18:39 +00:00
JT Smith
1171d11891 - Deleted a template that was accidentally added to the core.
- Made some improvements to the mail subsystems.
2006-07-24 19:15:35 +00:00
JT Smith
45080ea0d9 - fix: cs mail needs archive url
- fix: cs mail not sending in-reply-to and references headers
 - fix: cs mail doesn't like code via email
 - CS mail now sends out the email address of the poster as from, when it 
   exists.
2006-07-19 18:37:33 +00:00
Wouter van Oijen
2d9565775f POD fixes and removing debug output 2006-07-11 09:05:22 +00:00
JT Smith
e225c2276a - fix: cs mail posts - no url prepending
- Multiple "Re:"'s on CS Mail posts are now a thing of the past.
 - Made mail message ids follow convention.
2006-06-14 17:48:38 +00:00
JT Smith
19658dc625 oops, forgot to check in 2006-05-16 20:35:26 +00:00
Colin Kuskie
2f5dab37d2 finalized Group code with migration and upgrade log 2006-04-14 01:17:39 +00:00
JT Smith
a7df0f7a55 fixing some bugs relaed to cs mail replies
fixed a bug in the user manager where the user would take on the username/alias of the visitor
fixed a bug in error handling where debug was being spewed for errors in approriately
2006-04-11 22:50:11 +00:00
JT Smith
30fefe9e68 added a return path for undeliverable messages 2006-04-11 15:11:45 +00:00
JT Smith
504de54d61 started adding email processing capabilities to cs 2006-04-09 22:36:49 +00:00
JT Smith
6c6d36c981 readding mail footer to email messages
removed some old settings that don't apply any longer
2006-04-09 16:12:32 +00:00
JT Smith
2b02f055f9 added new mail retrieval subsystemm 2006-04-09 15:14:07 +00:00
JT Smith
bf1a0ad11e more workflow bugfixes 2006-03-31 02:51:37 +00:00
JT Smith
b6ad963119 replaced MessageLog with Inbox 2006-03-21 22:44:31 +00:00
JT Smith
7c71d93c1e added mail send queue 2006-03-21 03:27:57 +00:00
JT Smith
3e60294bb6 Run on registration and alert on new user have been converted to a single workflow. 2006-03-10 03:48:23 +00:00
JT Smith
3816ad750f replaced webgui mail system 2006-01-31 20:20:09 +00:00