• Resolved jdowns1

    (@jdowns1)


    Emails being sent from my site are being logged by the plugin, but emails with attachments are not logging or showing the attachment in the logs.

    I’m using v1.11.2 of the plugin, WP v6.2.2. The ‘Display Attachments’ option is enabled. I do receive the email with the attachment in my inbox.

    Here is the JSON logged:

    {
    "mail_id": "2",
    "timestamp": "2023-06-15 19:35:16",
    "host": "23.235.211.8",
    "receiver": "[email protected]",
    "subject": "Estimator PDF Quote",
    "message": "test",
    "headers": "From: My Site <[email protected]>\r\n",
    "attachments": "",
    "error": null,
    "plugin_version": "1.11.2"
    }
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Dake

    (@dakeg)

    Hi @jdowns1

    Thanks for reaching out to us and we apologise for the confusion.

    Just for reference, WP Mail Logging doesn’t store attachment files. Only file names. The “Display Attachments” setting is to just show/hide the attachments column in the email logs table, which will only display the file name.

    Just for reference, depending on the plugin/action you are using to send the email attachment, you may be able to see the attachment in the email body. For example, with WPForms, the attachment is sent as an uploaded file link that is hosted on the sender’s website and can be seen when viewing the log content, but doesn’t appear in the “attachment field”.

    Thread Starter jdowns1

    (@jdowns1)

    Your WP plugin page clearly says this is possible, it doesn’t say file names only. From https://www.ads-software.com/plugins/wp-mail-logging:

    “All emails sent from your WordPress site are logged. And here is the information that is stored:
    Email Attachments

    You can search and view a particular email log, inspect its content or attachments, and even resend that email.”

    But understood this is not the case, so thanks for clarifying.

    Plugin Support Dake

    (@dakeg)

    Hi @jdowns1

    Thanks for pointing out that line. And again we apologise for the confusion.

    I have informed our team about clarifying the description. Also our developers are looking into other attachment interactions based on other popular form plugins.

    Plugin Support Dake

    (@dakeg)

    Hi @jdowns1

    In addition to my previous message, can you please let us know the plugin or code that you’re using to send out your emails with attachments?

    I had the same problem.
    I found in source (WPML_Attachment.php) that email attachments must be in WordPress uploads folder.

    Plugin Support Dake

    (@dakeg)

    Hey @expiorer

    That is correct, email attachments that aren’t within the body should alternatively be saved in the WordPress /wp-content/uploads folder to be logged correctly.

    Depending on what plugin you used to send the email, they are most likely storing attachments in a different location.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Attachments not showing in logs’ is closed to new replies.