Testing mail from commandline

echo “This is the main body of the mail” | mail -s “Subject of the Email” -a “From: [email protected][email protected] telnet iot-parts.com 25 mailMAIL FROM:[email protected] RCPT TO:[email protected] DATA telnet localhost 143 a login “username” “password” Test using imaps port (assuming you haven’t disabled imaps port): # openssl s_client -connect imap.example.com:993 Test using imap port and… Continue reading Testing mail from commandline

WP Code Highlight – gives preg_replace error

With updated PHP version WP Code Highlight – gives preg_replace error. Do the following. Remove the “e” from /ise return preg_replace_callback(“/<pre(.*?)>(.*?)<\/pre>/is”, function($m){ return “<pre class=’wp-code-highlight prettyprint$line_numbers’>”.wch_stripslashes($m[2]).”</pre>”; }, $content);