Roundcube Community Forum

 

SVN 675 - send empty mail message

Started by Florianer, August 14, 2007, 03:43:40 AM

Previous topic - Next topic

Florianer

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


4alexi

Hi Florianer

Same happens here...

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

 // 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

 // 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.

CBoensch

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...