Author Topic: SVN 675 - send empty mail message  (Read 5773 times)

Offline Florianer

  • Full Member
  • ***
  • Posts: 102
SVN 675 - send empty mail message
« on: August 14, 2007, 03:43:40 AM »
Hi,
this happened now once more, so I considered to write it down: I start composing a new HTML email. Filling in a receiver, a subject, switching to body text area, deleting the prefilled signature and writing a line of text. Now I click send and get the German warning for: "Are you sure to send an empty email?" - clicking on yes sends the mail and opening the mail in the sent folder there is a text body. So I guess, there is something wrong with the body text check.
it\'s not a bug - it\'s a feature


Offline 4alexi

  • Newbie
  • *
  • Posts: 2
Re: SVN 675 - send empty mail message
« Reply #1 on: August 31, 2007, 03:02:14 PM »
Hi Florianer

Same happens here...

in program/js/app.js arount line 1700:

Code: [Select]
 // check for empty body
  if ((input_message.value == '' || (window.tinyMCE && tinyMCE.getContent() == '')) && !confirm(this.get_label('nobodywarning')))
   {
   input_message.focus();
   return false;
   }

should be && i think

Code: [Select]
 // check for empty body
  if ((input_message.value == '' && (window.tinyMCE && tinyMCE.getContent() == '')) && !confirm(this.get_label('nobodywarning')))
   {
   input_message.focus();
   return false;
   }



(first part is plain text email body, second part is html email body). Only one of them is filled at the same time.

Offline CBoensch

  • Newbie
  • *
  • Posts: 3
Re: SVN 675 - send empty mail message
« Reply #2 on: August 31, 2007, 05:47:17 PM »
Hi!

it does not fix the Problem (i`ve got the same Message)
If you switch between HTML and TEXT Mail (and back), the Message does not appear...