github.com/goravel/framework@v1.13.9/contracts/mail/mail.go (about) 1 package mail 2 3 //go:generate mockery --name=Mail 4 type Mail interface { 5 // Content set the content of Mail. 6 Content(content Content) Mail 7 // From set the sender of Mail. 8 From(address From) Mail 9 // To set the recipients of Mail. 10 To(addresses []string) Mail 11 // Cc adds a "carbon copy" address to the Mail. 12 Cc(addresses []string) Mail 13 // Bcc adds a "blind carbon copy" address to the Mail. 14 Bcc(addresses []string) Mail 15 // Attach attaches files to the Mail. 16 Attach(files []string) Mail 17 // Send the Mail 18 Send() error 19 // Queue a given Mail 20 Queue(queue *Queue) error 21 } 22 23 type Content struct { 24 Subject string 25 Html string 26 } 27 28 type Queue struct { 29 Connection string 30 Queue string 31 } 32 33 type From struct { 34 Address string 35 Name string 36 }