Forum Replies Created
- AuthorPosts
sdus
ParticipantTHANKS Ally, works fine!!!!!
sdus
ParticipantProblem solved.
I must use
add_action('quform_pre_send_notification', function (PHPMailer $mailer, Quform_Notification $notification, Quform_Form $form) {
$mailer->addStringAttachment(iconv('UTF-8', 'UTF-16', $mailer->Body), 'attachment.txt');
}, 10, 3);
to get the output with BOM.
Thanks for the perfect support!!!!!!
sdus
ParticipantHi Ally,
many thanks!
The utf-16le is bad, because it does not solve my problem. I thought it solves my problem:In the mail all german umlauts / characters (ä,ö,ü) are correct. The code from reply 24476 works fine, but all special charakters / umlauts are bad: ( ü=ü ) in the file (shown via hex-editor). Only the file, not the mail.
The file attachment.txt get the unitext from the mailbody. in the utf-16 now Im missing the first 2 bytes (see picture)
Which code I must add to reply 24476 (above), that I get the correct letters in the file and the hex-editor (implicit utf-8) or add the 2 bytes to utf-16?
Many, many thanks for all the fine help!!!!!!!!!!!!!!!!!!!
- This reply was modified 7 years, 3 months ago by
sdus.
- This reply was modified 7 years, 3 months ago by
sdus.
- This reply was modified 7 years, 3 months ago by
sdus.
- This reply was modified 7 years, 3 months ago by
sdus.
- This reply was modified 7 years, 3 months ago by
sdus.
- This reply was modified 7 years, 3 months ago by
sdus.
Attachments:
You must be logged in to view attached files.sdus
ParticipantDear forum,
how I can save the output of the form into the file as uft-16le?
Is it possible?Many thanks for all answers!!!
- This reply was modified 7 years, 4 months ago by
sdus.
sdus
ParticipantMany, many thanks!
I have found it, but it doesnt work, see screenshots… 🙁 (v1 vs. v2)Attachments:
You must be logged in to view attached files.sdus
ParticipantHi Ally,
many many many THANKS!How is the solution, is I have more than 1 form? It means, that this works for all forms which I have.
But only the correct (choosen form at the moment) forms is sending.
Than I must copy and paste this code and set the correct ID?THANKS again!
sdus
ParticipantHi!
I need the same – all form data into a xml attachment of the mail.
Can you tell, what you have done?THANKS!
- This reply was modified 7 years, 3 months ago by
- AuthorPosts