Tell us what you are trying to do?
Hello,
I would like to add some attachments to post form's email notification. I need to send the files, not just making the links in the notification's text (body).
Is there any other solution (making some connection with some other e-mail platform.... Mailchimp etc.)?
Many thanks for your suggestion, best.
Jiri
Dear Jiri,
There isn't such a built-in feature within Toolset Forms plugin, see the source codes of plugin file cred-frontend-editor\library\toolset\cred\embedded\classes\common\Mail_Handler.php, line 207:
$isSend = wp_mail($to, $subject, $body, $header);
There isn't $attachments parameter in above codes
https://developer.wordpress.org/reference/functions/wp_mail/
So you might consider custom codes, for example, use WordPress built-in filter hook wp_mail to trigger a custom PHP function, in this function add attachments to the emails, see WordPress document:
https://developer.wordpress.org/reference/hooks/wp_mail/
Dear Luo,
thanks for your answer, could you please give me at least some example of this solution? I am not able to do it from scratch.
Thank you, best,
Jiri.
According to our support policy, we don't provide custom codes support:
https://toolset.com/toolset-support-policy/
In below WordPress document, there is an PHP codes example:
https://codex.wordpress.org/Plugin_API/Filter_Reference/wp_mail
For your reference.