Page 1 of 1

ä / ü / ö in emails

Posted: 25 Sep 2019, 10:45
by PersonalAgentin
How can we correct the handling of umlauts (ä, ö, ü) in e-mails?

===
25-09-19 10:34 AM

Dear Dieter Linner,

This e-mail is a notification that a candidate has applied to your job order through the online candidate portal.

Job Order: Installateur Heizung-Sanitär-Lüftung (m/w/)
Candidate Name: Dieter Linner
Candidate URL: http://www.personal247.de/index.php?m=c ... didateID=3
Job Order URL: http://www.personal247.de/index.php?m=j ... bOrderID=8

--
CATS
neuerjob24



Powered by CATS (Free ATS)
===

Re: ä / ü / ö in emails

Posted: 01 Oct 2019, 16:08
by RussH
Hi!

sorry haven't had a chance to look through the code yet but this will be a characterset problem. We use the phpmailer package for email generation. It should be set to UTF-8 everywhere. Take a look here for a similar issue/resolution https://stackoverflow.com/questions/320 ... ith-umlaut

Re: ä / ü / ö in emails

Posted: 02 Oct 2019, 10:42
by dveos
Hi, this should fix this for you - add: $this->_mailer->CharSet = 'UTF-8'; to line 238 of lib/mailer.php

So would become:-
Code: Select all
if (!empty($replyTo))
            {
                $this->_mailer->AddReplyTo($replyTo[0], $replyTo[1]);
            }
            $this->_mailer->CharSet = 'UTF-8';
            if (!$this->_mailer->Send())
            {
                $failedRecipients[] = array(
                    'recipient'    => $recipients[$key],
                    'errorMessage' => $this->_mailer->ErrorInfo
                );
            }

Re: ä / ü / ö in emails

Posted: 02 Oct 2019, 12:07
by RussH
dveos wrote: 02 Oct 2019, 10:42 Hi, this should fix this for you - add: $this->_mailer->CharSet = 'UTF-8'; to line 238 of lib/mailer.php
Thanks @dveos , on the ball as always!

I'll add this as a fix.

Re: ä / ü / ö in emails

Posted: 08 Oct 2019, 20:47
by PersonalAgentin
Thank you. Thank you. I've inserted it. I'll get back to you if any problems persist.