# wpremote/6.76/wp_2fa/email_otp_sender.php

The WP Remote WordPress Plugin, version 6.76. 12 lines.

- Page: https://pluginprobe.com/plugins/wpremote/6.76/code/wp_2fa/email_otp_sender.php
- Raw: https://pluginprobe.com/plugins/wpremote/6.76/raw/wp_2fa/email_otp_sender.php
- Modified: 2026-09-17T11:43:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpremote/6.76/code/wp_2fa/email_otp_sender.php#L10-L20`.

```php
<?php
if (!defined('ABSPATH')) exit;
if (!class_exists('WPRWP2FAEmailOTPSender')) :
class WPRWP2FAEmailOTPSender {
	public static function send($user, $code, $lifetime) {
		$template = new WPRWP2FAEmailOTPTemplate($code, $lifetime);

		return wp_mail($user->user_email, $template->subject(), $template->body(), $template->headers());
	}
}
endif;

```
