This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

roger.creasy5931
roger.creasy5931

I cannot get email to send. I am an extreme nube. I did search, for longer than I should. But, I just cannot find any complete instructions.

The documentation tells me how to implement the Mail::send method, but not how to call it. Can anyone help? I have set this up in Laravel 4; I just cannot figure out how to do it in October.

Last updated

Flynsarmy
Flynsarmy

Open /app/config/mail.php and set your driver to 'smtp'. Set your mailgun credentials as provided.

roger.creasy5931
roger.creasy5931

Flynsarmy, I tried your suggestion. Emails are still not sent.

Where is Mail::send implemented? If it is not, and I need to build it, where should I place the logic? In my Laravel implementation it is in my controller. In October, there are multiple controllers....reminder, I am a newbie to both Laravel and October (and somewhat to MVC).

Last updated

Flynsarmy
Flynsarmy

Mail is a facade. Just add use Mail to the top of whatever file you're calling it Mail::send() in.

Last updated

roger.creasy5931
roger.creasy5931

Flynsarmy, thanks. But, where do I put the call to Mail::send() ? How do I call that function, and send it variables, after I have the function after it is placed wherever I put it?

daftspunky
daftspunky

There are now instructions that tell you to ensure you have the October.Drivers plugin installed when you open the Mail Settings page.

1-6 of 6

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.