Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

PHP form is not sending mail if I use mime type and version in header. How to solve this? [closed]

From: is just another mail header. You need to concatenate this with your current $headers and pass it as one argument to mail():

$headers  = "From: $sender <$senderEmail>\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

// la de da

mail( $recipient, $subject, $mailBody, $headers );

Related Posts:

  1. What characters are allowed in an email address?
  2. how to set from address according to the form input email address for wp_mail()?
  3. Sending form data via PHPMailer – How to action PHP script from a form
  4. Contact Form 7 not sending emails- no confirmation, no error [closed]
  5. Remove field in the form : only works for “url”, not for “email”?
  6. Downloadable content only for subscribers?
  7. WordPress Emails & Contact Forms [closed]
  8. Saved emails at dashboard
  9. Email from my theme’s contact form doesn’t get the reply-to address right
  10. Email form getting hacked
  11. Am receiving more than thousand mails in single day from ‘[email protected]’ continuously
  12. Sending Form data as Attachment
  13. Sending email via function in page or setting up the action properly in another page
  14. Send contact form to a specific referrer-email adres
  15. Username from e-mail
  16. Send message to author without showing email address [duplicate]
  17. Submit button returns to index page instead of sending data
  18. Form that stores emails [closed]
  19. How can I add email code authentication on form submission without any wp plugin?
  20. What is &amp used for
  21. How to define form action in JSF?
  22. Free or affordable OCR and ICR (handwriting recognition) SDK?
  23. Is there a way to embed an iframe in an email with text that updates?
  24. How to include landing page with form submission?
  25. How to edit a user profile on the front end?
  26. How to display user registration form on front-end of the website?
  27. How to handle form submission?
  28. What is an easy way to display a front-end user registration form?
  29. Add error message on password protected page
  30. How to get current url in contact form 7
  31. Is wp_nonce_field vulnerable if you know the action name?
  32. How to pass on Google Adwords gclid variable to other pages
  33. using update_user_meta in form to set and get custom meta
  34. Best way to create multi-step form with data saved to user account for later updating?
  35. Mail will not send in HTML
  36. User registration problem in WordPress
  37. Create custom welcome email without a plugin
  38. Include HTML template file in wp_mail
  39. Creating a contact form without a plugin [closed]
  40. How to submit data from HTML form?
  41. Custom Registration Template/Page
  42. show image in mail contact form 7 [closed]
  43. Can I verify nonce which was generated on a different WP site?
  44. Submitting post to database then redirecting to paypal
  45. Registration form labels – add asterisk
  46. Autocomplete for taxonomy input boxes on a front end form
  47. How to create and retrieve data from a special registration form?
  48. Contact form 7 Dynamic text – placeholder on GET field
  49. Settings API erases itself?
  50. how to handle forms in multiple pages?
  51. set_query_var doesn’t seem to work on init hook
  52. Send batch of posts as HTML Email?
  53. How to send multipart form data to WordPress endpoint
  54. need to add attach thumbnail from my form
  55. Wp_mail Returning False on Server
  56. recommended practice for form submission
  57. Placeholders in Jetpack Contact Form [closed]
  58. How to update selective options on plugin settings page
  59. Built-in data validation function for URLs
  60. $_POST empty on submit (same code, same form submits normally on local server)
  61. Gravity Forms skip form if already filled out using cookie?
  62. Loading scripts & styles from a meta box callback function
  63. Checkbox won’t check when label is clicked
  64. One comment per user per post
  65. How to sent one form values to 2 different sites in wordpress
  66. Looking for a simple approach for handling user $_POST data without AJAX?
  67. Trying to save and display a wp_editor()
  68. How to return variables from admin-post.php
  69. Woocommerce HTML email option unavailable
  70. Help with verifying google recaptcha in a custom form
  71. Nonce actions and names available via open source
  72. Setting specific image size for specific form upload file field
  73. Duplicating/Cloning Multiple Form Fields
  74. Contact forms going into spam folder
  75. Get data from dropdown and update page
  76. Mail Form in a modal box without plugin
  77. Processing a subscription form with POST method?
  78. other shortcodes in Contact form 7 MAILS [closed]
  79. Obfuscating Email Addresses in Form Fields
  80. Using the WordPress selected() function
  81. Performing a POST action on homepage goes to posts page
  82. Add contact form
  83. How am I able to get the value out of cookie array when I push a button?
  84. 404 on form submit [duplicate]
  85. How to Process Form Request
  86. Form Processing
  87. Reset recaptcha contact form 7 [closed]
  88. Return to option page after running PHP script
  89. Saving checkbox/option list status?
  90. Is there an official email form widget or block?
  91. Customize reset password form redirect problem
  92. What is the valid phone number format accepted by contact-form-7 [closed]
  93. creating form for wp_remote_post
  94. How to implement post/redirect/get pattern on contact form
  95. How to know what submit button the user clicked?
  96. limit characters when posting from form
  97. Creating a custom multilingual form
  98. wordpress not displaying my form
  99. Adding data to an array in usermeta and displaying it in a loop
  100. Help with forms and nonces
Categories forms Tags email, forms, html-email
Redirect to Page URL for non-members
How to overwrite orderby with add_query_var

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress