Commit graph

61 commits

Author SHA1 Message Date
Rory Zweistra
7beec1d2ec Fixed typo that prevented to get the company name from the settings table 2011-05-11 16:45:21 +02:00
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
864b65e38c Remove debug statement. 2010-06-17 16:13:07 -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
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
7f095970c6 fixed: Some multipart mail messages have parts chosen incorrectly 2008-08-14 15:45:13 +00:00
Graham Knop
9d9175c176 fixed: Mail messages not properly decoded 2008-07-01 15:25:14 +00:00
Graham Knop
1b8567abb2 encode all parts of sent mail properly 2008-06-25 20:02:46 +00:00
Graham Knop
6812c043f4 fixed: CS mail retrieval doesn't decode subject properly 2008-05-20 15:49:33 +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
9167097d11 better regex matchnig behavior 2007-10-05 19:57:38 +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
JT Smith
748e56a3b3 Email to forum not working from Mac 2007-05-02 18:51:53 +00:00
JT Smith
28d9659031 - Fixed a bug with dealing with CS posts via email where
multipart/alternative messages would cause a blank post.
2007-01-24 22:44:32 +00:00
JT Smith
8774a6c26a fix: CS email message shows up as an attachmetn 2007-01-19 00:21:07 +00:00
Doug Bell
cdc6671929 fix: Mail::Get now handles multipart/alternative messages appropriately. This fixes CS posts showing multiple versions when e-mailed in. 2007-01-07 08:07:54 +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
ebfa3e3d2f - Better handling of automated messages and post bounces for CS Mail. 2006-06-13 15:21:24 +00:00
Matthew Wilson
ff2235b7f0 getCsMail doesn't recognize References 2006-05-19 20:19:39 +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
85e3b5a111 whoops 2006-04-11 15:30:31 +00:00