I am using phpmailer to send a monthly report.
It includes the € sign. Thus I need to set encoding to utf-8. I ran into a problem here.
Without encoding like this:
$mail->addStringAttachment($csvstring, $fileName);
the mail gets sent but in the attachment the € sign does not show up
when I try to add encoding:
$mail->addStringAttachment($csvstring, $fileName, "utf-8", "text/csv");
The mail is sent but body and attachment are not present. I tried looking it up but there seems to be very little documentation.
Am I missing the obvious?