Category : email

I keep getting this error when trying to send e-mail with Gsuite, i have less secure aps on and know that the settings are correct, it just studently started doing this. "Connection could not be established with host smtp.gmail.com :stream_socket_client(): SSL context creation failure" I have also tried to make a wrong username and password, ..

Read more

i get below error when trying to create RESET PASSWORD feature. this is my .env : MAIL_MAILER=smtp MAIL_HOST=eoptronic.com MAIL_PORT=465 [email protected] MAIL_PASSWORD="******" MAIL_ENCRYPTION=ssl [email protected] MAIL_FROM_NAME="${APP_NAME}" i also did adding this code in config/mail.php : ‘stream’ => [ ‘ssl’ => [ ‘verify_peer’ => false, ‘verify_peer_name’ => false, ‘allow_self_signed’ => true, ], ], ‘from’ => [ ‘address’ => ..

Read more

I have the following data : array:2 [ 0 => array:2 [ 0 => "[email protected]" 1 => "[email protected]" ] 1 => array:1 [ 0 => "[email protected]" ] ] And have the following data in my database : +—————-+———————————————————–+ | id_filiale | adm_emails | +—————-+———————————————————–+ |1 | ["[email protected]","[email protected]"] | |2 | ["[email protected]"] | +—————————————————————————-+ So I ..

Read more

I am new to laravel and worked through the laravel mailable doc which ended me with a mailable that looks like this: ContactMail.php: <?php namespace AppMail; use httpEnvRequest; use IlluminateBusQueueable; use IlluminateContractsQueueShouldQueue; use IlluminateMailMailable; use IlluminateQueueSerializesModels; class ContactMail extends Mailable implements ShouldQueue { use Queueable, SerializesModels; public function __construct() { // } public function build() ..

Read more

Recently I have been working on a laravel project that has functionality of sending email through smtp of gmail. So far so good with local development server but the problem arises with production server. Error: Swift_TransportException Connection could not be established with host smtp.gmail.com :stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Connection refused) Note: I am ..

Read more

i am sending two mails after payment is successfuly done so it is taking too much time i try to used laravel mail queue but one mail is sending fine the other just not this is my code. //controller public function saveData(Request $request){ SendEmailJob::dispatch($mailBody, 0, $request->email); } //mail public function build() { if ($this->val == ..

Read more

In Laravel I’m using a mailable with postmark driver (API) for sending an email. It looks like this: <?php namespace AppMail; use IlluminateBusQueueable; use IlluminateContractsQueueShouldQueue; use IlluminateMailMailable; use IlluminateQueueSerializesModels; class SendMail extends Mailable implements ShouldQueue { use Queueable, SerializesModels; public $mailable; public $email; public $media; public $vCalendarName; public $body; public $entity_id; public $entity_type = ‘AppDomainMailingModelsMailable’; ..

Read more

i have an email send using ajax laravel, in controller file public function SendEmailByLaravel(Request $request) { $data = [ ‘subject’ => $request->get(‘subject’), ’email’ => $request->get(’email’), ‘body’ => $request->get(‘body’), ‘image’ => $request->get(‘image’) ]; //dd($subject . " " . $email . " " . $body . " " . $image); //dd($data[‘subject’]); Mail::to($data[’email’])->send(new PersonalMail($data)); } and in mail ..

Read more

I was trying to make some emails to send when someone register. here’s my code AppHttpApiNotificationEmail <?php namespace AppHttpApiNotification; use AppAbstractsHttpApiController; use AppNotificationsEmailEmailNotification; use AppHttpRequestsEmailEmail as Request; use IlluminateSupportFacadesMail; class Email extends ApiController { /** * email sent. * * @param Request $request * * @return Response */ public function sent(Request $request) { $to = ..

Read more

I have applied Laravel Notifications email template to send email when a comment is applied. Here the code: $mailmessage= (new MailMessage) ->line( __(‘messages.hello’).’ ‘.$this->arr[‘user’].’,’) ->line($this->arr[‘created_by’].’ ‘.__(‘messages.comment_’.$this->arr[‘function_name’].’_you_owner’,[‘task_name’=>$this->arr[‘function_title’]] )) ->line(new HtmlString(‘<div class="lightgreylayer">’.$this->arr[‘comment’].'<div>’)) ->action(__(‘titles.view_’.$this->arr[‘function_name’]), url($link)); All works fine except for a class lightgreylayer I applied to a single line. the class is applied, but to all the following ..

Read more