Answer the question
In order to leave comments, you need to log in
How to properly use the wp_mail function?
$download_form = get_field("download_form", 489);
if($download_form) {
$attachments = $download_form['url'];
wp_mail('[email protected]', 'тема', 'сообщение', $attachments);
}
Answer the question
In order to leave comments, you need to log in
Does the wp_mail function itself work fine without ACF? Simply, sometimes it happens that letters get into SPAM or arrive with a delay. Try the same with the enabled plugin https://ru.wordpress.org/plugins/wp-mail-smtp/
and don't forget to configure smtp forwarding. Maybe it will help)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question