use of include() in $message
Posted: Mon Jul 07, 2008 7:25 am
Hi,
I was wondering if it were possible to use include files for sending emails, kind of hard to explain, but what I mean is e.g.:
$message->attach(new Swift_Message_Part(include('mail.hmtl'));
I tried it before but I get an error, e.g., if I have to following:
$message->attach(new Swift_Message_Part(include('mail_text.hmtl'); *
$message->attach(new Swift_Message_Part(include('mail_html.hmtl', "text/html"));
When I try this I get an error that there's an unexpected ';' near *. When I remove it, I get
unexpected T_VARIABLE error on the same line.
Does this mean include are not possible the way I want it, or am I not seeing something.
I was wondering if it were possible to use include files for sending emails, kind of hard to explain, but what I mean is e.g.:
$message->attach(new Swift_Message_Part(include('mail.hmtl'));
I tried it before but I get an error, e.g., if I have to following:
$message->attach(new Swift_Message_Part(include('mail_text.hmtl'); *
$message->attach(new Swift_Message_Part(include('mail_html.hmtl', "text/html"));
When I try this I get an error that there's an unexpected ';' near *. When I remove it, I get
unexpected T_VARIABLE error on the same line.
Does this mean include are not possible the way I want it, or am I not seeing something.