Create php MVC app. Add user and send email via php

Главная » Tutorials » PHP+MySQL » Create php MVC app. Add user and send email via php

Today we will make add new use feature in our application. Also we consider capability sending mails via php

To send email via php you need to use mail() function. It is important to notice that actually SMTP sends mails. That’s why you can’t send mails in your local computer. If you send html mail, you must pass headers parameter to mail() function besides email receiver, subject and mail text. Headers “help” mail apps and services display html email correctly, not html source code. You can make html mails nice with inline css.

Подписаться на рассылку

Будьте в курсе - получайте последние статьи на свой email

Ваша подписка успешно оформлена

Pin It on Pinterest

Share This