Mailer::Message
Inherits Reference / Object
Constructors
new
SourceInstance methods
attachment=(attachment : Attachment)
Add Attachment Can be called mutlple times to add multiple attachments
email.attachment = Mailer::Attachment.new(filename:"logo.jpg" , path: "./storage/public/images/logo.jpg")
attachments
Sourcebcc
Sourcecc
Sourcefrom
Sourcefrom=(from : String)
Sourcehtml
Sourcehtml=(html : String)
Sourceinline
Sourceinline=(attachment : Attachment)
Add Inline attachment (usually image) Can be called mutlple times to add multiple attachments
<p>Some content <image src="cid:hello.jpg" />
email.attachment = Mailer::Attachment.new(filename:"hello.jpg" , path: "./storage/public/images/hello.jpg")
subject
Sourcesubject=(subject : String)
Sourcetext
Sourcetext=(text : String)
Sourceto(email, name)
Add recipient with name
email = Mailer::Mailgun::Message.new
email.to("user@email.com", "Cris Ward")
to
Source