How to send mail in wordpress?

WordPress-Mail.jpg

You can send emails from WordPress function that is:

wp_mail Parameters

$to
(string|array) (Required) Array or comma-separated list of email addresses to send message.


$subject
(string) (Required) Email subject

$message
(string) (Required) Message contents

$headers
(string|array) (Optional) Additional headers.

Default value: ”

$attachments
(string|array) (Optional) Files to attach.

Default value: array()

 

 

 

Leave a Reply