I asked this question before, 1. if you are using syfmony 1.2, no more sendEmail() function is good, just write it dierectly into your task 2. as running in cli, no request_uri is good, just hard code the url This is my experience
On Tue, Mar 31, 2009 at 9:21 AM, kusum <[email protected]> wrote: > > > Hi , > how i can send email in batch script using sendEmail and set > request parameter for email. > > Thanks, > Kusum > On Mar 31, 5:18 pm, kusum <[email protected]> wrote: > > Hi , > > how i can send email in batch script using sendEmail and set > > request parameter for email. > > > > Thanks, > > Kusum > > > > On Mar 28, 7:43 pm, Kris <[email protected]> wrote: > > > > > Kasum, > > > > > Which version of Symfony are you using? > > > > > In your batch script, do you have: > > > > > define('SF_ENVIRONMENT', 'cli'); > > > > > This setting will configure Symfony for the console instead of the > > > web. > > > > > Kris > > > > > On Mar 27, 4:44 am, kusum <[email protected]> wrote: > > > > > > Hi, > > > > I am sending emails via a batch script. > > > > > > I need to send parameters to the email module via request > params > > > > or > > > > attributes... > > > > > > It sends the data and mail is gong proper but gives warnings like - > > > > > > PHP Notice: Undefined index: REQUEST_URI in /usr/share/php/symfony/ > > > > request/sfWebRequest.class.php on line 384 > > > > Notice: Undefined index: REQUEST_URI in /usr/share/php/symfony/ > > > > request/ > > > > sfWebRequest.class.php on line 384 > > > > PHP Notice: Undefined index: SERVER_PORT in /usr/share/php/symfony/ > > > > request/sfWebRequest.class.php on line 406 > > > > > > Thanks, > > > > Kusum > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
