Email and TCPDF action in Event Switcher not works

Fredolino 01 Jun, 2016
Hi,

I have in event Switcher an email action "on success".
The e-mail Action work, the email is sent.
The TCPDF action is to generate a PDF and send the PDF as an e-mail attachment.
The PDF is properly created and saved on the server.
The PDF is not sent with the email as an attachment.

The PDF is not sent when the TCPDF action is stored in the "on success" area.

What could be the problem?

Best wishes
GreyHead 01 Jun, 2016
Hi Fredolino,

It looks as though you have the Email action before the TCPDF action so there is no file to attach when the Emaila ction runs.. You need the Email action after the TCPDF action.

Bob
Fredolino 01 Jun, 2016
Hi Bob :-)

and i have TCPDF here... not works...
GreyHead 01 Jun, 2016
Hi Fredolino,

What do you see in the Debugger output?

I don't think that you need two TCPDF actions.

Bob
Fredolino 01 Jun, 2016
...is not in both places. At this point, the mail without PDF is sent....


Array
(
    [chronoform] => xxxxxx_CPsCouponForm
    [event] => submit
    [modAUP_CPsCouponValue] => FOYPNOPQ
    [vorname] => Susi
    [nachname] => Sorglos
    [addresse] => 
    [ort] => 
    [strasse] => 
    [hausnr] => 
    [telefon] => 
    [email] => info@fredo.de
    [geburtsdatum] => 
    [kfz_marke] => 
    [kfz_kennzeichen] => 
    [erstzulassung] => 
    [captcha] => 
    [submit6] => Submit
    [modAUP_CPsCouponForm] => 
    [ip_address] => xxxxx
    [cf_pdf_file] => my_pdf_file_20160601152813.pdf
)

Array
(
    [cf_pdf_file] => Array
        (
            [name] => my_pdf_file_20160601152813.pdf
            [path] => /www/htdocs/xxxxxx/__test/images/code/my_pdf_file_20160601152813.pdf
            [size] => 0
            [link] => http://www.test.sommerfugl.de/images/code/my_pdf_file_20160601152813.pdf
        )

)

Errors

Array
(
)

Debug Info

Array
(
    [27] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:natt@so.de
                    [2] => Subject:Ein ... wurde eingelöst
                    [3] => From name:Webseite
                    [4] => From email:natt@so.de
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:
                    [8] => Reply email:
                    [9] => Attachments:
                    [10] => Array
                        (
                        )

                    [11] => Body:
<table>
<tr><td>Gutscheincode</td><td>FOYPNOPQ</td></tr>
<tr><td>Name</td><td>Susi</td></tr>
<tr><td></td><td>Sorglos</td></tr>
<tr><td>Addresse</td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>Telefon</td><td></td></tr>
<tr><td>E-Mail</td><td>info@fredo.de</td></tr>
<tr><td>Geburtsdatum</td><td></td></tr>
<tr><td>Kfz-Marke / Modell</td><td></td></tr>
<tr><td>KFZ-Kennzeichen</td><td></td></tr>
<tr><td>Erstzulassung</td><td></td></tr>
<tr><td>Captcha</td><td></td></tr>
<tr><td></td><td></td></tr>
</table>
                )

        )

    [36] => Array
        (
            [TCPDF] => Array
                (
                    [0] => /www/htdocs/xxxxxx/__test/images/code/my_pdf_file_20160601152813.pdf has been saved correctly.
                )

        )

    [26] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:info@fredo.de
                    [2] => Subject:Ihr Antrag auf Urlaubspannenschutz
                    [3] => From name:Admin
                    [4] => From email:natt@so.de
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:
                    [8] => Reply email:
                    [9] => Attachments:
                    [10] => Array
                        (
                        )

                    [11] => Body:
<table>
<tr><td>Gutscheincode</td><td>FOYPNOPQ</td></tr>
<tr><td>Name</td><td>Susi</td></tr>
<tr><td></td><td>Sorglos</td></tr>
<tr><td>Addresse</td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td>Telefon</td><td></td></tr>
<tr><td>E-Mail</td><td>info@fredo.de</td></tr>
<tr><td>Geburtsdatum</td><td></td></tr>
<tr><td>Kfz-Marke / Modell</td><td></td></tr>
<tr><td>KFZ-Kennzeichen</td><td></td></tr>
<tr><td>Erstzulassung</td><td></td></tr>
<tr><td>Captcha</td><td></td></tr>
<tr><td></td><td></td></tr>
</table>
                )

        )

)
GreyHead 01 Jun, 2016
Hi Fredolino,

And do you have cf_pdf_file in the Email action Attachments box? I think that is what you need there.

Bob
Fredolino 01 Jun, 2016
grrrrrrrrrr...... 🙄 "my_pdf_file"
... now I have the right name and the PDF is sent .... extra coffee is on the way 😀
This topic is locked and no more replies can be posted.