How to load WP functions?
<p>I have a <code>mymail.php</code> script which sends a email (I managed to do it using <code>require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-includes/class-phpmailer.php' );</code>.) and outputs a plain text string (Such as "Email is sent successfully.")</p>

<p>I want to use the functions defined in WP in this my script. The particular function I want to call is <code>get_option()</code> in order to retrieve the email user of the site owner. Which file to import for the particular <code>get_option()</code> function and which to import the entire WP core (like the context available for theme's .php files?</p>
