• Hello!
    The standart wp_mail attachments are saving in media library.
    Someone have some hooks where i can change media library to costume folder ?

    Thanks !

    • This topic was modified 4 years, 7 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    The entire uploads folder can be defined to be elsewhere. This would affect all uploads. I think you only want to target mail attachments? What plugin are you using to have mail attachments saved? I suggest you ask in that plugin’s dedicated support forum where its devs and expert users can help you.

    Thread Starter viesiissz

    (@viesiissz)

    @bcworkz
    Thanks for the reply! ??

    Im using basic wordpress wp_mail

    Yes thats right, target mail attachements.

    Moderator bcworkz

    (@bcworkz)

    You pass full file paths for attachments to wp_mail(), so the files can reside anywhere PHP can access. However, WP only uploads to its designated uploads folder, which does not have to be /wp-content/uploads/, but all WP uploads need to go there. If you upload attachments via FTP, they can be placed anywhere as long as the correct paths are passed to wp_mail().

    Of course whatever mechanism you use to select attachments needs to know where that is as well.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Mail attachment’ is closed to new replies.