WordPress doesn’t send a notification email when submitting a comment using REST API

When I submit a comment on the WordPress website, it sends me a notification email.
but when I submit a comment through REST API, WordPress doesn’t send me a notification email.
What should I do to make WordPress send a notification email when I submit a comment with REST API?

How do I send a file_download event to google analytics?

Google Analytics considers a file download a link to one of their supported file types. But my single page app generates files on the fly and then generates a hyperlink with base64 data and prompts the user to download it. I want to capture that event as a Conversion as far as analytics is concerned. After my file download code, I’m sending

gtag('event', 'file_download', {'send-to':'downloads'}); 

I see the event being posted in the console and google reports a 204 No Content status back, so everything is working at the network level. But I am not seeing any events listed under Events > events or Engagement > events or even Dashboard > top events. What could be going wrong?

My (send mail function WordPress) its made for salesstaus, has stop working after an update, maybe some code is outdatet

//send mail to owner if status set to 'Job Dispatched' if($  _POST['new_status'] == 10){     $  owner_email = get_option('purch_log_email');     $  result = $  wpdb->get_results('select wsf1.value as firstname                                      , wsf2.value as lastname                                     , wsf3.value as email                                     from XXXX2_wpsc_purchase_logs  wpl                                         left join XXXX2_wpsc_submited_form_data wsf1 ON wsf1.log_id = wpl.id AND wsf1.form_id = 2                                         left join XXXX2_wpsc_submited_form_data wsf2 ON wsf2.log_id = wpl.id AND wsf2.form_id = 3                                         left join XXXX2_wpsc_submited_form_data wsf3 ON wsf3.log_id = wpl.id AND wsf3.form_id = 9                                     where wpl.id = "'.$  _POST['id'].'"');         $  message    =   '<script type="application/json+trustpilot"> 

{‘ ."\n" ."\n" .’"recipientEmail": ‘.’"’.$ result[0]->email.’"’."," ."\n" ."\n" .’"recipientName": ‘.’"’.$ result[0]->firstname."".$ result[0]->lastname.’"’."," ."\n" ."\n" .’"referenceId": ‘.’"’.$ _POST[‘id’].’"’."," ."\n" ."\n" .’ }

‘;

    $  from       = "mysite.dk <info@mysite.dk>";     $  to         = $  owner_email;     $  subject    = "Trust Pilot"; 

// // $ headers = "From:" . $ from; $ headers = "From: " . $ from . "\r\n"; $ headers.= "Content-Type: text/plain;charset=utf-8\r\n";

    //wp_mail($  owner_email, 'New Dispatched Job', $  message);     

// Trust-Pilot

// mail(‘xxxxx@xxxxxx.trustpilot.dk’, $ subject, $ message, $ headers); mail(‘XXX@adr.dk’, $ subject, $ message, $ headers); }

Can you send an enemy flying by dealing damage?

I seem to remember a "build" for D&D 3 or 3.5 that if you damaged an opponent, they would have to make a Strength check vs the amount of damage done or be sent flying in 5 or 10 foot increments, and if their travel was hindered by someone or an object, the character and the object would take 1d6 damage for each range increment impeded, and if the object broke due to damage, the enemy would continue flying until the increments…

I’m trying to remember this was primarily for "large" or larger creatures… But my google fu is has failed me…

It might be from a 3pp that I’m remembering, but I don’t think so… Any leads and help would be greatly appreciated!

how to send user email confirmation without register the user

I want the new user on resgistration to receive a confirmation email, and only after confirm the email can get access to the login area, not before.

I had made a custom form, a new table to store the info, send the email of validation, in the meanwhile the user is only with his info on a custom table on the database, only after the email validation, this means the user click the custom email link and a new window is open on the website congratulating him for the new registration and email validation, and the user gets registrated, already log on and goes to the home page. in the backend wordpress validates the key generated and returned by the user, regist the user and delete the info from the custom email confirmation table. ok, this is all done and working fine. eheh.

My question is is there any wordpress function to do the same, because I dont know any.

How to send emails from any address with postfix? [closed]

I’m very familiar with PHP, and I used to use the mail function. I really want to be able to use it on my Raspberry Pi 4 apache2 server. I have php installed, and the mail function always returns true. But it never makes it. It’s not any error with the code or my spam folder because I’m using the same script I used to and there haven’t been any updates to my provider. Anyway, I know I need to install postfix, but I don’t know how. PLEASE READ ON BEFORE GIVING SOME TUTORIAL LINK. Anyway, I need to set it up so that I can send email over the internet AND from any address. Thanks in advance!

Can Chrome Extensions Send Data to Remote Servers?

Suppose an extension has a scary list of permissions like that below ("Site access: On all sites"):

enter image description here

Does this also give the extension permission to send my data to the author’s servers via XHR?

I’ve read the documentation here but lack some background knowledge, so I am not sure in my interpretation:

Cross-Origin XMLHttpRequest

After reading this, it seemed like the extension isn’t allowed to send my data somewhere unless it has lines like the below in the manifest – is this correct?

"permissions": [     "https://www.google.com/"   ] 

How to send SQL or HTML data over HTTP without triggering WAF rules?

I’m working on securing an application that receives SQL and HTML-like information that is actually proprietry formulas in some cases, and parts of XML documents in other cases.

So the WAF thinks some HTTP requests are SQL or HTML injection attacks while they actually aren’t.

So how can I send these formulas and XML informaiton without triggering those WAF rules? I tried encoding the data but that didn’t work.