Potentially crashed my email server?

I’m not sure if this is possible or what as I’m quite new but I have a simple php mail script that was working previously, and now is just sending 0 emails.

$sql = “INSERT INTO Activities (S_ID, Activity, Observation, Date, ActivityPicture) VALUES (’$S_ID’, ‘$activity’, ‘$observation’, ‘$date’, ‘$activityPicture’)”;
if(mysqli_query($conn, $sql)){
echo “Record inserted successfully”;
mail("connor@students.ac.uk", “asass”, “asdasdasd”);
} else {
echo "ERROR: Could not execute $sql. " . mysqli_error($conn);
}
mysqli_close($conn);
?>

My php is as shown, inserting records still works fine.

Emails are definitely not in junk/filtered etc from my email address either.

Or is there an email limit? How would I increase this? I am not sure how to properly make this function, and thus have been repeat emailing myself.

There is an email limit of 50 emails sent per day. In order to increase this, you have to upgrade to a paid plan.