I had to make a plugin, copy-paste whole fuction from pluggable.php that makes new account and sends the email only to change < > to ( ) or remove < > which wraps the URL.
It breaks because WordPress email was HTML by default (it should be text) and < > are read as HTML tags. I didn’t set emails to HTML, Im not sure why it was HTML by default.
Fortunately it’s not a big deal for me because I was going to overwrite this function in future one way or another in order to make beautiful and responsive HTML emails.
This is very weird, is anyone else having this issue?
Related Posts:
- WordPress refuses to send mail, “…your host may have disabled the mail() function”
- WordPress “phpmailer_init” not working for me
- How do I override the Message-ID header of wp_mail function?
- wp_mail function timing out
- Why is my get_post_meta always empty
- Should I use wp_mail or PHP’s mail? [duplicate]
- Mail not sent when I set HTML headers
- Error when requesting password reset email – wp authentication
- Processing a subscription form with POST method?
- Different Webhost and using Google Mail server: Is there a better way than SMTP?
- wp_mail not sending
- Validate emails in array using foreach
- Redirect to another page after submission using wp_mail
- PHP 8, AJAX mail form to function.php doesn’t work
- How to retrieve the sender email with wp_mail()?
- wp_mail file attachment not being placed in upload folder?
- Website needs to be opened for wp_mail to work
- Notify users only on post publish
- Sending a custom form data in email through WP Mail Function
- Pass Variables or Variable Place-Holder from Editor to PHP
- Pass return-path additional parameter in wp_mail
- Send notification email to admin for every new post published
- Different SMTP based on domain
- Get page permalink in contact form
- comment_post (if comment is approved OR $comment_approved === 1) not working?
- Running SMTP Conditionally
- Including user data in “new user notification email”
- Cron not sending wp-mail()
- Email always ends up in spam
- Premature end of script headers: wp-mail.php?
- Adding action item to admin users table and sending email
- Wp_mail doesnt work
- get_post_meta is always empty when I use wp_mail
- How to show value from ACF plugin field in e-mail?
- wp_mail vs mail functions and header arrays
- Word press – JSPDF – Sending PDF as attachment from wp_mail – Special characters
- wp_mail – send emails after 24 hours from users registration
- Send emails to individual subscribers when CPT post is deleted (trashed)
- Send registration email to all admins
- My custom get_the_excerpt() can’t get excerpt by ID
- how to make my website secured
- deactivating an active plugin using if page
- Single Quotes in .php file doesn’t load website
- element not working in Safari [closed]
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- Exclude specific post from displaying
- your php installation be missing the MySQL extension WordPress CPANEL [closed]
- {$key} or $key?
- Display the 3 latest WordPress Posts on a Static Page Outside WordPress
- WordPress mod_rewrite not working on php fpm
- Shortcode to pull posts
- PHP Strict Standards: Only variables should be assigned by reference
- Notice: Trying to get property of non-object
- Using CFDB7 vs Custom MySQL Database [closed]
- Get featured image with custom size outside WordPress
- How to use the checked() function to check for a non-empty var
- How do I pull information from one wordpress backend into another? [closed]
- How to do something when user profile rendereing?
- Change Spaces to Dashes?
- GD star rating function problem [closed]
- Custom functions for string data calculations
- How are these PHP functions applied to a specific page in WordPress?
- “pre_get_posts” orderby custom date field in different format?
- Woocommerce template file outputting tags
- How to update posts’ custom taxonomy selection?
- Check if current post in loop is last on current page
- php code for outputting a custom page in my account
- readable version of wp_query output
- Add a top bar to a wordpress theme without editing the header.php file?
- How to defer javascript from within the functions.php file without losing all styling?
- Random code snippet showing up in browser
- Roots Sage Symfony error when using override from template
- Gutenberg blocks shortcodes compatibility
- How to use Contact Form 7 shortcode value in a page?
- Cannot transfer ajax post data from js to php file
- Create Schema in WordPress with PHP
- Same Server, Same PHP, One Site Doesn’t Work [closed]
- How to echo a PHP code into WooCommerce variation product?
- Get Billing Email from WooCommece Checkout and Pass to Fullstory JS
- Combine multiple queries, array_unique returns nothing
- How to make `wp-list-table` show the` custom-fields` I have in Custom-Post
- Woocommerce custom attributes list help
- custom fields anchor points php
- WordPress change post date format from english to japanese
- Global filter not working
- get_category display only 1
- Search results template listing all posts
- How do I correct this filecount?
- How to properly send many mysql queries via php and what happens with ajax requests after they are sent?
- Using catch_that_image() for galleries?
- Auto remove empty values in array
- How to run ajax in WordPress Post?
- Make an array listing custom taxonomy
- Get category id for a custom category and display it in a class
- Automatically create a loop for post ID
- PHP Call outside class function inside anonymous function
- PHP code rendered in HTML
- How to add margin underneath woocommerce total price amount -> productpages
- add if statement to the featured image
- Upgrade WordPress core programmatically with PHP?