Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

CURLEmailMBS.AddAttachment(data as MemoryBlock, name as string, type as string = "", InlineID as string = "")
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 14.3 Yes Yes Yes Yes No
Function: Adds an attachment to the email.
Notes:
name: The name for the attachment.
type: Optional, the mime type to use. e.g. "application/pdf" for PDF files. If missing, we use "application/octet-stream".
data: The data to include.

For best results use attachment sizes below 50 MB.
The plugin will encode your data as Base64. If you want to attach a picture, you can use PictureToPNGStringMBS (mime type "image/png") or PictureToJPEGStringMBS (mime type "image/jpeg") to encode a picture.

Version 15.0 of MBS Plugin can encode file name for preserving non AScII characters. Still for compatibility it is recommended to use simply AScII names.

If InlineID is set, we include the attachment for inlining. Please pass content ID (cID).
Empty text or no parameter gives regular attachment.
You can use AddAttachment several times to add several attachments.

See also:

Feedback, Comments & Corrections

CURLEmailMBS.AddAttachment(data as string, name as string, type as string = "", InlineID as string = "")
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 14.3 Yes Yes Yes Yes No
Function: Adds an attachment to the email.
Notes:
name: The name for the attachment.
type: Optional, the mime type to use. e.g. "application/pdf" for PDF files. If missing, we use "application/octet-stream".
data: The data to include.

For best results use attachment sizes below 50 MB.
The plugin will encode your data as Base64. If you want to attach a picture, you can use PictureToPNGStringMBS (mime type "image/png") or PictureToJPEGStringMBS (mime type "image/jpeg") to encode a picture.

Version 15.0 of MBS Plugin can encode file name for preserving non AScII characters. Still for compatibility it is recommended to use simply AScII names.

If InlineID is set, we include the attachment for inlining. Please pass content ID (cID).
Empty text or no parameter gives regular attachment.
You can use AddAttachment several times to add several attachments.

See also:

Feedback, Comments & Corrections

CURLEmailMBS.AddAttachment(file as FolderItem, name as string = "", type as string = "", InlineID as string = "")
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 16.1 Yes Yes Yes Yes No
Function: Adds an attachment to the email.
Notes:
name: The name for the attachment. If empty, version 16.2 uses file name from folderitem.
type: Optional, the mime type to use. e.g. "application/pdf" for PDF files. If missing, we use "application/octet-stream".
file: The file to use. This file is read and content used for attachment.

For best results use attachment sizes below 50 MB.
The plugin will encode your data as Base64. If you want to attach a picture, you can use PictureToPNGStringMBS (mime type "image/png") or PictureToJPEGStringMBS (mime type "image/jpeg") to encode a picture.

Version 15.0 of MBS Plugin can encode file name for preserving non AScII characters. Still for compatibility it is recommended to use simply AScII names.

If InlineID is set, we include the attachment for inlining. Please pass content ID (cID).
Empty text or no parameter gives regular attachment.
You can use AddAttachment several times to add several attachments.

See also:

Feedback, Comments & Corrections

