That sounds plausible. My final work around has just been to put in an extra line break - but echoing a new line is a nice option. Thanks!
On Apr 3, 4:41 am, FÁSI Gábor <maerl...@gmail.com> wrote: > It might be connected to the way fixtures are loaded. You can put php > code in there (like a for loop to make a lot of data), but if a line > ends with php code, you must manually echo a \n otherwise there will > be no linebreak there. > The workaround you found is part of how SMTP works :) if you'd echo a > line with only a dot in it, that would send the mail and the rest > would be ignored. > > On Thu, Apr 2, 2009 at 21:31, Steve the Canuck <steve.san...@gmail.com> wrote: > > > > > After playing around, it seems like I can do something like add a > > period "." to the end of the line, and then the linebreak is properly > > recognized. However, simply adding a space character doesn't do the > > trick. > > > It seems that if the line ends with a ?> tag, the line break is > > ignored. I'm not sure why this is the case. > > > I don't really want to put a period at the end of each line though, so > > if anyone knows how to solve this, I'd greatly appreciate it! > > > Cheers, > > Steve > > > On Apr 2, 3:23 pm, Steve the Canuck <steve.san...@gmail.com> wrote: > >> No, it seems not, other than the first linebreak. The email comes out > >> as: > > >> A goalie has applied to play in your booking: > > >> From: 2009-04-03 10:00:00 To: 2009-04-03 11:00:00At: Varsity ArenaFor: > >> Ice Hockey, Shinny, Level > >> Chttp://goaliegigs.local/frontend_dev.php/goalies/apply-for-booking/1 > > >> It looks like I have to put in two line breaks for each line break I > >> want to see?! > > >> On Apr 2, 1:13 pm, FÁSI Gábor <maerl...@gmail.com> wrote: > > >> > Do you get the linebreaks in the source? You can check it with the > >> > 'show original' menuitem under the downarrow. > > >> > On Thu, Apr 2, 2009 at 18:46, Steve the Canuck <steve.san...@gmail.com> > >> > wrote: > > >> > > Hi, > > >> > > I am sending plain text emails from my app using Swift Mailer. The > >> > > email bodies are all stored in partials. What I am noticing is that > >> > > the line breaks are not in the email when the email is received. For > >> > > example: > > >> > > A goalie has applied to play in your booking: > > >> > > From: <?php echo $reservation->getStartTime() ?> To: <?php echo > >> > > $reservation->getEndTime() ?> > >> > > At: <?php echo $reservation->getFacility()->getName() ?> > >> > > For: <?php echo $reservation->getRefEventCategory() ?>, <?php echo > >> > > $reservation->getRefEventType() ?>, <?php echo $reservation- > >> > >>getRefLevel() ?> > >> > > <?php echo url_for('@reservationApply?resId='.$reservation->getId(), > >> > > true) ?> > > >> > > In the above email, all the lines are sandwiched together when I > >> > > receive it, and the line breaks I put in are not being applied. Is > >> > > there anything I need to do? I am both sending the emails and viewing > >> > > them using Gmail. > > >> > > Steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---