How can the distinction between promotional emails and legitimate business communication be maintained when sending automated emails to customers for payment reminders?

When sending automated emails for payment reminders, it is important to clearly distinguish between promotional emails and legitimate business communication to avoid confusing or alienating customers. One way to maintain this distinction is by clearly stating the purpose of the email in the subject line and body of the message. Additionally, using a professional tone and including only relevant payment information can help ensure that the email is perceived as a legitimate business communication rather than a promotional message.

// Example PHP code snippet for sending automated payment reminder emails

$subject = "Payment Reminder for Invoice #12345";
$message = "Dear Customer, This is a friendly reminder that payment for Invoice #12345 is due on [Due Date]. Please submit your payment at your earliest convenience. Thank you for your prompt attention to this matter.";

// Send email using PHP mail function
$to = "customer@example.com";
$headers = "From: Your Business <noreply@yourbusiness.com>";
mail($to, $subject, $message, $headers);