Don’t use single quotes with escape sequences like \r
, \n
and so on. Use double quotes:
$a="Hello, " . "\n";
$b = "Good Bye, \n";
Related Posts:
- Sending multipart (text/html) emails via wp_mail() will likely get your domain banned
- How to set SMTP programmatically
- Do something after sending email
- Include HTML template file in wp_mail
- Email sent from WordPress has HTML tags
- Reset Password – change from name and email address
- Few chars getting replaced with ‘=’ in mail content in wp_mail()
- wp_mail recipient array not sending?
- On form submission how to send 2 email to different users
- How to Configure SMTP on wordpress Cant Send Email
- Joining confirmation email
- How to setup SMTP for only one specific wp_mail()
- Must I change the admin user email address while changing the general email address?
- User invite email not delivered – related to subdomain?
- Can I configure WordPress to use postfix without a plugin?
- Email ‘from address’ has a www in it
- Trigger WordPress Actions from Email?
- PHP mail() works but wp_mail() does not
- WP mail sent to MS Exchange recipients = occasional email corruption?
- WordPress unable to send mail
- Not able to send links in email after setting header
- Emailing passwords: Setup installed on home server using XAMPP
- Mail function is not working
- Send bulk emails without timeout
- What is the best way to send out thousands of emails from a WordPress site? [closed]
- Change the Sender(not From) on wp_mail() function [closed]
- Prevent sending emails on user creation in OOP context?
- WordPress email could not be sent
- Send email daily using `wp_mail`
- wp_mail() won’t send mail when it’s a variable, only when hard coded
- Send email for confirmation during user registration
- Images in wp_mail not showing
- Email sent from WordPress has HTML tags
- wp_mail send multiple emails in a loop
- Can’t change headers / From for wp_mail()
- How can I remove the product short description from the WooCommerce Mails?
- New user notification issue
- Why do WordPress emails to multiple recipients include \n in the list
- wp_mail() not sending emails with ajax
- wordpress wp mail not changing sender mail
- Whitelist email sent by WordPress
- WP Mail isn’t sending user account messages, does send from plugins
- Asynchronous emailing
- Send email from WordPress
- Email validation in Ruby on Rails?
- Why won’t wp_mail() let me set the From: header when plain old PHP mail() will?
- How do I customise the new user welcome email
- How to add headers to outgoing email?
- wp_mail script with jQuery post
- Create custom welcome email without a plugin
- Email as Username in registration
- Send a confirmation of user role upgrade conditionally
- Dynamically send pdf attached to post with contact form 7 [closed]
- Should I use the standard wp_mail() function for a premium theme?
- apostrophe in email name
- How to create a CSV on the fly and send as an attachment using wp_mail?
- Disable WP notifications for commenting on own posts
- Ability to download only after email supplied [closed]
- Obfuscating Email Addresses in Form Fields
- Different Webhost and using Google Mail server: Is there a better way than SMTP?
- How to Change WooCommerce new order email?
- Adding second Email address for WP user notifications
- How to set custom from email address in wp
- How to translate WordPress Emails?
- wp_mail() not sending email in multisite subdomain
- Google Apps SMTP for WP MultiSite?
- Emails not getting delivered to Hotmail addresses
- Warning: include(): https:// wrapper is disabled in the server configuration by allow_url_include=0
- how to email username and password to admin of new registration
- Send email when publish new post in certain categories
- show a little contact form in homepage without plugin
- Automatically email daily archive
- reply via email link under each post
- Sending HTML email containing custom fields to site users from WordPress
- Is there a way to follow a WordPress site by email alerts for new posts? [closed]
- Resend password chosen by WP administrator? [duplicate]
- Auto Log In Users after registration and send confirmation email
- Changing old email to new email, lost the password
- Why would it take four reset password attempts to finally get the e-mail?
- WordPress WooCommerce email notifications going to spam folder
- Mailing issues with wordpress?
- Life after Feedburner and their email subscription
- Email Notify author of posts if content is out of date (older than 6 months)
- Remove wpautop from retrieve_password_message
- WordPress won’t let me change my administration email address
- How can I send an email to a user when a post in their category changes
- Notification Email Address not changing
- Filter wp_mail based on content type
- Custom Welcome Email | WordPress
- Sending email with wp_email and AJAX
- Contact forms not sending mails
- is_email() function Not Validating within Foreach Loop
- Garbled Code added to Email Field at ‘Quick Edit’ comment screen
- Can we validate user email changes?
- Woo-Commerce Send mail by code. [closed]
- What’s the simplest way to send WordPress posts to a Mailchimp list? [closed]
- Having Issue on Receiving Emails From @Gmail.com or @Yahoo. in WordPress Using PHP Mail Function
- Fighting Spam – What can I do as an: Email Administrator, Domain Owner, or User?
- How to add verification on email address change?
- Is there a wordpress function restrict public email id for registration like as is_email()