Sending mails from WordPress is pretty straightforward, using wp_mail
. The tricky bit is receiving mail. You could probably achieve this by hijacking the method that WordPress has to post by mail. In that code you see this line:
do_action( 'wp-mail.php' );
This allows you to take over the posting process. So, in stead of posting the content of an email you could do something else with it, for instance store it in a table that is attached to a user’s profile.
Making this happen is likely a lot of work. Going with @Rup’s suggestion to use an external server is probably a better idea.
Related Posts:
- WP mail sent to MS Exchange recipients = occasional email corruption?
- How to set SMTP programmatically
- Include HTML template file in wp_mail
- How to setup SMTP for only one specific wp_mail()
- User invite email not delivered – related to subdomain?
- Emailing passwords: Setup installed on home server using XAMPP
- Images in wp_mail not showing
- Is there a way to embed an iframe in an email with text that updates?
- Sending multipart (text/html) emails via wp_mail() will likely get your domain banned
- Do something after sending email
- Mail will not send in HTML
- Create custom welcome email without a plugin
- 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
- Should I use wp_mail or PHP’s mail? [duplicate]
- How to add line breaks to $email[‘body’] when using auto_core_update_email hook
- Joining confirmation email
- Must I change the admin user email address while changing the general email address?
- 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
- WordPress unable to send mail
- Not able to send links in email after setting header
- 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?
- HTML email sent with wp_mail shows plain text
- wp_mail not sending email on custom function
- WordPress email could not be sent
- Getting image in mail
- 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
- phpmailer reply to message id using AddCustomHeader
- About Custom Email Template Design Responsive
- WordPress new user email formatting issues
- 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
- Multisite – SMTP not working on other network sites
- 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
- WordPress stops executing code after the require() method
- Send email from WordPress
- Not able to override pluggable function with a mu_plugin
- What is the correct way to send multipart email in wordpress?
- Filter “wp_mail” – How to distinguish between a WordPress system email and a plugin email?
- SMTP connect() failed PHPmailer – PHP
- What is the difference between ports 465 and 587?
- Email validation in Ruby on Rails?
- PhpMailer SMTP NOTICE: EOF caught while checking if connected
- PhpMailer SMTP NOTICE: EOF caught while checking if connected
- Is there a way to send HTML formatted emails with WordPress’ wp_mail() function?
- Why won’t wp_mail() let me set the From: header when plain old PHP mail() will?
- changing notification emails from WordPress @mydomain.net to something else
- Disable user registration password email
- WordPress refuses to send mail, “…your host may have disabled the mail() function”
- Alert Email when any Post or Page is Changed
- How do I customise the new user welcome email
- How do you update user_email on the front end in WP 3.3?
- Missing URL in password reset email
- User Without Email?
- How to add headers to outgoing email?
- “Reply-to Address” Email
- prevent users from changing their email address
- wp_mail and BCC headers
- WordPress “phpmailer_init” not working for me
- how to set from address according to the form input email address for wp_mail()?
- Disable new user notification to admin email
- Using WordPress templating for HTML emails
- Allow Duplicate Email Address for Different Users
- How do I override the Message-ID header of wp_mail function?
- Email confirmation on registration
- wp_mail script with jQuery post
- Customizing lost password email
- wp_mail – Remove sitename from email subject
- How to disable automated E-Mail on PHP error/exception?
- How do i send mail with custom Form Data using WordPress
- Email as Username in registration
- Email stats at Ma.tt contact form
- Fwd: [Website Name] Notice of Email Change [closed]
- How to use PHPmailer in a function in WordPress
- Send all WPMU emails via SMTP
- Send mail to wordpress admin
- Send a confirmation of user role upgrade conditionally
- How to set up gmail SMTP in WordPress
- WP Cron emails not working