using swift mailer

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
dianacastillo
Forum Newbie
Posts: 4
Joined: Fri Sep 07, 2007 4:33 am

using swift mailer

Post by dianacastillo »

I am using the swift mailer that comes with fly spray, php 5.1 in windows.
the messages arrive empty, although I see the message when I do a print_r of the message

this is what I see when I do an echo in swift/batchmailer.php does this give anyone a clue?

at end of copy message headers, the message now is

Code: Select all

Swift_Message Object
(
    [PRIORITY_HIGH] => 1
    [PRIORITY_LOW] => 5
    [PRIORITY_NORMAL] => 3
    [mimeWarning] => This is a message in multipart MIME format.  Your mail client should not be displaying this. Consider upgrading your mail client to view this message correctly.
    [libVersion] => 3.3.0_4
    [references] => Array
        (
            [parent] => Array
                (
                    [alternative] => 
                    [mixed] => 
                    [related] => 
                )

            [alternative] => Array
                (
                )

            [mixed] => Array
                (
                )

            [related] => Array
                (
                )

        )

    [PLAIN] => text/plain
    [HTML] => text/html
    [MISC] => application/octet-stream
    [SAFE_LENGTH] => 1000
    [VERY_SAFE_LENGTH] => 76
    [headers] => Swift_Message_Headers Object
        (
            [emailContainingHeaders] => Array
                (
                    [0] => To
                    [1] => From
                    [2] => Reply-To
                    [3] => Cc
                    [4] => Bcc
                    [5] => Return-Path
                    [6] => Sender
                )

            [encoding] => B
            [charset] => utf-8
            [headers] => Array
                (
                    [Return-Path] => 
                    [To] => 
                    [From] => 
                    [Cc] => 
                    [Bcc] => 
                    [Reply-To] => 
                    [Subject] => [TS_Shuttle][#2] hacer que el correo funcione desde flyspray
                    [Date] => Fri, 07 Sep 2007 11:23:00 +0200
                    [X-LibVersion] => 3.3.0_4
                    [MIME-Version] => 1.0
                    [Content-Type] => text/plain
                    [Content-Transfer-Encoding] => 8bit
                    [Precedence] => list
                    [X-Mailer] => Flyspray
                    [In-Reply-To] => 
                    [References] => 
                )

            [lowerHeaders] => Array
                (
                    [return-path] => 
                    [to] => 
                    [from] => 
                    [cc] => 
                    [bcc] => 
                    [reply-to] => 
                    [subject] => [TS_Shuttle][#2] hacer que el correo funcione desde flyspray
                    [date] => Fri, 07 Sep 2007 11:23:00 +0200
                    [x-libversion] => 3.3.0_4
                    [mime-version] => 1.0
                    [content-type] => text/plain
                    [content-transfer-encoding] => 8bit
                    [precedence] => list
                    [x-mailer] => Flyspray
                    [in-reply-to] => 
                    [references] => 
                )

            [attributes] => Array
                (
                    [content-type] => Array
                        (
                            [charset] => iso-8859-1
                            [format] => flowed
                        )

                )

            [forceEncoding] => 
            [language] => en-us
            [cached] => Array
                (
                    [return-path] => 
                    [to] => 
                    [from] => 
                    [cc] => 
                    [bcc] => 
                    [reply-to] => 
                    [subject] => [TS_Shuttle][#2] hacer que el correo funcione desde flyspray
                    [date] => Fri, 07 Sep 2007 11:23:00 +0200
                    [x-libversion] => 3.3.0_4
                    [mime-version] => 1.0
                    [content-type] => text/plain; charset=iso-8859-1; format=flowed
                    [content-transfer-encoding] => 8bit
                    [precedence] => list
                    [x-mailer] => Flyspray
                    [in-reply-to] => 
                    [references] => 
                )

            [LE] => 

        )

    [data] => THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has been changed.  The changes are listed below.  For full information about what has changed, visit the URL and click the History tab.

FS#2 - hacer que el correo funcione desde flyspray
User who did this: Mr Super User (dianacastillo)
Percent Complete: 50% -> 60%

More information can be found at the following URL:
http://localhost/flyspray/index.php?do=details&task_id=2

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
    [wrap] => 1000
    [children] => Array
        (
        )

    [boundary] => 
    [LE] => 

    [_encoder] => Swift_Message_Encoder Object
        (
            [CHEAP_ADDRESS_RE] => (?#Start of dot-atom
    )[-!#\$%&'\*\+\/=\?\^_`{}\|~0-9A-Za-z]+(?:\.[-!#\$%&'\*\+\/=\?\^_`{}\|~0-9A-Za-z]+)*(?#
    End of dot-atom)(?:@(?#Start of domain)[-0-9A-Za-z]+(?:\.[-0-9A-Za-z]+)*(?#End of domain))?
        )

    [cache] => Swift_Cache_Disk Object
        (
            [open] => Array
                (
                )

            [prefix] => dbef0f13f05b985e3c39cb4c0cd060ef
        )
chuckl
Forum Commoner
Posts: 61
Joined: Wed May 23, 2007 7:36 am

Post by chuckl »

At a guess, I'd say that your email client is interpreting the email (correctly I think) as having a plain text part, and a 'richer' e.g. HTML version of the same message, and is opening the second one, which is blank. The plain text section of the message is what you see when you print it.

I guess you'd have to ask the Flyspray people about that, as that is what is composing the message. The header implies that the message is text plain, then there appears to be a format - flowed section with no content, and finally a plain text section with the message. I'd suggest you look at the message source to confirm any of that however
Post Reply