You don’t need to pass the from name and email to PHPMailer in your code as it will take it from $headers so try the following:
add_action( "phpmailer_init", "send_smtp_email" );
function send_smtp_email( $phpmailer ) {
// ini_set("sendmail_from","[email protected]");
// ini_set("sendmail_path","[email protected]");
// Define that we are sending with SMTP
$phpmailer->isSMTP();
// The hostname of the mail server
$phpmailer->Host = "localhost";
// Use SMTP authentication (true|false)
$phpmailer->SMTPAuth = false;
// SMTP port number - likely to be 25, 465 or 587
$phpmailer->Port = "25";
// Encryption system to use - ssl or tls
$phpmailer->SMTPSecure = "tls";
// $phpmailer->From = "[email protected]";
// $phpmailer->FromName = "XYZ";
}
Also, double check the form field name for: $_POST['namee']
Related Posts:
- Customizing the Subject Field in WordPress’ Notification Emails?
- How to pass external variables to the wp_new_user_notification_email filter?
- Send a custom WooCommerce email when custom order change [closed]
- How to change email address used for registrations?
- What’s wrong with Customizing new user notification email by add_filter?
- Mail function is not working
- Salesforce lead tracking with contact forms plugins [closed]
- Saving contact form 7 data into custom Table
- customer specific email attachment
- mailchimp integration on a custom footer
- How could I change contact details in the footer?
- How to send custom mail when a user complete a specific form
- Send default WooCommerce email when switching from custom order status
- Custom WP deactivate an email activation link sent to user’s email.
- Admin new order email customization
- Woocommerce send custom email receipt based on product attribute
- How to edit the new user email notification template
- Any post install tips after installing WordPress 3.0.1?
- Version Control: Entire site or just pieces?
- Getting a stack trace when an error occurs?
- Multiple WordPress sites with docker
- .maintenance and maintenance.php also in multisite install?
- how to redirect to a custom password retrieval page
- Is there a plugin to make attaching images easier?
- Custom category order with get_categories
- Maintaining synced staging/production WP sites
- WordPress Multi Site Best Practice
- Sub posts and non unique post_name
- Pagination Help on Crazy Custom Authors Page
- How to let a single post have its own domain name
- page_template toggle between 2 templates + 2 permalinks for same post
- How to instantly delete posts/pages permanently?
- How to re-arrange media uploaded using : media_handle_upload() as per year / month
- How could we customize the all posts page in the admin panel?
- How do I perform a “get” call to an external API, and then display the JSON results on a page in my WordPress site?
- How to build a child theme from a react-based parent theme?
- Adding Pagination on a Custom Author Page
- How can I get the page url slug when ‘post_name’ returns an id?
- Woocommerce Product page edit
- Convert an theme options page to use in customize.php also?
- The best way to write an FAQ page?
- WordPress is automatically linking plain text email addresses
- Get Value from Column in Plugin Table [closed]
- The Best Way to always load the newest version of 3rd party code
- Theme licensing and permission on changing content [closed]
- Using Fullscreenr with a wordpress blog – weird bug
- Display User ID instead of Name or Username
- Woocomerce custom billing address fields display in order details [closed]
- Bind JS event to WordPress control customizer
- Edit sticky header html – How to locate corresponding php file
- Get rid of title from static front page
- Make custom page look exactly as homepage
- $wpdb->insert running multiple times?
- OrderBy multiple custom meta fields
- Localization: I want the backend: english and frontend in defined language
- Theme compression/ minifying or W3 Total Cache – which should I use? [closed]
- How to remove all the items under “Personal Options” on user profile page?
- Extend WordPress Core Classes in OOP Theme?
- How To Load an HTML File As A WordPress Page (With No 301/No Redirect)
- how to display a specific wordpress menu?
- User bar above logotipo?
- Create a url structure for my blogs based on categories and sub-cats
- Can I integrate wordpress with my current website so I can utilize the wordpress plugins?
- Sticky menu for WP custom menubars
- How can style text like this in wordpress
- Setup database structure with books, authors, languages etc. for publishing house [closed]
- Pass return-path additional parameter in wp_mail
- Dynamically Filtering Posts by Data Points – Any Pointers?
- Woocommerce custom checkout form
- Remove year from title
- WordPress custom dropdown listings
- Custom Tags Archive – permalinks not working
- Help customising admin bar, removing buddypress links from dropdown
- WordPress in a Subdirectory
- Change Site Logo or Menu Logo Per Page
- WP Search Form Query: Add Author’s posts into search query
- javascript file not working in a plugin template file
- If Term Name Exists, Append a Unique ID to Slug
- How can I display both LTR and RTL language texts on the same page?
- New Page/Post Screen Opens an Existing Post
- Add button to My Sites dashboard page (multisite)?
- Cannot go to next page on phone but can on computer
- A specific menu inside a page, load different contents without reloading it, under the same link
- How to hide or remove a custom widget area when empty
- Dockerized WordPress is having Nginx Proxy Issues
- Create single{custom}.php with data in table out of wp_posts
- Change post template the proper way
- Make User Role a Filter
- I need to display post related info
- Is there os native application for wordpress?
- Custom single page based on which custom page template is selected
- Custom MySQL query to list post
- menu customization
- Modifying a local template
- How to apply styles to the custom page template
- Changing displayed photo when shared via facebook
- I have one page in my WordPress site with a table that needs to be super compact and simple
- Redirect all pages to the custom login page except for the registration page
- Is it bad practice to add a filter within a filter in wordpress?
- Taxonomy question how to add more data