WordPress, send mail

$from_email = 'mailer@server.com';
$to_email = $seller->user_email;
$headers = "From: FROM NAME <$from_email>" . "\r\n";
$msg = "Ovo je poruka sa WP servera";
$subject = "WP mail subject";
$attachments = 'neki_file';
wp_mail($to_email, $subject, $msg, $headers, $attachments);

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.