After further investigation things seems to work with sendmail without the WP SMTP plugin. I have also been told by others that the WP SMTP plugin is needed to get email working on Windows hosts and is not needed if running your website on Linux. Hence, I think this was more to do with a specific plugin that to do with my code per se.
I think WP SMTP Mail gives the above behavior for security but I do not know enough about the SMTP protocol to comment further.
Thanks,
nav
Related Posts:
- Difference Between Filter and Action Hooks?
- What is the advantage of using wp_mail?
- How to create an API for my plugin?
- How to add sub-menu to a menu generated by wp_nav_menu by using plugin
- How can I load a page template from a plugin?
- Using query_vars filter
- How to get Post ID with the Add Filter Function
- wp_mail is undefined
- Explanation of the “posts_join” and “posts_fields” filter hooks?
- How do you use the plugin boilerplate loader class to hook actions and filters?
- add_filter OO with parameters
- Fatal error: Call to undefined function wp_mail()
- How Can I Add a Filter to Class Instance Only?
- Is it possible to remove next-post / previous-post with out creating a custom template?
- How do I Make a Theme “plugin-ready”?
- How to remove unwanted panels inside InspectorControls from core blocks in Gutenberg
- function triggered by “manage_users_custom_column” filter not working
- Proper way to use apply_filters() with class functions?
- add_filter and remove_filter added before and after wp_query
- How to modify post content before writing to database?
- Actions or filters fired when data is saved in a custom table
- Some nav-menu filters do nothing
- Filter on the_content ignores shortcodes
- Determine which theme location a wp_get_nav_menu_items is for
- How to change wordpress post title?
- Display only certain posts based on visitor’s country?
- What’s the difference between hooks, filters and actions? [duplicate]
- How to use filter hook ‘post_updated_messages’ in coherence with action hook ‘save_post’
- Conditional add_filter?
- Is it possible to create an action hook using do_action() within add_action()?
- Hook for post permalink update
- wp_mail not recognizing cc and bcc headers
- Dynamically Override Fancy Title
- Calling apply_filters on non-documented hooks
- Problem with `wp_mail()`
- WordPress Media mime type filter problem 4.0
- How to allow Unfiltered HTML in a wordpress multisite install
- How to add custom content under plugin row in WordPress admin plugin list?
- Changing bloginfo description from a plugin
- Is there a way to verified if an add_filter is already applied?
- Define a function outside a class and call the function using action or filter hook
- Does add_filter work outside functions.php
- Synchronize Custom post type tags to WordPress default posts tags
- multiple functions with same filter
- Woocommerce – Hide a Column in Cart Table
- Do I have to override the wp_mail() pluggable function with writing a plugin?
- Version upgrade: can my plugin filter the SQL statements issued during a database upgrade?
- How to send email in wordpress with more than one attachments
- Make wordpress join default user metas with a column from another table while displaying the wp_users table on the users screen
- Configure WordPress to Generate Scheme-less Relative URLs
- Gravity Forms Anchor only on Front Page?
- How to find list of all functions bind to a particular hook from my plugin?
- Include HTML (Bootstrap Modal Box) with a plugin into my header
- WP_NAV_MENU filter targets all menus
- Adding filter to the title without affecting the menu title
- How to validate inputs with filter in register_setting callback
- How to get post meta in functions?
- How do i remove the title from a specific page
- Can / should a widget plugin define its own Widget Area?
- How to get changed post title in my custom plug-in which fires when ‘save_post’ is called?
- Is there an action_filter hook to add content before the post title?
- Adding tables to dashboard pages programmatically?
- Can I attach a plugin via my add_filter callback contents?
- Using wp_mail to send email?
- apply_filters() and call_user_func() to define and call a function outside a class
- add_filter postbox_classes multiple post types
- Override category archive page title (not the head title)
- Limit get_next_post to posts from the same author
- Override woocommerce loop-start.php from theme using plugin?
- Any way, hook to add content right before the “read more” link?
- WordPress Plugin Boilerplate – add actions and/or filters based on user’s role
- Allow user to add the php code in wp_mail()
- Redirect theme directory to plugin theme directory
- WordPress Reset password Strength set to medium
- Change Front page displays settings conditionally when user is online
- login_message filter not working
- Add_action not calling callback function
- I have a plugin where in I have to change the title of the page dynamically by sending parameter to the_title filter
- WordPress Dropdown image select
- Modify search form with plugin
- Single_template for a custom post type created from a plugin is returning an empty page
- get_comment_meta() for a filter hook in a plugin
- Which filter to use to pre-parse form elements, which are generated by plugin’s shortcode?
- Custom signature appears twice on page
- Caption Shortcode: what filter to change the image size?
- Confusing $tag specification for apply_filters call, in core options.php code
- Hook for plugin to show content for certain urls
- How to filter get_adjacent_post()?
- WordPress permalink setting
- post_results filter confused by pagination in sidebar and main section
- wp_mail links are dead
- How do I replace title with my plugin?
- Apply Filters Causing a 500 Internal Server Error
- append code after the_content not working
- add_filter adds output in the head
- Apply function on all action hooks?
- Do Not Back Up? Is there any accepted way to tell backup and clone plugins to skip a certain file? [closed]
- Ninja Forms: Front-End Forms, Post ID?
- Edit password change email text or disable it
- Attributes array not saving values