Skip to content Skip to footer
Phil's Blog Logo Phil's Blog Logo
Menu
  • Blog Home

Day: 5 September 2024

PHP

How to add a BCC to PHP mail() command.

September 5, 2024 / February 9, 2025 by Philip Newman | Leave a Comment

To add BCC (Blind Carbon Copy) recipients when sending mail in PHP, you can modify the headers to include BCC recipients. Here’s how you can do it: Example using PHP mail() function: Explanation: This will send the email to the primary recipient and also BCC it to hidden1@example.com and hidden2@example.com. Considerations:

Read more »

PHP 8.3

PHP

How to use Māori macrons in your PHP 8.3 code.

September 5, 2024 / September 5, 2024 by Philip Newman | Leave a Comment

To convert UTF-8 characters with macrons (e.g., Māori macrons like “ā”, “ē”, etc.) into their corresponding HTML entity codes in PHP, you can use the mb_encode_numericentity() function from the mbstring extension. Here’s an example of how to achieve this: Example Code: Explanation: Example Input/Output: Notes: This approach will correctly convert the UTF-8 macron characters to […]

Read more »

PHP 8.3
Sidebar

Recent Posts

  • Why Human‑Written Content Is Best for SEO/GEO for Small Businesses
  • How to Use LLMS.txt for LLM-Friendly Website Content in Markdown
  • How to Integrate XMPP Chat into a Social Network Web Frontend
  • SEO vs GEO: What is the Difference in 2026?
  • From a Single PHP Bug to Autonomous Codebases: My AI Journey

Categories

  • AI Prompts
  • Dovecot
  • Dribble
  • JavaScript
  • Linux
  • PHP
  • Postfix
  • Website SEO
  • WooCommerce
  • Wordpress
  • XMPP
© 2026 Phil's Blog