Version: 2.9.0 Reporter: Robin Sowell —
This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report
It looks like when you send an attachment in batch mode- it gets dropped. batch_send() pulls out the email data to send using get_cached_email($id) from communicate model and then uses that to set all the email config values. Sends ‘x’ emails, then refreshes the page and does the whole thing over again.
I think what probably needs to happen is store the attachment in the cache. The only negative- we just upload to the temp folder and we do attempt to rename it there- but I don’t know how long it sticks around. Passed a file_exists() check during all of those refreshes for me- so in that case, it would have worked. But I’m not sure how universal that would be- and I doubt it would work resending emails, but that’s another issue entirely. We can always put a file exists check in the batch method.
But it might be worth considering updating communicate to store the attached files permanently. However, that’s going down the rabit hole a bit.
Oh- and likely needs a tweak to the $this->_delete_attachments(); placement- double check that as well.
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```