Email subject line image

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
User avatar
paulie
Registered User
Posts: 120
Joined: Thu Mar 30, 2017 3:41 pm
Location: Hull, East Yorkshire.

Email subject line image

Post by paulie »

I've recently received a couple of Emails notifying me of impending deliveries of orders that I've made. Some of these Emails have a little delivery truck or parcel image in the Email Subject line which looks pretty cool and certainly stands out.

Is it possible to do this in 3.2 so that any member of my Forum that receives an Email through the board sees an image of my choosing in the Email Subject line?

Not looking for an Extension, just (hopefully) a simple edit or text addition to files.

Thanks.
Last edited by _Vinny_ on Fri Aug 04, 2017 5:52 am, edited 1 time in total.
Reason: Moved from [3.2.x] Styles Support & Discussion
'Life in the Air Age isn't all the brochures say ...'
User avatar
_Vinny_
Style Customisations
Style Customisations
Posts: 10533
Joined: Tue Aug 11, 2009 12:45 am
Location: Brazil
Name: Marcus Vinicius

Re: Email subject line image

Post by _Vinny_ »

Open includes/functions_messenger.php
Find:

Code: Select all

// Send message ...
Before add:

Code: Select all

		// custom mail subject with emoji
		$emoji = json_decode('"\u2764"'); // emoji's unicode value
		$this->subject = $this->subject .' '. $emoji;
This will add a :heart: at the end of the line. To put it at the beginning of the line, use this:

Code: Select all

		// custom subject mail with emoji
		$emoji = json_decode('"\u2764"'); // emoji's unicode value
		$this->subject = $emoji .' '. $this->subject;
Now the good thing, you can choose any emoji. Click here, choose an emoji, in column Unicode, click on the emoji unicode link, now in the emoji infos, use the C/C++/Java source code. For example, the truck, the code is "\uD83D\uDE9A", just replace "\u2764" with this new one.
User avatar
paulie
Registered User
Posts: 120
Joined: Thu Mar 30, 2017 3:41 pm
Location: Hull, East Yorkshire.

Re: Email subject line image

Post by paulie »

Vinny, absolute star. Many thanks sir :D
'Life in the Air Age isn't all the brochures say ...'

Return to “phpBB Custom Coding”