The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
|
![]() |
Sending HTML + text emails : content-type line appears to the 2nd recipient - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Sending HTML + text emails : content-type line appears to the 2nd recipient (/showthread.php?tid=647) |
Sending HTML + text emails : content-type line appears to the 2nd recipient - liberio - Apr 10th, 2010 Hi Form Tools community, First of all I want to thank you for what you have done, it is a great piece of work! I encountered an issue last week. A line always appears in the notifications when sending multipart email to more than 2 clients: PHP Code: Content-Type:multipart/alternative; boundary = xXxXxXxXxXxXxXxXxXxXxXxXxXxX I do not know if this is a minor bug or a bad use of this feature. Perhaps I've done something wrong or missed some other setting. Do you have any idea about this ? Let me know if you need more details, like steps to reproduce. Thanks in advance for your help. RE: Sending HTML + text emails : content-type line appears to the 2nd recipient - Ben - Apr 10th, 2010 Hi Liberio, That sounds like a bug, not a misconfiguration on your part! First off, are you using the Swift Mailer plugin or the default mail functionality? If the latter, I'd suggest looking into Swift to send the emails - chances are this problem will "magically" disappear.... PHP mail() is pretty awful. ![]() But yes, if you could provide instructions on how to reproduce it, I could test it out on my own system - at least to just confirm it's not an endemic problem with Form Tools itself. Thanks! - Ben RE: Sending HTML + text emails : content-type line appears to the 2nd recipient - liberio - Apr 11th, 2010 Swift Mailer module is unavailable because I use Form Tools 1.5.1... The issue comes from ft_send_email() function located in global/code/emails.php. Here is the code I modified to correct the bug: PHP Code: // ADVANCED emails (email templates) Do this patch seems correct to you ? Steps to reproduce: Create a form -> Create 2 clients -> Add the 2 clients to the form -> In Emails tab check "Send email notifications to clients for form submissions" -> Select "Text & HTML" emails format(s) -> Select "Full form submission" for client Text and HTML templates -> Update -> Fill in the form and send a submission RE: Sending HTML + text emails : content-type line appears to the 2nd recipient - Ben - Apr 18th, 2010 Oh, I see... I'm afraid I really don't support FT1 any more. I haven't touched the code for a looong time. You could try searching the FT1 forums for a solution: http://ft1.formtools.org/forums/ Anyone else know of a fix for this? - Ben RE: Sending HTML + text emails : content-type line appears to the 2nd recipient - liberio - Apr 25th, 2010 I already found a solution I wrote in my last post ;-) An equivalent solution was given in FT1 forums: http://ft1.formtools.org/forums/index.php/topic,1035.0.html Now I wonder whether FT2 code is affected or not... Thanks for help ! RE: Sending HTML + text emails : content-type line appears to the 2nd recipient - Ben - Apr 26th, 2010 Excellent! ![]() - Ben |