Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2011
    Thanked 0 Times in 0 Posts

    how to decode the email subject ?


    I have send a mail with Subject line as

    [BILLING #PHY-945-49853]: [Ticket #12622] Payment Method

    But in the source of the message the line is like below

    Subject: =?UTF-8?B?W1NBTEVTICNCQk4tOTM1LTM3OTE3XTogW1RpY2tldCAjMTI2MjJdIFBheW1lbnQ=?=

    It is encoded in Base 64.How can i decode it back to the original subject line in English using php ? I have tried with the php base64_decode($subject) but it does not decode it to the original subject ([BILLING #PHY-945-49853]: [Ticket #12622] Payment Method)

    I'm also attaching a sample email message in this mail.


    Return-Path: .........
    X-Original-To: ..........
    Delivered-To: ........
    Received: ......
    X-DKIM: ........
    To: ....
    Subject: =?UTF-8?B?W1NBTEVTICNCQk4tOTM1LTM3OTE3XTogW1RpY2tldCAjMTI2MjJdIFBheW1lbnQ=?=
    From: =?UTF-8?B?U0FWVllFSE9TVElORyBTQUxFUw==?=
    X-Priority: ..
    X-MSMail-Priority: normal
    X-MimeOLE: Produced By Kayako Fusion v4.01.204
    X-Mailer: Kayako Fusion v4.01.204
    Reply-To: .......
    Date: .....
    Content-Type: multipart/alternative;
    MIME-Version: 1.0
    Message-Id: ....

    This is a message in MIME Format.
    If you see this, your mail reader does not support this format.

    Content-Type: text/plain;
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline

    Support Center:
    Content-Type: text/html;
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline

    If anyone knows please help me....

  • #2


    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts