Closed (fixed)
Project:
Views Send
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 May 2010 at 18:41 UTC
Updated:
31 Mar 2011 at 15:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
claudiu.cristeaComment #2
claudiu.cristeaHere's a first patch.
This feature doesn't add any visual enhancement but it make all the process more clean and robust.
I ask everyone to test this patch. I need some bug checking before committing to CVS. Thanks!
Comment #3
claudiu.cristeaCommitted in #381384. Final patch attached.
Comment #5
roball commentedWith this patch applied, mails set to the "Full HTML" Message format are no longer actually sent as HTML (when Mime mail is installed). Had to revert this patch and reinstall Views Send and it worked fine again.
Comment #6
scubaguy commentedI'm having the problem of html emails not being send as html also.
Comment #7
claudiu.cristeaIt may be something in _views_send_prepare_mail() function, something around the $plain variable. Can somebody investigate this?
Comment #8
roball commentedDo you think you can solve this problem so that we have a working version of Views Send?
Comment #9
claudiu.cristeaWe will fix the issue, of course. In holiday right now :)
Comment #10
roball commentedWish you a nice holiday!
Maybe you could revert the patch from #3 until there is a working fix because with this patch being in dev that version can't be used unpatched.
Comment #11
roball commentedJust wanted to ask if there is any progress update on this critical issue - thanks.
Comment #12
claudiu.cristeaI cannot reproduce the error. What version of Mime Mail module do you use?
Comment #13
roball commentedMime Mail 6.x-1.0-alpha5, together with SMTP Authentication Support 6.x-1.0-beta5.
Comment #14
roball commentedI have the same problem on another site, where I don't use the "SMTP Authentication Support" module - just Mime Mail 6.x-1.0-alpha5. After reverting the patch from #3 via
HTML mails are fine. Have you now been able to reproduce the problem?
Comment #15
roball commentedThe same problem still exists with Mime Mail 6.x-1.0-alpha6. Please, could you care about this? I don't want to pressure, but I'm patiently waiting for this bug to be fixed since months.
Comment #16
delty commentedBump
Comment #17
roball commentedClaudiu, so at least 3 people here are observing this problem. Could you finally find time to look into it? This is really frustrating.
Comment #18
anawillem commentedMe too! This is a great module, and I'd like to see it really ready for production soon.
Comment #19
roball commentedUnfortunately, this module seems to be dead already before even seeing any working release :-(
Comment #20
franzWell, at least I made a patch to address the issue. What happens is that in mimemail's current version, there is a function for sending the mail that does everything, so we can clean up de code for sending. I just tested and it worked fine.
The only thing still not addressed is plain-only messages (there is an argument for mimemail()), because the format is not saved on the database.
Comment #21
franzForgot to change Status, please test this!
Comment #22
gabrielu commentedThis works for me.
I believe we should consider saving and retrieving
$plaintextfrom the database and comit it.Comment #23
roball commentedYeah, finally a solution!! Working fine for me - thanks a lot franz!
Also seems to fix another bug that truncated the message's Sender's name at the first whitespace.
Suggestion from gabrielu seems logic. Would like to post the corresponding patch?
Comment #24
franzThis could be implemented simply by placing a "fake" header in the message, with a boolean value. Of course, the header should be removed before sending, or rather comply to e-mail standards (which I'm not familiar with). I tried to address both issues with a new patch:
Comment #25
franzOps, changing state
Comment #26
franzI did not test this new patch, please do it if you can.
Comment #27
roball commentedI tested the patch at #24: It always sends HTML mails as HTML even if a user has set his profile preference to receive plain text only.
Comment #28
franzI was not even aware of this option. Tweaking the patch shouldn't be hard, thought... But I don't have the time for it right now...
Comment #29
roball commentedHere you can see how the "Email settings" fieldset at user/[UID]/edit look like:
Comment #30
franzCould this be addressed by another issue?
Is the maintainer currently active?
Comment #31
franzThat was Mimemail's option, easier than I thought. Instead of setting $plaintext as FALSE when content is set to HTML, I had to set it to NULL, so that mimemail would respect user's preferences
Comment #32
roball commentedThanks for your work on this. However, also with your latest patch I am getting HTML mails regardless of the plain text user preference. Not really a problem for me since the big problem has been solved with the patch.
Comment #33
SeanBannister commentedJust confirming that the patch in #31 fixes the problem of HTML e-mails being sent as plain text. But I haven't tested the plain text user preference.
Comment #34
roball commentedI think we should change this status to RTBTC since the #31 patch does solve the original problem. The remaining small issue is another issue.
Comment #35
claudiu.cristeaViews Send does not process messages when sending. Instead it performs all processing before spooling (see http://drupal.org/node/1065840). This I consider an "added value" of the module. That's why we cannot simply call
mimemail()becausemimemail()is preparing again the message (and we did that when spooling). This is design Mimemail issue that I addressed here #808518: API change: Split mail preparation from sending. Till that is fixed we have to fork the Mimemail code.Clever :) But I think that we have to fix the issue before spooling in
_views_send_prepare_mail(). I think there's a bug there when mail is prepared.Powered by Dreditor.
Comment #36
claudiu.cristeaPlease apply the attached patch against 6.x-1.x-dev and see if it fixes the issue.
Comment #37
roball commentedNo, patch #36 does not work, unfortunately.
Comment #38
roball commentedComment #39
claudiu.cristea@roball, Did not apply or is not fixing the issue? Remember, you have to apply it against the latest 6.x-1.x-dev and uset
git am(see http://drupal.org/node/1054616 or better instal latest 6.x-1.x-dev and apply it manually - there's a single word to be added: "_prepare_message" instead of "_prepare"Comment #40
roball commentedI installed the latest currently available 6.x-1.x-dev (2010-Mar-01) and manually applied the patch from #36:
So the patch successfully applied, but it did not change anything on the described problem. Reverting back to a "views_send.module" file having the patch applied from #31 did solve the problem. Thus #36 misses something essential from #31.
Comment #41
claudiu.cristea@roball, This patch works for me. Without this it behaves like in the ticket.
Please, double check all above and make sure you didn't turn on "Plaintext email only" on Mimemail settings (admin/settings/mimemail), while this patch is aware of that.
Thanks.
Comment #42
franz@claudiu.cristea, not sure if I'm missing something, but patch at #36 only changes one line. I believe you mentioned another issue, along with forking mimemail. Could that be working? We need to test this single patch on a fresh install then, to isolate it.
Comment #43
claudiu.cristeaYes @franz, please test in this way:
git am(see http://drupal.org/node/1054616) OR apply it manually - there's a single word to be added: "_prepare_message" instead of "_prepare"admin/settings/mimemailand assure that "Plaintext email only" checkbox IS NOT checkedMessages should be delivered formatted with markup.
Comment #44
roball commentedAs already mentioned, this won't work for me. But with the patch from Franz (#31) it does.
Comment #45
silaslin commentedTo claudiu.cristea,
Thank you !
This patch worked perfectly~
Comment #46
claudiu.cristeaWorks for me too. RTBC
Comment #47
claudiu.cristeaCommited
Comment #48
roball commentedI am sorry to say, but - as already mentioned - this does *not* work for me although it does seem to work for you (claudiu.cristea) and silaslin. Just upgraded to the 6.x-1.x-dev (2011-Mar-16) snapshot (and of course cleared the cache) - problem went in again. Replacing the "views_send.module" file to the one from 2010-11-27, with the patch from Franz applied again solved the problem.
Franz can you please let us know your experience? Maybe you could provide a patch against the current dev which solves the problem for you?
Thanks.
Comment #49
claudiu.cristea@roball, what Mimemail version do you have? Can you provide us and your Views Send (admin/settings/views_send) & Mimemail (admin/settings/mimemail) settings?
Comment #50
roball commentedMime Mail 6.x-1.0-alpha7: Settings - see screenshot (same result when the Input format is set to "Full HTML").
Views Send 6.x-1.x-dev (2011-Mar-16): Settings - see screenshot
Comment #51
claudiu.cristeaFortunately I found that you are using SMTP as mailer for Mimemail. Indeed there is a bug in my module causing failure when using other mail engine than Mimemail (like SMTP, PHPMailer, etc.).
Please test this patch against latest from 6.x-1.x-dev
Comment #52
roball commentedYeah - finally this works on my environment as well :-)
Comment #53
claudiu.cristeaCommitted