• A couple of plugins I use serialise the “To:” field on emails, even if there is only a single email address.

    When using the re-send function in the email log, this will cause errors if the “To:” field is serialised and leads to errors of the form:

    ERROR PostmanWpMail: Exception code=0 message=Invalid “To” e-mail address “a:1:{i:0;s:25:”xxxxxxx@xxxxxxxxxxx.xx.xx”;}”

    I’m still checking to see why plugins are serialising some data and it could be that given the definition of WP_Mail states the TO: field should be Comma Separate list that the problem lies within other plugins not yours.
    I’m still waiting to hear back from a couple of plugin authors but already it’s become a battle of “my plugin works fine, it’s the other plugin’s fault”.

    It’s a relatively quick kludge to convert the serialised data into a Comma Separated list (just before line 80 of PostmanEmailLogController.php) but the only reason I’m not asking you to “fix” your plugin is because I’m still convinced your plugin is at fault.

    I can’t find a definitive statement of what the format of the To: fields should be set to.

    Given that this doesn’t effect the actual running of the main module and it’s only when debugging ‘issues’ using the “Re-Send”, it’s not exactly high priority either.

    Any suggestions? Do you have a reference to hand of what the correct format of the stored To: field should be?

    https://www.ads-software.com/plugins/postman-smtp/

  • The topic ‘Resend fails when "original_to" is of serialised form’ is closed to new replies.