CURLEmailMBS.AddBcc(email as string, name as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 14.3 Yes Yes Yes Yes No
Function: Adds a blind copy recipient.
Example:
dim e as new CURLEmailMBS

e.AddBcc "test@monkeybreadsoftware.test", "Test Müller"

dim Bccs() as string = e.Bccs
MsgBox Bccs(0)
Notes:
Please pass email and optionally name of recipient.
If this name contains special characters, it will be automatically encoded with UTF-8.

Feedback, Comments & Corrections

CURLEmailMBS.Addcc(email as string, name as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 14.3 Yes Yes Yes Yes No
Function: Adds a copy recipient.
Example:
dim e as new CURLEmailMBS

e.Addcc "test@monkeybreadsoftware.test", "Test Müller"

dim ccs() as string = e.ccs
MsgBox ccs(0)
Notes:
Please pass email and optionally name of recipient.
If this name contains special characters, it will be automatically encoded with UTF-8.

Feedback, Comments & Corrections

CURLEmailMBS.AddHeader(header as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 14.3 Yes Yes Yes Yes No
Function: Adds a header entry.
Example:
dim e as new CURLEmailMBS

e.AddHeader "X-company: My company, Inc."

dim Headers() as string = e.Headers
MsgBox Headers(0)
Notes:
This header is passed as is and not preprocessed.
You can use this function to pass custom headers for "X-Universally-Unique-Identifier:", "Date:", "X-Mailer:", "Message-Id:" and "Mime-Version:".
If you pass header without text following ":", the header is not included.

Feedback, Comments & Corrections

CURLEmailMBS.AddReplyTo(email as string, name as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 14.3 Yes Yes Yes Yes No
Function: Adds a recipient for a reply.
Example:
dim e as new CURLEmailMBS

e.AddReplyTo "test@monkeybreadsoftware.test", "Test Müller"

dim ReplyTos() as string = e.ReplyTOs
MsgBox ReplyTos(0)
Notes:
Please pass email and optionally name of recipient.
If this name contains special characters, it will be automatically encoded with UTF-8.

Feedback, Comments & Corrections

CURLEmailMBS.AddTo(email as string, name as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 14.3 Yes Yes Yes Yes No
Function: Adds a recipient.
Example:
dim e as new CURLEmailMBS

e.AddTo "test@monkeybreadsoftware.test", "Test Müller"

dim TOs() as string = e.TOs
MsgBox TOs(0)
Notes:
Please pass email and optionally name of recipient.
If this name contains special characters, it will be automatically encoded with UTF-8.

Feedback, Comments & Corrections

CURLEmailMBS.Bccs as String()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 14.3 Yes Yes Yes Yes No
Function: Queries list of Bcc recipients.
Example:
dim e as new CURLEmailMBS

e.AddBcc "test@monkeybreadsoftware.test", "Test Müller"

dim Bccs() as string = e.Bccs
MsgBox Bccs(0)
Notes: Entries may be encoded if necessary.

Feedback, Comments & Corrections

CURLEmailMBS.ccs as String()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 14.3 Yes Yes Yes Yes No
Function: Queries list of cc recipients.
Example:
dim e as new CURLEmailMBS

e.Addcc "test@monkeybreadsoftware.test", "Test Müller"

dim ccs() as string = e.ccs
MsgBox ccs(0)
Notes: Entries may be encoded if necessary.

Feedback, Comments & Corrections

CURLEmailMBS.clearAttachments
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 14.3 Yes Yes Yes Yes No
Function: Clears all attachments from this email.
Notes: Useful in case you want to send same email with different attachments to another recipient.

Feedback, Comments & Corrections

CURLEmailMBS.ClearHeaders
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 16.1 Yes Yes Yes Yes No
Function: Clears all headers from this email.
Notes: Useful in case you want to send same email with different headers to another recipient.

Feedback, Comments & Corrections

CURLEmailMBS.clearRecipients
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 14.3 Yes Yes Yes Yes No
Function: clears all recipients.
Notes:
Removes all TO, cc, Bcc and ReplyTO entries.
Useful in case you want to send same email to another recipient.

Feedback, Comments & Corrections

CURLEmailMBS.constructor(Encoding as string = "UTF-8")
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 14.4 Yes Yes Yes Yes No
Function: The constructor.
Notes:
Normally, ignore parameter and use UTF-8.
But alternative you can pass: UTF-8, AScII, MacRoman, Latin1 or Windows.

Feedback, Comments & Corrections

CURLEmailMBS.EmailSource as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 14.3 Yes Yes Yes Yes No
Function: Queries the source code for the email.
Notes: This is more for debugging, than for real use.

Feedback, Comments & Corrections

CURLEmailMBS.Headers as String()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 14.3 Yes Yes Yes Yes No
Function: Queries list of extra header entries.
Example:
dim e as new CURLEmailMBS

e.AddHeader "X-company: My company, Inc."

dim Headers() as string = e.Headers
MsgBox Headers(0)

Feedback, Comments & Corrections

CURLEmailMBS.ReplyTOs as String()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 14.3 Yes Yes Yes Yes No
Function: Queries list of ReplyTo recipients.
Example:
dim e as new CURLEmailMBS

e.AddReplyTo "test@monkeybreadsoftware.test", "Test Müller"

dim ReplyTos() as string = e.ReplyTOs
MsgBox ReplyTos(0)
Notes: Entries may be encoded if necessary.

Feedback, Comments & Corrections

CURLEmailMBS.SetFrom(email as string, name as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 14.3 Yes Yes Yes Yes No
Function: Sets the email from address.
Example:
dim e as new CURLEmailMBS

e.SetFrom "test@test.test", "christian Müller"
Notes: Please pass email and name of the recipient. If this name contains special characters, it will be automatically encoded with UTF-8.

Feedback, Comments & Corrections

CURLEmailMBS.SetServer(server as string, UseSSL as boolean)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 14.3 Yes Yes Yes Yes No
Function: Sets the server to use.
Example:
dim e as new CURLEmailMBS

e.SMTPPassword = "rGc3_mdyjR%k"
e.SMTPUsername = "sammler@monkeybreadsoftware.de"
e.SetServer "smtprelaypool.ispgateway.de", true
Notes:
Sets which SMTP server to use.
There are a few combinations possible.
First you can use SetServer with SSL and pass true for UseURL parameter.
Or you pass false for no SSL. Still you can use CURL's OptionFTPSSL set to 3 to allow TLS for an upgrade of the unencrypted connection to SSL later.
Some servers don't support unencrypted, SSL or TLS, so only one may work.
And ports can be difficult, too. You can use CURL OptionPort to set a port explicit or include it in the server with double colon on the end. common ports are 25, 587 or 465.

Feedback, Comments & Corrections

CURLEmailMBS.TOs as String()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CURL MBS CURL Plugin 14.3 Yes Yes Yes Yes No
Function: Queries list of TO recipients.
Example:
dim e as new CURLEmailMBS

e.AddTo "test@monkeybreadsoftware.test", "Test Müller"

dim TOs() as string = e.TOs
MsgBox TOs(0)
Notes: Entries may be encoded if necessary.

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS CURL Plugin.




Links
MBS FileMaker tutorial videos