Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
mail not send
  • Please tell me what could be the problem on localhost and send mail on hosting there, although like all works no errors. 


    $email = \Email\Email::forge()
                            ->from(\Fuel\Core\Input::post('email'))
                            ->to('bogachev78@gmail.com')
                            ->subject(\Fuel\Core\Input::post('name'))
                            ->body(\Fuel\Core\Input::post('body'))
                            ->send();

  • Apart from the fact that you should NEVER use the \Fuel\Core namespaces in your code, this looks ok.

    But you can't see anything by just looking at the code? Which email transport is configured? SMTP via localhost? Something else?

    Since you have no errors, I am pretty sure email is delivered to whatever you have configured, what happens after that is beyond the code.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion