PHP Classes

Forwarding EML Files

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  Forwarding EML Files  >  (Un) Subscribe thread alerts  
Subject:Forwarding EML Files
Summary:How to forward eml files as body message part ?
Messages:3
Author:Michele Brodoloni
Date:2007-10-11 19:21:45
Update:2009-06-19 23:28:24
 

  1. Forwarding EML Files   Reply   Report abuse  
Picture of Michele Brodoloni Michele Brodoloni - 2007-10-11 19:21:45
Hello,
i managed to use this class for my application which seems to be suitable for my needs.

I can't figure out how can i take an eml file, change its headers and forward it to another recipient like it was the original email.
Can this job be done with this class?

I tried to use your other MIME Parser Class to split the message body part and pass it to the built-in mail() function with my own headers, but it seems to add some other headers which suppress mine.

I noticed (by the test_forwarding_message.php script) that it can be forwarded as attachment, but it doesn't work as expected, as the attached eml file is not displayed properly, showing headers on the body part, HTML and images don't render.. I made this try only by changing the recipient on the previously mentioned script.

I'm using the crappy LookOut Express :) as e-mail client as most of my clients will use that..

Thanks in advance,
Michele B.

  2. Re: Forwarding EML Files   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-10-12 00:19:38 - In reply to message 1 from Michele Brodoloni
You can use the class SendMessage function for that. You need to have:

1. The sender address alone without the sender name
2. An array with the recipient addresses alone also without the recipient names
3. An array with the header lines without end of line characters
4. The message body data including any line breaks defined as \r\n sequences.

  3. Re: Forwarding EML Files   Reply   Report abuse  
Picture of Gert van de Venis Gert van de Venis - 2009-06-19 23:28:24 - In reply to message 2 from Manuel Lemos
I've got a similar scenario on my hands. I want to be able to forward an incoming message in a certain pop box to a list of recipients.

So i managed to get the message from my pop box, but how do i forward it without losing embedded images in the html part of the original mail?

It would be great if i could just send the source mail directly and unchanged to a list of recipients without the need to first pull it apart and then reconstruct it for sending... Hope to hear from you. Regards and many thanks in advance,

Gert