Cannot Schedule Sending An Email
Have you tried to check/combine it with a wp_next_scheduled existance/work of your hook?
Have you tried to check/combine it with a wp_next_scheduled existance/work of your hook?
Not receiving any e-mails after new comment
First, you should know that current_user_can() only accepts capabilities, not roles, so you are using it wrong and you can end up with unexpected results. That being said, to exlude users form WP_User_Query you can use the exclude parameter: // Get current user data $user = wp_get_current_user(); // Check if current user is a subscriber … Read more
Sending SMTP mail using a server with self-signed SSL
The code to schedule a cron event takes a timestamp as the first parameter. As long as you set the original timestamp to be 9:00 (on any day) the twicedaily trigger should take care of the rest wp_schedule_event( $timestamp, $recurrence, $hook, $args )
If you assign wp_mail() to a variable you can echo the results. Should return either true or false. $email = wp_mail(email,subject,message); var_dump($email); I don’t recognise the send_message() function in your code.
You should always encode the url when outputting to a link tag: urlencode(‘http://test.domain.nl/[email protected]’) Rewrite After further examination of your website. It’s clear that the URL is being rewritten when a trailing slash is absent uitschrijven?email=. Doing research I have stumbled on this issue which is identical to yours. The solution is to add a RewriteRule … Read more
For SMTP and Gmail, you will need turn on 2 step verification, then create an App specific password in security panel of google account. Use your email and that password as login credential. You’ll also need use TSL or SSL for SMTP. Hope this help!
First, decide whether you want to use GET or POST for your form. (without specifying the method, it will use GET.) You will need the name attribute filled out for your textarea, so the info can actually be sent. Then add your form processing into your function: (i.e. if ( isset($_POST[“message”]) && !empty($_POST[“message”]) ) {…} … Read more
I found if you go to http://sitename.com/wp-admin/network/site-settings.php?id={{id}} and set it here, it doesnt require verification.