Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Special Characters in site name breaks Email
Tagged: email, special characters
- This topic has 11 replies, 3 voices, and was last updated 4 years, 4 months ago by leszekchojnacki.
- AuthorPosts
- May 7, 2020 at 9:27 pm #128103domainsParticipant
Hi WC-Lovers Team,
many users of our site notified that Verification Code Email is unreadable.
After some analysis on code (I’m a pro developer) I discovered that such issue is causated by Special Characters in my Site name.
Site name is “Càta La Spésa” (so ‘à’ and ‘é’ are causing the issue)
The issue take place in “wcfm_email_verification_code” (file “/core/class-wcfm-ajax.php) method when it try to reteive “get_bloginfo(‘name’)”This is very strange because other mails sent directly from woocommerce does not breaks (for “breaks” I mean are unreadable becuse are displayed with partial headers and explicit HTML code, not parsed)
I obiouvsly cannot change my site name, so I tried to put a different subject in WooCommerce->Settings->Emails->WCFM – Email Verification, but this is ignored and mails have always WCFM default subject.
I Manually fixed the issue (by removing {site_name} from subject, avoiding substitution) but this is a very bad practice because the fix will be lost on your next update.
I Hope that this detailed analysis will help you to fix easly.
Thank you,
Fabio - May 8, 2020 at 8:29 pm #128462SushobhanKeymaster
Hi,
I tried your Site name, but for me it’s working fine. Also I tried from your website with my email address and there was nothing broken in the email.
So, I’m not sure how to assist you on this.
Please let me know.
Thanks! - May 8, 2020 at 8:30 pm #128463SushobhanKeymasterThis reply has been marked as private.
- May 8, 2020 at 8:45 pm #128466domainsParticipant
Hi,
Thank You for replay!
of course is not broken, I manually edited the plugin core file (even if I know it’s a very very bad practice) because my Vendors were receiving corrupt mail.
Here the body of this email as I received:
esa.com> f61864d@www.catalaspesa.com> f61864d@www.catalaspesa.com> X-Mailer: PHPMailer 5.2.27 (https://github.com/PHPMailer/PHPMailer) MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <1588770491.2579.1487984@linp102.arubabusiness.it> <!DOCTYPE html> <html lang="it-IT"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Cà ta La Spésa</title> </head> <body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="padding: 0;"> <div id="wrapper" dir="ltr" style="background-color: #f7f7f7; margin: 0; padding: 70px 0; width: 100%; -webkit-text-size-adjust: none;"> <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%"> <tr> <td align="center" valign="top"> <div id="template_header_image"> <p style="margin-top: 0;"><img src="https://www.catalaspesa.com/wp-content/uploads/2020/04/footer-02.png" alt="Cà ta La Spésa" style="border: none; display: inline-block; font-size: 14px; font-weight: bold; height: auto; outline: none; text-decoration: none; text-transform: capitalize; vertical-align: middle; max-width: 100%; margin-left: 0; margin-right: 0;"></p> </div> <table border="0" cellpadding="0" cellspacing="0" width="600" id="template_container" style="background-color: #ffffff; border: 1px solid #dedede; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); border-radius: 3px;"> <tr> <td align="center" valign="top"> <!-- Header --> <table border="0" cellpadding="0" cellspacing="0" width="100%" id="template_header" style='background-color: #90bf2a; color: #202020; border-bottom: 0; font-weight: bold; line-height: 100%; vertical-align: middle; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; border-radius: 3px 3px 0 0;'><tr> <td id="header_wrapper" style="padding: 36px 48px; display: block;"> <h1 style='font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #a6cc55; color: #202020;'>Email Verification</h1> </td> </tr></table> <!-- End Header --> </td> </tr> <tr> <td align="center" valign="top"> <!-- Body --> <table border="0" cellpadding="0" cellspacing="0" width="600" id="template_body"><tr> <td valign="top" id="body_content" style="background-color: #ffffff;"> <!-- Content --> <table border="0" cellpadding="20" cellspacing="0" width="100%"><tr> <td valign="top" style="padding: 48px 48px 32px;"> <div id="body_content_inner" style='color: #636363; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;'> <br>Ciao,<br><br>Ecco il tuo codice di verifica email -<b>219083</b><br><br>Grazie<br><br> </div> </td> </tr></table> <!-- End Content --> </td> </tr></table> <!-- End Body --> </td> </tr> </table> </td> </tr> <tr> <td align="center" valign="top"> <!-- Footer --> <table border="0" cellpadding="10" cellspacing="0" width="600" id="template_footer"><tr> <td valign="top" style="padding: 0; border-radius: 6px;"> <table border="0" cellpadding="10" cellspacing="0" width="100%"><tr> <td colspan="2" valign="middle" id="credit" style='border-radius: 6px; border: 0; color: #8a8a8a; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; font-size: 12px; line-height: 150%; text-align: center; padding: 24px 0;'> <p style="margin: 0 0 16px;">Cà ta La Spésa — Built with {WooCommerce}</p> </td> </tr></table> </td> </tr></table> <!-- End Footer --> </td> </tr> </table> </div> </body> </html>
- May 8, 2020 at 8:47 pm #128467domainsParticipant
Hi again,
same problem on Withdrawal request
esa.com> b55128e@www.catalaspesa.com> b55128e@www.catalaspesa.com> X-Mailer: PHPMailer 5.2.27 (https://github.com/PHPMailer/PHPMailer) MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Message-Id: <1588871048.724148.84802@linp102.arubabusiness.it> <!DOCTYPE html>=0A<html lang=3D"it-IT">=0A<head>=0A<meta http-equiv=3D"Cont= ent-Type" content=3D"text/html; charset=3DUTF-8">=0A<title>C=C3=A0ta La Sp= =C3=A9sa</title>=0A</head>=0A<body leftmargin=3D"0" marginwidth=3D"0" topma= rgin=3D"0" marginheight=3D"0" offset=3D"0" style=3D"padding: 0;">=0A=09=09<= div id=3D"wrapper" dir=3D"ltr" style=3D"background-color: #f7f7f7; margin: = 0; padding: 70px 0; width: 100%; -webkit-text-size-adjust: none;">=0A=09=09= =09<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" height=3D"100%" = width=3D"100%">=0A<tr>=0A<td align=3D"center" valign=3D"top">=0A=09=09=09= =09=09=09<div id=3D"template_header_image">=0A=09=09=09=09=09=09=09<p style= =3D"margin-top: 0;"><img src=3D"https://www.catalaspesa.com/wp-content/uplo= ads/2020/04/footer-02.png" alt=3D"C=C3=A0ta La Sp=C3=A9sa" style=3D"border:= none; display: inline-block; font-size: 14px; font-weight: bold; height: a= uto; outline: none; text-decoration: none; text-transform: capitalize; vert= ical-align: middle; max-width: 100%; margin-left: 0; margin-right: 0;"></p>= =09=09=09=09=09=09</div>=0A=09=09=09=09=09=09<table border=3D"0" cellpaddin= g=3D"0" cellspacing=3D"0" width=3D"600" id=3D"template_container" style=3D"= background-color: #ffffff; border: 1px solid #dedede; box-shadow: 0 1px 4px= rgba(0, 0, 0, 0.1); border-radius: 3px;">=0A<tr>=0A<td align=3D"center" va= lign=3D"top">=0A=09=09=09=09=09=09=09=09=09<!-- Header -->=0A=09=09=09=09= =09=09=09=09=09<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" widt= h=3D"100%" id=3D"template_header" style=3D'background-color: #90bf2a; color= : #202020; border-bottom: 0; font-weight: bold; line-height: 100%; vertical= -align: middle; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sa= ns-serif; border-radius: 3px 3px 0 0;'><tr>=0A<td id=3D"header_wrapper" sty= le=3D"padding: 36px 48px; display: block;">=0A=09=09=09=09=09=09=09=09=09= =09=09=09<h1 style=3D'font-family: "Helvetica Neue", Helvetica, Roboto, Ari= al, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margi= n: 0; text-align: left; text-shadow: 0 1px 0 #a6cc55; color: #202020;'>Noti= fica - Richieste di prelievo</h1>=0A=09=09=09=09=09=09=09=09=09=09=09</td>= =0A=09=09=09=09=09=09=09=09=09=09</tr></table>=0A<!-- End Header -->=0A</td= > =0A=09=09=09=09=09=09=09</tr>=0A<tr>=0A<td align=3D"center" valign=3D"top"= > =0A=09=09=09=09=09=09=09=09=09<!-- Body -->=0A=09=09=09=09=09=09=09=09=09<= table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" width=3D"600" id=3D"= template_body"><tr>=0A<td valign=3D"top" id=3D"body_content" style=3D"backg= round-color: #ffffff;">=0A=09=09=09=09=09=09=09=09=09=09=09=09<!-- Content = -->=0A=09=09=09=09=09=09=09=09=09=09=09=09<table border=3D"0" cellpadding= =3D"20" cellspacing=3D"0" width=3D"100%"><tr>=0A<td valign=3D"top" style=3D= "padding: 48px 48px 32px;">=0A=09=09=09=09=09=09=09=09=09=09=09=09=09=09=09= <div id=3D"body_content_inner" style=3D'color: #636363; font-family: "Helve= tica Neue", Helvetica, Roboto, Arial, sans-serif; font-size: 14px; line-hei= ght: 150%; text-align: left;'>=0A<br>Ciao,<br><br>Hai ricevuto una nuova no= tifica:<br><br>Le tue richieste di prelievo #<a target=3D"_blank" class=3D"= wcfm_dashboard_item_title" href=3D"https://www.catalaspesa.com/store-manage= r/transaction-details/2" style=3D"color: #202020; font-weight: normal; text= -decoration: underline;">000002</a> Completato.<br><b>Nota</b>: Pagamento e= ffettuato<br><br>Controlla maggiori dettagli <a href=3D"https://www.catalas= pesa.com/store-manager/messages/" style=3D"color: #202020; font-weight: nor= mal; text-decoration: underline;"> Qui </a>.<br><br>Grazie<br><br>=0A</div>= =0A=09=09=09=09=09=09=09=09=09=09=09=09=09=09</td>=0A=09=09=09=09=09=09=09= =09=09=09=09=09=09</tr></table>=0A<!-- End Content -->=0A</td>=0A=09=09=09= =09=09=09=09=09=09=09</tr></table>=0A<!-- End Body -->=0A</td>=0A=09=09=09= =09=09=09=09</tr>=0A</table>=0A</td>=0A=09=09=09=09</tr>=0A<tr>=0A<td align= =3D"center" valign=3D"top">=0A=09=09=09=09=09=09<!-- Footer -->=0A=09=09=09= =09=09=09<table border=3D"0" cellpadding=3D"10" cellspacing=3D"0" width=3D"= 600" id=3D"template_footer"><tr>=0A<td valign=3D"top" style=3D"padding: 0; = border-radius: 6px;">=0A=09=09=09=09=09=09=09=09=09<table border=3D"0" cell= padding=3D"10" cellspacing=3D"0" width=3D"100%"><tr>=0A<td colspan=3D"2" va= lign=3D"middle" id=3D"credit" style=3D'border-radius: 6px; border: 0; color= : #8a8a8a; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-se= rif; font-size: 12px; line-height: 150%; text-align: center; padding: 24px = 0;'>=0A=09=09=09=09=09=09=09=09=09=09=09=09<p style=3D"margin: 0 0 16px;">C= =C3=A0ta La Sp=C3=A9sa =E2=80=94 Powered By LoFiNetwork</p>=0A=09=09=09=09= =09=09=09=09=09=09=09</td>=0A=09=09=09=09=09=09=09=09=09=09</tr></table>=0A= </td>=0A=09=09=09=09=09=09=09</tr></table>=0A<!-- End Footer -->=0A</td>=0A= =09=09=09=09</tr>=0A</table>=0A</div>=0A=09</body>=0A</html>
- May 8, 2020 at 9:01 pm #128479domainsParticipant
Hi,
Sorry for multiple posts, but doing it on single post it’s confusing with this amount of code.Anyway I restored original code installing the plugin update, and cleaned Custom email subject from Woocommerce Mail Settings Section, so the issue comes again.
I can fix using a custom mail Subject for Verification Code, in Mail Settings becaused it was fixed during last update (very thank you!)
But how can I prevent this for all the email not available from Woocommerce Email Settings page?
Thank you,
Fabio - May 9, 2020 at 6:36 pm #128860domainsParticipantThis reply has been marked as private.
- May 10, 2020 at 2:38 pm #129127SushobhanKeymaster
Hi Fabio,
Kindly usewcfm_email_verification_email_subject
filter for your purpose.
Let me know how it goes.
Thank You! - May 11, 2020 at 4:38 pm #129566domainsParticipant
Hi,
I noticed that this issue is extended to all the email messages coming from WCFM (maybe because they use the same core function?)
So I mean, Order Widthrowal Request, New Follower, Etc.I don’t receive the issue for all the other WP / WC /CF7 mail sent from the website.
In the meantime I purchased WCFM Ultimate but situation is still the same.
Using the filter you suggested will act only for email Verification, so I will have to edit All of their filters.
This is a lot of work. - May 12, 2020 at 1:27 pm #129948SushobhanKeymaster
Hi,
Last time you told me that you are going to test this in a staging environment. So, would you be comfortable sharing temporary backend access of your staging site, along with FTP, to debug this further?
When sharing the access, please don’t forget to mark the reply as private.
Thank you! - May 12, 2020 at 1:39 pm #129952domainsParticipant
Hi,
I’m so sorry but due to Copany Politics, I cannot share these imformations.
Staging environment is a clone of the production Env, so it contains all personal informations of registered Vendors.I know this is a strange issue and not so easy to investigate, so I talked with Marketing Dept and they decided to edit blog name without these special characters.
With this modification, all the emails are sent without issues.
If I can help you in any other way, I’ll be pleased.
Thank you for the supoport!
- July 16, 2020 at 10:39 pm #151035leszekchojnackiParticipant
Hello Team,
I have a similar issue. I have a polish chars which are corrupted during the email sending. The email in encoded in UTF-8, but the email content genereted by WCFM are corrupting the content.I can see that i need to change “wcfm_email_verification_email_subject” but I’m new to WCFM, and can’t find the workaround for this.
Are you able to link the documentation, or instruct me what to do and where?
BR, Leszek
- AuthorPosts
- You must be logged in to reply to this topic.