Stay up to date

WITH OUR BLOG

Cron Job for removing expired MEC events

register_activation_hook(__FILE__, ‘wojciech_borowicz_mec_cron_job_schedule’); function wojciech_borowicz_mec_cron_job_schedule() { if (! wp_next_scheduled ( ‘wojciech_borowicz_remove_expired_events_cron_job’ )) { wp_schedule_event(time(), ‘daily’, ‘wojciech_borowicz_remove_expired_events_cron_job’); } } add_action(‘wojciech_borowicz_remove_expired_events_cron_job’, ‘wojciech_borowicz_remove_expired_events’); function wojciech_borowicz_remove_expired_events() { $args = array( ‘post_type’ => ‘mec-events’, ‘orderby’ => ‘date’, ‘order’ => ‘DESC’, ‘posts_per_page’=> ‘-1’, ); $loop = new WP_Query( $args ); if( $loop->have_posts() ): $today = date(‘Y-m-d’); while( $loop->have_posts() ): $loop->the_post(); global $post; […]

Enable SMTP Auth Office365

PS> Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.5 PS> Import-Module ExchangeOnlineManagement PS> Connect-ExchangeOnline -UserPrincipalName admin@emailAddress.com -DelegatedOrganization emailAddress.onmicrosoft.com PS> Set-CASMailbox -Identity user@goldenminute.co.uk -SmtpClientAuthenticationDisabled $false PS> Get-CASMailbox -Identity user@goldenminute.co.uk | Format-List SmtpClientAuthenticationDisabled

Popular provider SMTP settings

Outlook.com SMTP Settings Host: smtp-mail.outlook.com Port: 587 Username: Your Outlook.com account email (e.g. john@outlook.com) Password: Your Outlook.com account password Encryption: TLS Office 365 SMTP Settings Host: smtp.office365.com Port: 587 Username: Your Office 365 account email Password: Your Office 365 account password Encryption: TLS Hotmail SMTP Settings Host: smtp.live.com Port: 587 Username: Your Hotmail account email (e.g. john@hotmail.com) Password: Your Hotmail account password Encryption: TLS Yahoo Mail SMTP Settings Host: smtp.mail.yahoo.com Port: 465 […]