mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-02 22:57:33 -05:00 
			
		
		
		
	
						commit
						c02538cd50
					
				@ -152,8 +152,8 @@ class CompanySettings extends BaseSettings
 | 
				
			|||||||
    public $email_sending_method = 'default'; //enum 'default','gmail' //@implemented
 | 
					    public $email_sending_method = 'default'; //enum 'default','gmail' //@implemented
 | 
				
			||||||
    public $gmail_sending_user_id = '0'; //@implemented
 | 
					    public $gmail_sending_user_id = '0'; //@implemented
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public $reply_to_email = ''; //@TODO
 | 
					    public $reply_to_email = ''; //@implemented
 | 
				
			||||||
    public $reply_to_name = ''; //@TODO
 | 
					    public $reply_to_name = ''; //@implemented
 | 
				
			||||||
    public $bcc_email = ''; //@TODO
 | 
					    public $bcc_email = ''; //@TODO
 | 
				
			||||||
    public $pdf_email_attachment = false; //@implemented
 | 
					    public $pdf_email_attachment = false; //@implemented
 | 
				
			||||||
    public $ubl_email_attachment = false; //@implemented
 | 
					    public $ubl_email_attachment = false; //@implemented
 | 
				
			||||||
 | 
				
			|||||||
@ -98,11 +98,17 @@ class NinjaMailerJob implements ShouldQueue
 | 
				
			|||||||
            $this->nmo->mailable->replyTo($this->company->owner()->email, $this->company->owner()->present()->name());
 | 
					            $this->nmo->mailable->replyTo($this->company->owner()->email, $this->company->owner()->present()->name());
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        $this->nmo->mailable->bcc('poop@gmail.com', 'hi');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        $bcc_list = [];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (strlen($this->nmo->settings->bcc_email) > 1) {
 | 
					        if (strlen($this->nmo->settings->bcc_email) > 1) {
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
            $this->nmo->mailable->bcc(explode(",", $this->nmo->settings->bcc_email));
 | 
					            foreach(explode(",", $this->nmo->settings->bcc_email) as $bcc){
 | 
				
			||||||
 | 
					                $bcc_list[] = [$bcc, 'Blind Copy'];
 | 
				
			||||||
 | 
					            } 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            // $this->nmo->mailable->bcc($bcc_list);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -112,6 +118,7 @@ class NinjaMailerJob implements ShouldQueue
 | 
				
			|||||||
            
 | 
					            
 | 
				
			||||||
            Mail::mailer($this->mailer)
 | 
					            Mail::mailer($this->mailer)
 | 
				
			||||||
                ->to($this->nmo->to_user->email)
 | 
					                ->to($this->nmo->to_user->email)
 | 
				
			||||||
 | 
					                ->bcc($bcc_list)
 | 
				
			||||||
                ->send($this->nmo->mailable);
 | 
					                ->send($this->nmo->mailable);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            LightLogs::create(new EmailSuccess($this->nmo->company->company_key))
 | 
					            LightLogs::create(new EmailSuccess($this->nmo->company->company_key))
 | 
				
			||||||
 | 
				
			|||||||
@ -80,9 +80,6 @@ class TemplateEmail extends Mailable
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        $this->from(config('mail.from.address'), $this->company->present()->name());
 | 
					        $this->from(config('mail.from.address'), $this->company->present()->name());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // if (strlen($settings->bcc_email) > 1)
 | 
					 | 
				
			||||||
        //     $this->bcc(explode(",",$settings->bcc_email), 'BCC');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        $this->subject($this->build_email->getSubject())
 | 
					        $this->subject($this->build_email->getSubject())
 | 
				
			||||||
            ->text('email.template.plain', [
 | 
					            ->text('email.template.plain', [
 | 
				
			||||||
                'body' => $this->build_email->getBody(),
 | 
					                'body' => $this->build_email->getBody(),
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user