550 Bad HELO - Host impersonating
Additional follow up after many many hours of going through code on our end and PHPMAILER-PRO... Setting DKIM variables as mentioned IS adding the DKIM-Signature to the outgoing message (using IMAP I should specify) and GMAIL/Google is accepting it and allowing it to go to a GMAIL email address. The email body isn't formatting correctly for the recipient. Basically, for a one line TEXT message, there are multiple lines of actual email header information showing up in the body of the message for the...
DKIM not working and needed possibly for GMAIL recipients
Errors using PHP 8.2
Examples show the changes. PHPMailer Pro is NOT code compatile with PHPMailer.
After deactivated html und attachment this error remains: Deprecated: Creation of dynamic property codeworxtech\PHPMailerPro\PHPMailerPro::$Subject is deprecated in /home/www/testmail.php on line 16 Deprecated: Creation of dynamic property codeworxtech\PHPMailerPro\PHPMailerPro::$MessageText is deprecated in /home/www/testmail.php on line 18 Fatal error: Uncaught Error: Call to undefined method codeworxtech\PHPMailerPro\PHPMailerPro::SetSMTPhost() in /home/www/testmail.php:26 Stack trace: #0 {main}...
Errors using PHP 8.2
MIME error
Apologies ...
Kevin, I have received the sample email with the HTML text and image attachment showing the way the email should appear. I recreated that email and sent it to you, using the same version of PHPMailer.Pro.php that you have ... there were no errors or warnings. I sent it several times to several email addresses (including yours, and several of mine). I also note that the header you showed me in that last email did not match what should be sent by PHPMailer Pro. Are you modifying PHPMailer.Pro.php?...
Send you an email.
Error duplicated. working on it.
Return-Path: xxxx Received: from xxxx by xxxx (Postfix) with ESMTPS id 062F564482 for xxxxx; Sun, 18 Feb 2024 19:02:36 +0000 (UTC) Received: from xxxxx ) by xxxx (Postfix) with ESMTPA id EB5F960469 for xxxxx; Sun, 18 Feb 2024 19:02:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xxxx; s=default; t=1708282956; bh=yX5VYva4NNIZ4RR+L/IpfU+p+Rtywkd6xHypWtPWP9Q=; h=Date:From:Reply-To:To:Subject; b=QY4gVTttnusAIq9PCafl19VV+xP3noBLaC91e4bSxVtn97WyHRzN514B4+ljZCELc 9DkzSIZeRqbtMrjlRS+vygoRBzQiWqypowEh8kjPstI9t46/7eta4mHoiZG91NXVqW...
And, a quick question. What happens when you use SMTP?
Can you post a screenshot of the header block, at least up to the start of the message block please. Andy
MIME error
Rather than rush the release of v1.3.0, I have posted an interim update that fixes the above problem. It's at https://sourceforge.net/projects/phpmailerpro/files/
Did not help
What do need to do fix? The change did not help.
<meta http-equiv="content-type" content="text/html; charset=utf-8">What do need to do to fix ? Change send did not helpSent from my iPhoneOn Feb 18, 2024, at 10:00 AM, Andy Prevost (CodeworxTech) <codeworxtech@users.sourceforge.net> wrote: ...
Apologies ...
MIME error
Kevin, Check your emails, I sent you a fix. Andy
Thanks for posting this Kevin. I've been running tests all day and just managed to duplicate the problem. I have a fix. just trying to figure out how to communicate it to you. Check again in about 30 minutes. Andy
Return-Path: Delivered-To: Received: by mail.na7kr.us with LMTP id CJMVE7xV0WWHOgAAj1mZbg for <>; Sun, 18 Feb 2024 00:56:28 +0000 Received: (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.na7kr.us (Postfix) with ESMTPSA id 2AFB060473 for <>; Sun, 18 Feb 2024 00:56:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=na7kr.us; s=default; t=1708217788; bh=hneAbmILtc2fwRqIqPeyRhoPPgT85ix+UwLdgJdYppM=; h=Date:From:Reply-To:To:Subject;...
MIME error
Please post a screen shot of the header (with the email addresses blacked out). The error indicates the expected header boundary is malformed or missing.
MIME error
format bad in outlook (plan txt)
Kevin, I made an assumption and upon going over your posts, my assumption was incorrect. You are building an email body from database data (or a variable) that contains an image. You were using the AddEmbeddedImage method to get it to display in the email properly. Your first attempt was to use AddAttachment, which through an error at the wrong place. The second attempt worked, AddEmbeddedImage. On figuring that out, I reworked PHPMailer Pro to detect errors on image attachments, plus solved a riddle...
Are you trying to add the image that is part of the HTML body? There is no need to do that, the class will add the embedded image automatically ...
if remove //$mail->AddAttachment("../cards/$call-$COL_PRIMARY_KEY.jpg" , "$call.jpg" ); and add $mail->AddEmbeddedImage("../cards/$call-$COL_PRIMARY_KEY.jpg", "my-attach", "$call-$COL_PRIMARY_KEY.jpg"); it add a attachment OK and format looks good
no --P1_3bdfa91aa3fccf84d545b9136cef6aad Content-Type: text/html; Content-Transfer-Encoding: base64 PGgxPkRlYXIgTjdOQlM8L2gxPjxicj5UaGFua3MgZm9yIHRoZSByZWNlbnQgUVNPLjxicj48YnI+Q29uZmlybWluZyBRU08gd2l0aCBOQTdLUi48YnI+VVRDICAyMDI0LTAyLTEzIDIzOjUyOjA2WiAgPGJyPkJhbmQgMTVtPGJyPkZyZXF1ZW5jeSAyMS4wNzU8YnI+TW9kZSBGVDg8YnI+UlNUIFJlY2VpdmVkIC0xMzxicj5SU1QgU2VudCAtMTg8YnI+PGJyPklmIHlvdSB3b3VsZCBsaWtlIGEgcGh5c2ljYWwgUVNMIGNhcmQgdmlhIG1haWwgZWl0aGVyIGRpcmVjdCBvciB0aHJvdWdoIHRoZSBidXJlYXUgbGV0IG1lIGtub3cgcGxlYXNlLjxicj4gSSB3aWxsIHVwbG9hZCBhbGwgb2YgbXkgbG9ncyB0byBMb1RXLCBRUlogYW5kIGVRU0wuIDxicj5DdXJyZW50bHkgSSB1c2UgSGFtIFJhZGlvIERlbHV4ZSBhcyBteSBsb2dnaW5nIHByb2dyYW0sIFN0YXRpb24gaXMgRlREWDEwIGFuZCBBbnRlbm5hIFBhdGhGaW5kZXIgUmFuZ2VyLjxicj4gVGhpcyBpbWFnZSB3YXMgZ2VuZXJhdGVkIGJ5IGEgY3VzdG9tIGFwcCBJIHdyb3RlIHB1bGxpbmcgdGhlIGluZm9ybWF0aW9uIGZyb20gSFJEIGRhdGFiYXNlLjxicj48YnI+SSBIb3BlIHRvIGJlIGFibGUgdG8gd29yayB5b3UgYWdhaW4gc29vbi48YnI+PGJyPjczLCAgS2V2aW4sIE5BN0tSLjxicj48YnI+Tk9URSA6IElmIHlvdSBmZWVsIHRoaXMgbWVzc2FnZSBpcyBOT1QgaW50ZW5kZWQgZm9yIHlvdSBvciB5b3UgZG8gTk9UIGxpa2UgdG8gcmVjZWl2ZSBkaWdpdGFsIFFTTCBDYX...
Sent. After you test, please post your results here in the "tickets" section so others can be aware of the issue. Thanks, Andy
Yes please
Any attachments, inline or files, adds to the header as well as the body. I have a potential fix, may I email it to you to test? Thanks Andy
work ok without $mail->AddAttachment("../cards/$call-$COL_PRIMARY_KEY.jpg" , "$call.jpg" ); // attachment
Thanks for reporting that Kevin. I have not been able to replicate your issue ... however, I am aware there have been recent changes where some providers have configuration settings that alter the use of line endings. That affects mainly *nix servers. I am working on an alternate method to generate email headers and body so that it works on all version. It's in process now, hopefully will have a new version to overcome this issue. Thanks, Andy
Looks ok on iphone, GMAIL page. But if download with 365 it does not look OK from gmail or my main email. but if sent to Exchange 365 mail box it is OK in outlook. So looks like imap or pop3 does not like it.
format bad in outlook (plan txt)