I am using Uniform for sending emails.
However, when the recipient is using a regular Gmail account, they receive a warning that the email is not secure. Is there a way to resolve this issue?
Additionally, is there a way to change the profile picture when an email is received?
controllers
<?php
use Uniform\Form;
return function ($kirby)
{
$form = new Form([
'name' => [
'rules' => ['required'],
'message' => 'Name is required',
],
'email' => [
'rules' => ['required', 'email'],
'message' => 'Email is required',
],
'phone' => [
'rules' => ['required'],
'message' => 'Phone is required',
],
'inquiring_product' => [
'message' => 'Inquiring product is required',
],
'product_use' => [
'message' => 'Product use is required',
],
'quantity' => [
'message' => 'Quantity is required',
],
'qna' => [
'message' => 'Q&A is required',
],
]);
if ($kirby->request()->is('POST')) {
$form->emailAction([
'to' => 'order@post-standards.com',
'from' => 'noreply@post-standards.com',
'bcc' => get('email'),
'subject' => '[Post Standards] 새 프로젝트 의뢰',
]);
}
return compact('form');
};
Thank you.