PHP mail is sent very late?
Hello, unfortunately, I'm having a problem where my email newsletter doesn't arrive in my inbox until very late after I send it. It takes somewhere between 3 and 12 hours. What could be causing this?
Hello, unfortunately, I'm having a problem where my email newsletter doesn't arrive in my inbox until very late after I send it. It takes somewhere between 3 and 12 hours. What could be causing this?
In addition to the "local account," I have two IMAP accounts set up. So far, everything's working fine. What's annoying is that every few days, the same three deleted subfolders keep appearing in the inbox of one of the IMAP accounts. I deleted these subfolders a year ago. The only way to get rid of…
If you attach multiple files to an email, do you send them as a zip file because it's more compact?
Hey I have an exam in media and computer science soon. For example, we have to "convert" the number -5.375 into a floating-point number. How do I do that? Best regards 🙂
Is it a good idea to create an email address for someone I work with that we can both use? Or should you keep email addresses private?
Hi, can you help me, I don't understand what's wrong? 🙁
I have to write a 15-page academic paper in the field of business informatics/computer science and I always try very hard to find a good topic. Do you happen to have a topic or subject area in mind that is interesting and offers sufficient literature? Thanks!
You don’t even say anything about the platform.
Anyway, on unixoidal OSes is called by mail() at the end sendmail. So if you nciht knows which sendmail and how the configuration looks, you can say little about it.
On the e-mail provider
or at the cronjob.
Depends on how the ship was implemented.
This is my code “
if ($_SERVER[“REQUEST_METHOD] == “POST” && isset($_POST[’email’]) && isset($_POST[‘subject’]) && isset($_POST[‘html_content’])
$to_email = $_POST[’email’);
$subject = $_POST[‘subject’);
$html_content = $_POST[‘html_content’);
// Configuration for mail delivery
$from_email = ‘deine@ Exemplar-email.com’;
// Set mail header
$headers = “From: $from_email\r\n”;
$headers .= “Reply-To: $from_email\r\n”;
$headers .= “Content-type: text/html; charset=UTF-8\r\n”;
// Send e-mail
$mail_sent = mail($to_email, $subject, $html_content, $headers);
if ($mail_sent) {
echo “The newsletter was successfully sent to $to_email!”;
} else
echo “There was a problem sending the newsletter to $to_email.”;
}
} else
echo “Not all required fields have been transmitted.”
}
?>
“
will they be sent immediately? After creating? Because then it can only be on the provider.
Jo is sent immediately