[Flow] StandaloneView for emails and templatePathAndFileName

Marc Neuhaus apocalip at gmail.com
Fri Aug 9 11:59:40 CEST 2013


BTW, you might be interested in my Famelo.Messaging Package :)

 $mail = new \Famelo\Messaging\Message();
 $mail->setFrom(array('mail at me.com' => 'Me :)'))
      ->setTo(array('mail at you.com'))
      ->setSubject('How are you?')
      ->setMessage('My.Package:HelloWorld')
      ->assign('someVariable', 'Hello World')
      ->send();

https://github.com/mneuhaus/Famelo.Messaging

Cheers
Marc



2013/8/9 Mark Kuiphuis <typo3 at markyourweb.com>

> On 9/08/13 6:11 PM, Bastian Waidelich wrote:
>
>> Mark Kuiphuis wrote:
>>
>> Hi Mark,
>>
>>  is there a better approach where I don't have
>>> to hardcode the dir/to/file after the FLOW_PATH_ROOT constant?
>>>
>>
>> As Steffen wrote, you can use the resource prefix.
>> If you want to use that as a "standalone service" that has no controller
>> context, you can also just set the Package-Key manually:
>> https://gist.github.com/**bwaidelich/5967024<https://gist.github.com/bwaidelich/5967024>
>>
>> With this (and with the manual initialization of the router) you can
>> even use this from the CLI.
>>
>> HTH
>>
>
> Thanks both for your replies. As I do expect some more emails (as in
> different purposes) to be sent from this application, I believe this the
> EmailService example will solve this for me.
>
> Thanks again,
>
> Regards, Mark Kuiphuis
>
>
> ______________________________**_________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/flow<http://lists.typo3.org/cgi-bin/mailman/listinfo/flow>
>


More information about the Flow mailing list