Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
mail not send
bogachev
May 2014
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();
Harro
May 2014
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.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
May 2014