There’s a big scary ” hasn’t been tested with the latest 3 major releases of WordPress” banner on the plugin page…
]]>Hello, just curious if this is compatible with PHP 7. When doing a compatibility check I received the following errors:
FILE: /home/creati64/public_html/wp-content/plugins/swift-mailer/lib/classes/Swift/KeyCache/DiskKeyCache.php
------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------
180 | ERROR | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
187 | ERROR | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
207 | ERROR | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
213 | ERROR | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
------------------------------------------------------------------------------------------------------------
FILE: /home/creati64/public_html/wp-content/plugins/swift-mailer/lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
522 | ERROR | Bitwise shifts by negative number will throw an ArithmeticError in PHP 7.0
-----------------------------------------------------------------------------------------------------------------------------
FILE: /home/creati64/public_html/wp-content/plugins/swift-mailer/lib/classes/Swift/Transport/SimpleMailInvoker.php
------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------
33 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
------------------------------------------------------------------------------------------------------------------
FILE: /home/creati64/public_html/wp-content/plugins/swift-mailer/lib/classes/Swift/Message.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------
284 | ERROR | 'clone' is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
288 | ERROR | 'clone' is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)
-------------------------------------------------------------------------------------------------------------------------
FILE: /home/creati64/public_html/wp-content/plugins/swift-mailer/lib/classes/Swift/ByteStream/FileByteStream.php
----------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------
87 | ERROR | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
91 | ERROR | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
----------------------------------------------------------------------------------------------------------------
]]>
Probably I am making this overhard, but I can’t seem to find any reference to simply make SwiftMailer send out html emails. I am using SendGrid and Swiftmailer and text emails work great. My goal is to write a html-based email, hand it off to SwiftMailer and have it go thru as written.
Can I do that? Thanks!!
]]>This plugin emits broken PHP code prior to the <DOCTYPE> of each page.
It appears the solution maybe to use the GitHub version of this code.
I’ll ask the developer to clarify this in the plugin description.
]]>The index.php uses short open tag. This can cause the code to be outputted as text rather than be processed as code. It would be best to change it to ‘<?php’. A few supporting quotes:
“Short tags were, for a time, the standard in the PHP world; however, they do have the major drawback of conflicting with XML headers and, therefore, have somewhat fallen by the wayside.”
https://stackoverflow.com/questions/200640/are-php-short-tags-acceptable-to-use
“Files MUST use only <?php and <?= tags.”
PSR-1 standard, https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md#1-overview
Also, index.php ends with ‘?>’, PSR-2 states the following about it:
“The closing ?> tag MUST be omitted from files containing only PHP.”
https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md#22-files
Could you fix these two issues? Although the second one is of less concern the first can break on many servers running recent versions of PHP.
]]>