|Type||Topic||Plugin||Version||macOS||Windows||Linux||Console & Web||iOS|
|class||CURL||MBS CURL Plugin||14.3||Yes||Yes||Yes||Yes||No|
dim e as new CURLEmailMBS
e.SetFrom "email@example.com", "christian Müller"
e.Subject = "Hello World ☺️"
e.SMTPPassword = "xxx"
e.SMTPUsername = "xxx"
e.SetServer "smtp.test.test", true
e.AddTo "firstname.lastname@example.org", "Test Müller"
e.PlainText = "Hello World," + EndOfLine + "Smilies: ☺️ 😘 😄"
dim c as new CURLSMBS
if c.SetupEmail(e) then
dim er as Integer = c.Perform
if er = 0 then
MsgBox "Email sent"
Please make sure you set from, to, subject, plaintext to have a minimum email always.
If your email misses required fields, the email server may silently discard it.
- 13 properties
- property Attachmentcount as Integer
- property BoundaryName as String
- property HTMLText as String
- property InReplyTo as String
- property MessageID as String
- property PlainText as String
- property RichText as String
- property Server as String
- property SMTPPassword as String
- property SMTPServer as String
- property SMTPUsername as String
- property Subject as String
- property UseSSL as Boolean
- 20 methods
- method AddAttachment(data as MemoryBlock, name as string, type as string = "", InlineID as string = "")
- method AddAttachment(data as string, name as string, type as string = "", InlineID as string = "")
- method AddAttachment(file as FolderItem, name as string = "", type as string = "", InlineID as string = "")
- method AddBcc(email as string, name as string)
- method Addcc(email as string, name as string)
- method AddHeader(header as string)
- method AddReplyTo(email as string, name as string)
- method AddTo(email as string, name as string)
- method Bccs as String()
- method ccs as String()
- method clearAttachments
- method ClearHeaders
- method clearRecipients
- method constructor(Encoding as string = "UTF-8")
- method EmailSource as string
- method Headers as String()
- method ReplyTOs as String()
- method SetFrom(email as string, name as string)
- method SetServer(server as string, UseSSL as boolean)
- method TOs as String()
This class has no sub classes.
Some examples which use this class:
- /CURL/Google Mail/Send email for google mail
- /CURL/Send Email/MassEmailer
- /CURL/Send Email/Send email
- /CURL/Send Email/Send Email in Background async
The items on this page are in the following plugins: MBS CURL Plugin.
MBS Xojo blog