PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, July 6, 2022

[FIXED] How to insert icon or image on PHPMailer Subject field

 July 06, 2022     email, icons, image, php, phpmailer     No comments   

Issue

I'm trying to insert a siren icon on my Subject field but I've no idea how to do it since the field doesn't accept special characters nor images.

I'm using PHPMailer and my goal is to get on something like this: Print of a Email subject in my mailbox


Solution

This is just an emoji. To be clear, this one: 🚨

In order for you to use emojis in your subject or email body, you need to set the charset to UTF-8

$mail = new PHPMailer();
$mail->CharSet = 'UTF-8';


Answered By - stui
Answer Checked By - Pedro (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing