SMF Development > Fixed or Bogus Bugs

The smf newslletter function have sizes limitations?

<< < (2/3) > >>

emanuele:
No, it shouldn't be a problem at all.
Just more space for your newsletters. :P

luuuciano:
Well... I have changed it to mediumtext... then tried sending the newsletter (just to admin)... and the same happened...
The email is truncated in the same position...

How is done the newsletter sending process? maybe the newsletter content is sent/stored to/in other place, previous the email queue line?
So I need to change to mediumtext other table field/s too?

Changed body, on personal_messages & messages too... newsletter truncated...
mmmm, there are no more places with body fields involved...

emanuele:
Of course the two inserts (Subs-Post.php):

--- Code: --- // Dump the data...
$smcFunc['db_insert']('',
'{db_prefix}mail_queue',
array(
'time_sent' => 'int', 'recipient' => 'string-255', 'body' => 'string-65534', 'subject' => 'string-255',
'headers' => 'string-65534', 'send_html' => 'int', 'priority' => 'int', 'private' => 'int',
),
$cur_insert,
array('id_mail')
);
--- End code ---

--- Code: --- // Flush out what we have so far.
$smcFunc['db_insert']('',
'{db_prefix}mail_queue',
array(
'time_sent' => 'int', 'recipient' => 'string-255', 'body' => 'string-65534', 'subject' => 'string-255',
'headers' => 'string-65534', 'send_html' => 'int', 'priority' => 'int', 'private' => 'int',
),
$cur_insert,
array('id_mail')
);
--- End code ---

you have to remove the "-65534" after string...and that reminds me I "fixed" something without actually fix it...

MrPhil:
Why would either plain text or HTML be base64 encoded? Images and binary attachments yes, but text and tags, no. If the presence of binary data is causing everything to be encoded, I'd call that a bug (or at the least, bad design). Anyway, if the limitation was 30kB, it's possible that the original 21kB expanded to 30kB when base64 encoded. Just some thoughts...

luuuciano:

--- Quote from: emanuele on May 02, 2012, 04:44:21 PM ---you have to remove the "-65534" after string...and that reminds me I "fixed" something without actually fix it...

--- End quote ---

Thanks!
Removed it, just for the body string, not headers... it worked great!
:)

BTW, when it is used the "// Flush out what we have so far." section?
(because I forgot to edit it at the first try... anyway it was sent ok the newsletter)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version