開発メモ

開発用のメモです。

EC CUBE メール送信用関数テンプレート

<?php
    public function lfSendMailIn( $mail_template, $email, $bcc_email ) {

        $objCustomer = new SC_Customer_Ex( );

        $this->CONF = SC_Helper_DB_Ex::sfGetBasisData( );
        $this->name01 = $objCustomer->getValue( "name01" );
        $this->name02 = $objCustomer->getValue( "name02" );

        $CONF = SC_Helper_DB_Ex::sfGetBasisData( );

        $this->tpl_shopname = $CONF[ 'shop_name' ];
        $this->tpl_infoemail = $CONF[ 'email02' ];

        $helperMail = new SC_Helper_Mail_Ex( );
        $helperMail->setPage( $this );
        $helperMail->sfSendTemplateMail(
        // @formatter:off 
            $email, // to
            $this->name01. '', // to_name
            $mail_template, // template_id
            $this,
            $CONF[ 'email03' ], // from_address
            $CONF[ 'shop_name' ], // from_name
            $CONF[ 'email02' ], // reply_to
            $bcc_email // bcc
        // @formatter:on
        );
    }
Twitter: @asahina_alice