Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7079789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:42:54+00:00 2026-05-28T06:42:54+00:00

i am following this tutorial: http://tutorial.symblog.co.uk/docs/validators-and-forms.html at the swift mailer part i am not

  • 0

i am following this tutorial:

http://tutorial.symblog.co.uk/docs/validators-and-forms.html

at the swift mailer part i am not getting the envelope icon in the developer bar. i am following the tutorial on my dev box so it wont send the actual email therefore i must get the envelope?

here my app/config/parameters.ini:

mailer_transport  = "gmail"
mailer_encryption = "ssl"
mailer_auth_mode =  "login"
mailer_host       = "smtp.gmail.com"
mailer_user       = "myemail@host.net"
mailer_password   = "mypassword"

then i have src/Blogger/BlogBundle/Controller/PageController.php:

public function contactAction()
{
   #return $this->render('BloggerBlogBundle:Page:contact.html.twig');
   $enquiry = new Enquiry();
   $form = $this->createForm(new EnquiryType(), $enquiry);

   $request = $this->getRequest();
   if ($request->getMethod() == 'POST')
   {
       $form->bindRequest($request);

       if ($form->isValid())
       {
         // Perform some action, such as sending an email
         $message = \Swift_Message::newInstance()
        ->setSubject('Contact enquiry from symblog')
        ->setFrom('enquiries@symblog.co.uk')
        ->setTo($this->container->getParameter('blogger_blog.emails.contact_email'))
        ->setBody($this->renderView('BloggerBlogBundle:Page:contactEmail.txt.twig', array('enquiry' => $enquiry)));
        $this->get('mailer')->send($message);

        $this->get('session')->setFlash('blogger-notice', 'Your contact enquiry was successfully sent. Thank you!');


         // Redirect - This is important to prevent users re-posting
         // the form if they refresh the page
         return $this->redirect($this->generateUrl('BloggerBlogBundle_contact'));
       }
    }


return $this->render('BloggerBlogBundle:Page:contact.html.twig', array(
    'form' => $form->createView()
));

after this i have everything like they have it,what am i missing?
please help?
thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:42:55+00:00Added an answer on May 28, 2026 at 6:42 am

    You don’t see the email icon because there is no email sent in the current request.

    Actually, you’re redirecting the user after sending the email so the request you see in the debug toolbar is the one after the one in which you send the email.

    If you want to see the sent email, you have to go in the profiler history:

    1. Go to the profiler (click one of the links in the bar)
    2. Let the search form of the left sidebar empty and click its “search” button: you will get the 10 last requests
    3. Pick the request corresponding to the one sending the email
    4. You can now examine this request and the sent email should be available
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am following this tutorial http://static.springsource.org/docs/Spring-MVC-step-by-step/part4.html to try and learn Spring. Everything worked fine
Following this tutorial http://netbeans.org/kb/docs/javaee/maven-osgiservice-cdi.html I have managed to create a simple OSGI bundle and
http://www.codinghorror.com/blog/2008/04/setting-up-subversion-on-windows.html I am following this as a guide to install subversion. The tutorial at
I am following this tutorial: http://docs.djangoproject.com/en/dev/ref/contrib/messages/ but I get this error: Error: No module
I was following this tutorial : http://pronewb.com/mongodb-as-in-humongous-not-retarded . All was well until the I
I am following this tutorial :- http://blogs.oracle.com/enterprisetechtips/entry/true_abstraction_composite_ui_components But it's not working for me. This
I was following this tutorial: http://www.marcofolio.net/webdesign/a_fancy_apple.com-style_search_suggestion.html And checking out the demo here: http://qpoit.com/marcofolio_demo/apple_search/ I
Following this tutorial: http://www.vogella.de/articles/AndroidServices/article.html#receiver I created my own project. Manifest: <?xml version=1.0 encoding=utf-8?> <manifest
I'm following this tutorial http://msdn.microsoft.com/en-us/library/bb458038.aspx to create a VsPackage Setup. In the part of
I am following this tutorial: http://www.9lessons.info/2011/03/live-table-edit-with-jquery-and-ajax.html My addition is most content is ajax/json/dynamic. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.