SMTPit Pro

Next Generation Email plug-in

<- Back to SMTPit Pro function list

SMTPit_SetInlineImage

Description

The SMTPit_SetInlineImage function is similar to the SMTPit_SetAttachment function. This function allows you to attach a graphic image file from your hard drive or network to the current email being sent. SMTPit Pro takes this graphic and makes it an inline graphic image for you to use in your HTML email. You must specify the full path and filename of the image. You can assign more than one file with this function by separating the file names with the paragraph mark or, if in a field, with a return. You can also reference a container field to assign an image in it. If you have Inline Images assigned in the Configuration Dialog, they will always be sent with your email, and they will be added to the email first. If you do not assign an HTML Body, then an HTML email will not be sent and these Inline Images will be ignored.

Return Type
Text
Format
SMTPit_SetInlineImage ( Image(s) ; Type ; SMTPit_Append )
Required Parameters
  • Image(s)

    Specify the Path(s) and File Name(s) of the Inline Images(s) on the Hard Drive (separate multiple Inline Images with a Paragraph Mark or Return); or specify a Container Field that holds the Inline Image.

Optional Parameters
  • Type

    The Inline Image Type; currently only "HTML" is supported. (Default is "HTML".)

  • SMTPit_Append

    Leave this in to add the(se) Inline Images(s) to the current list of Inline Images.

Related Items
SMTPit_SetInlineImageWithDialog
Examples

Example 1

Code:

SMTPit_SetInlineImage("c:\Images\logo.gif")

Result:

Sets the "logo.gif" image as an Inline Image on Windows.

Example 2

Code:

SMTPit_SetInlineImage("/Images/logo.gif")

Result:

Sets the "logo.gif" image as an Inline Image on Mac.

Example 3

Code:

SMTPit_SetInlineImage("/Thumbnails/product1.jpg¶/Thumbnails/product2.jpg")

Result:

Sets the "product1.jpg" and "product2.jpg" images as Inline Images on Mac.

Example 4

Code:

SMTPit_SetInlineImage("c:\Images\logo.gif";"HTML"; SMTPit_Append )

Result:

Appends the "logo.gif" image as an HTML Image on Windows.

Example 5

Code:

SMTPit_SetInlineImage( ImageContainerField )

Result:

Uses the image in the container field "ImageContainerField".

Example 6

Code:

SMTPit_SetInlineImage( ImageContainerField ;"HTML"; SMTPit_Append )

Result:

Appends the image in the container field "ImageContainerField".