{"id":1803,"date":"2022-05-17T17:15:43","date_gmt":"2022-05-17T17:15:43","guid":{"rendered":"https:\/\/shaplakanon.com\/wpsupport\/?p=1803"},"modified":"2022-05-17T17:15:45","modified_gmt":"2022-05-17T17:15:45","slug":"how-to-use-smtp-to-send-email-in-wordpress-without-smtp-plugin","status":"publish","type":"post","link":"https:\/\/shaplakanon.com\/wpsupport\/how-to-use-smtp-to-send-email-in-wordpress-without-smtp-plugin\/","title":{"rendered":"How to use smtp to send email in wordpress without smtp plugin?"},"content":{"rendered":"\n

The\u00a0wp_mail()<\/a>\u00a0function relies on the\u00a0PHPMailer<\/a>\u00a0class to send email through PHP\u2019s\u00a0mail<\/code>\u00a0function. The\u00a0phpmailer_init<\/code>\u00a0action hook in wordpress<\/a> allows you to hook to the phpmailer object and pass in your own arguments.<\/p>\n\n\n\n

This action is initiated with `do_action_ref_array` rather than `do_action`. You still hook to it with `do_action`. However, there are some notable differences:<\/p>\n\n\n\n