It’s possible using PHP’s mail()
function. Remember the mail function will not work on a local server.
<?php $to = '[email protected]'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?>
Reference:
Related Posts:
- WordPress refuses to send mail, “…your host may have disabled the mail() function”
- How do I override the Message-ID header of wp_mail function?
- How to disable wordpress confirmation email for new users
- Best way to create a user programatically
- Should I use wp_mail or PHP’s mail? [duplicate]
- Mail not sent when I set HTML headers
- Send PDF link in email based on radio button selection
- Woocommerce HTML email option unavailable
- Trigger Woocommerce New User Email
- Processing a subscription form with POST method?
- Different Webhost and using Google Mail server: Is there a better way than SMTP?
- Attaching a pdf to Contact Form 7 e-mail via functions.php [closed]
- Setting up 2 SMTP accounts: 1 for wordpress and 1 for woocommerce
- Set a condition based on WooCommerce checkout city field while placing order
- WooCommerce – Email admin with new user details
- How do you ensure that a user is recognised and available for use only when it is verified through a row in the database called ‘accountVerified’?
- PHP 8, AJAX mail form to function.php doesn’t work
- Capture User Email Address When Filling Out Form
- Send multiple attachments with wp_mail in PHP
- How to retrieve the sender email with wp_mail()?
- Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )
- Can I get an email notification when media is uploaded to the media library?
- Woocommerce Email attachments not working – file not being attached
- Get user custom field value on function.php
- Pass return-path additional parameter in wp_mail
- difference between sanitize_email ,FILTER_VALIDATE_EMAIL and input email type in html5
- Use of antispambot with $curauth->email
- How do I attach an invoice PDF to an email in the Dukapress plugin for WordPress?
- Contact form – problem with displaying message about sent mail
- How to setup the Email piping in WordPress plugin?
- Is it secure to use SMTP password in .php file in WordPress website?
- Send an e-mail on address with the link with disliked post
- I want to fusion the product columns in email table order
- Woocommerce checkout page – custom field checkbox value into email
- Changing default WPMU emails to be send thorugh Campaign Monitor Transactional emails
- Send email to users when they get new followers
- How can disable wordpress emails notifications?
- Woocommerce custom field on emails outputs ‘Array’
- Using Custom Javascript and pHp to send email to myself when a user clicks on an input button but only works on Chrome, IE, and Micorosft Edge
- Wp_mail doesnt work
- Trying send mail from Theme page
- get_post_meta is always empty when I use wp_mail
- Cron job to call php to email last 24 hours posts
- How to check “From Email” via WordPress before an email is sent
- Adding multiple emails to a
- How can I prevent wordpress from sending emails
- Dynamic Email Handler with ‘header (“Location: …’
- Customize the summary table of an order in the email
- Why does WordPress not send the user the email to add a password?
- Why is my custom email notification after purchase not sending?
- Do I require the use of nonce?
- Custom SQL query to get List of posts with featured image url
- How to preserve PHP modifications while upgrading WordPress?
- How to check if comments are paginated?
- Use Timber/Twig to pull an image by image ID [closed]
- Is it ok to replace php code with html?
- Rename “Portfolio” slug?
- Render ninja form inside markup
- How to show 50×50 image thumbnail in Related Post
- Namespace spl_autoload problem in WordPress admin
- How to save checkbox values for logged in users?
- How to store data from multiple forms using ajax and php
- How to control WordPress image metadata (using Imagick)?
- Ajax date_query not working past the first iteration
- How to sent a email outside WordPress?
- Update post title from external file?
- Override user-edit.php to design own profile page
- How can I add a new row in a separate database when someone registers via WordPress?
- Add 23 hours 59 minutes and 59 seconds to meta key before saving?
- proc_open() fires twice
- How can I get all values from my array in a loop in php? [closed]
- Creating custom page template from existing PHP site
- wordpress site – using custom database and PHP
- Woocommerce custom Plugin in wordpress [closed]
- Implementing custom tag/tax pages
- Change homepage content if user is logged in – BuddyPress
- Replace Post-Title with variable
- WordPress loop is not working
- How to edit background color of only one sidebar?
- Edit and delete permissions pages and posts
- Removing links from Grouped products
- Add custom field on admin dashboard comments / reviews
- Display one random image from Media Library
- Problem with my Login Plugin
- Suddenly got alert when trying to login to admin panel of wordpress
- Taxonomy Child Term, Counter is staying on 0
- LinkedIn Share Post Button
- wordpress more than one ajax request at the same time issue
- How to display recently modified posts on recent post widget in wordpress
- PHP Shortcode – 500 error
- Non-array argument in array_merge()-function [closed]
- retrieve wordpress post-meta using php not wordpress functions
- Too few arguments for printf() [closed]
- custom data in url
- Dynamically append custom post type to end of url
- Parse error: syntax error, unexpected ‘}’ in C:\wamp64\www\Proiect\aplicatie\user_check.php on line 18 [closed]
- Pagination in category.php not functioning
- Wrapping the_content() in Schema articleBody tag? [closed]
- Can’t insert into a database wordpress
- How to get posts by a certain author in inner loop using outer loop variable or post title WordPress