Написать часть проекта для отправки писем по email
Написать часть проекта для отправки писем по email с заказом клиенту.
Детально описание реализации как мне видится.
Файл с интерфейсами чтобы разработчику было понятно прилагается. (там пустые интерефейсы без реализации)
Также должны быть написаны тесты.
Описание:
- обработать данные от пользователя
- номер заказа
- тема письма
- текст письма
- список ID файлов
- получить данные по заказу (в нем есть адрес куда отправить письмо)
- проверить принадлежит ли заказ работнику который отправляет письмо
- получить массив файлов которые требуется отправить
- проверить что файлы связаны с заказом
- создать объект письма
- заказ
- вложения
- тема
- текст
- отправить письмо через PHPMailer
- записать отправленное письмо в БД
Техническая часть:
1. /handler/room/ArtistHandler.php
добавить обработку поступившего запроса от пользователя
protected function methodSendSketch
2. /module/
добавить новый модуль sketch по примеру attachment
3. /module/mail
добавить объект MailMessageObj с нужными полями для отправки письма
class MailMessageObj {
$subject
$text
$attachment
$to
}
4. /module/mail
добавить класс MailGenerator для генерации объекта MailMessageObj
на вход принимает:
- объект OrderObj
- массив объектов SketchObj
- тема письма
- текст письма
5. /module/mail/MMail.php
добавить метод для отправки письма, на вход принимает MailMessageObj, отправка через PHPMailer (smtp)
6. /module/base/table/SendMailTl.php
класс для записи отправленного письма в БД
Applications 1
Current freelance projects in the category PHP
Admin panel for an article websiteGood day. It is necessary to write an admin panel for a gaming article website (this website - https://themeforest.net/item/goodgames-portal-store-html-gaming-template/17704593) The admin panel should include: 1. **User Management:** - Creating new users. - Editing… HTML and CSS, PHP |
Laravel + VueJS + InertiaJSGood day, the project is written, it is working and ready to launch. Except for one nuance. SSR(Server Side Rendering) works very slowly, when launching a bot to check the load - the site crashes after 3-4 minutes. If you restart SSR during the check, it works but very slowly.… JavaScript, PHP ∙ 2 proposals |
Change the logic of the promotion 1+1=3Video about what needs to be done https://www.loom.com/share/e73bc4b1b04c49f7b78acf95e9ce7d15?sid=73b5c8ee-c7c5-4518-86ef-acfc7ffda194 In short, the logic of the promotion 1+1=3 needs to be changed. Currently, when adding 2 pizzas of 40cm, a modal pops up where the user can… PHP ∙ 1 proposal |
Integrate 1c and WoocommerceIt is necessary to implement the import of goods from 1C to the Woocommerce website, as well as their updates. An important point is that there are a number of custom meta fields made through ACF, they also need to be imported. Import all media files for the product (Main photo,… 1C, PHP ∙ 1 proposal |
Laravel developer with skills working with SphinxHello, I am looking for a Laravel developer who can help improve the current functionality of one of the projects. Skills in working with Sphinx are important, as well as the ability to work with JS at a more or less basic level. Please specify the cost of 1 hour of your work in… PHP, Web programming ∙ 2 proposals |