Nova now comes with a new set of functions for use with databases based on Laravel. I’m getting to know this functionality by running through what's possible with a few practical examples. I’ve always like w3resources for presenting interesting challenges asking I query my database with raw mysql queries. Until now I have written these raw queries first in sequel pro and then using existing functionality in the style of SMVCF 2.2 (pre-nova) in models. Nova presents us with a new way to work.
After completeing the PHP email task – sort of, I never did figure out attachments – the next stage is using PHP Mailer.
PHP is a library for sending email and is widely used as using standard PHP mail() can be an over complecated minefield when anything more advanced is required. Even just sending an image requires additional headers.
It’s better to use one of the librarys already available and not try to reinvent the wheel.
Task of the day today is Email, I will be looking at how standard email is sent throught PHP and how html email can be sent too.
The basis of this is the mail() function so I will be looking at what parameters are required to make this work.
I will later be looking at how email is used in the SMVCF but this task is initialy to familiarise myself with sending email using raw php.