I also had problems with that, so i changed to smtp. You make an account to any mail system [i recommend gmail] and you add login information in config. You can modify the sender name and email on the function above, so you don't have to worry that your users will recive mails from [email protected], you can make them recive mail from [email protected].
Still, if you prefer the default mail, i suggest you to contact your hosting provider. They might have some restrictions and may be able to walk you through configuring your email.
Thanks for your reply. I ended up changing to Gmail smtp and it works fine, but I'm still curious as to why it wouldn't work with the standard php mail function.
i believe homestead doesn't come with sendmail installed, so php can't send email's directly (as per default config).
So you will either have to ssh to your VM and install sendmail via the package manager, or edit the homestead.rb to do it for you, or even create your own default vm box based on homestead.
try to use this , it work for me http://code.tutsplus.com/tutorials/sending-emails-with-laravel-4-gmail--net-36105
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community