CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2005
    Posts
    141

    Unhappy php mime encoder

    hi

    i need my php application to encode my email so it would look quite like this:

    Code:
    From: 60123456789
    To: Undisclosed
    Message-ID: <4677928.1.1263362226968.JavaMail.SYSTEM@geoflex-dafd13d>
    Subject: Hello MMS
    MIME-Version: 1.0
    Content-Type: multipart/mixed; 
    	boundary="----=_Part_0_14780827.1263362226843"
    
    ------=_Part_0_14780827.1263362226843
    Content-Type: text/plain; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    
    Sila tonton video ini
    ------=_Part_0_14780827.1263362226843
    Content-Type: application/octet-stream; name=vid1.3GP
    content-transfer-encoding: base64
    Content-Disposition: attachment; filename=vid1.3GP
    
    AAAAHGZ0eXAzZ3A1AAAAADNncDQzZ3A1aXNvbQAAN0xmcmVlAAAAbG12aGQAAAAAxpVuR8aVbmcA
    AAPoAAIdaAABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAA
    the string above is generated using javamail, and I can't find any php library which can do the similar thing...

    thanks a lot

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: php mime encoder

    Why do you need a library to do that? E-mail is built right into PHP's general functions...mail().
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Jul 2005
    Posts
    141

    Re: php mime encoder

    Quote Originally Posted by PeejAvery View Post
    Why do you need a library to do that? E-mail is built right into PHP's general functions...mail().
    it seems the built in php functions is not really up to what i wanted.. i may be wrong, but I can't find any example which does what I want there.. anyway, i've decided just to use Java for the stuff above, so I consider this topic is closed.. althought not gracefully

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    Re: php mime encoder

    All you would have to do is to create a string identical to your first post and pass it as the message within the mail() function.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  5. #5
    Join Date
    Jul 2005
    Posts
    141

    Re: php mime encoder

    Quote Originally Posted by PeejAvery View Post
    All you would have to do is to create a string identical to your first post and pass it as the message within the mail() function.

    oouh... don't tell me it's that simple... anyway I should try it... thanks

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured