E-Mail Sender - Examples

Table of Contents


    Send email from a text file

    Download the file MailSenderExamples.cinterface
    Download the help files and put them in your ./temp directory of your ConnectPlaza Installation: MailSenderExamplesHelpFiles.zip

    In this example we will pick up a text file and send it, via the E-Mail Sender to our email address. The text in the text file will be used as the E-Mail body.

    The File Pickup is a standard pick up:

    We place the message in msgprt0, the default message part. You can check the message in Analyze if you want, because of the Analyze Wiretap.

    Now we are going to send the message via our SMTP Server. In this example, we use our Office365 Exchange server.

    Change the email addresses and SMTP Server to your own. Save and Deploy this interface to your test environment.

    Now copy the file test.txt into the ./temp/input directory and check our e-mail. If anything is ok, you will receive an e-mail on the selected e-mail address, which could look like this:

    Send email from a text file as an attachment

    Now we want to send the text file not as body text, but as an attachment. To do this, select the E-Mail Sender and change the option MessagePart As Attachment to true.

    Save the component and deploy the interface again. Now copy the same file as before, test.txt, to the ./temp/input directory. Check your e-mail.

    Open the attachment in a text editor and you will see that it contains the text from the text file.

    Default the name of the attachment is the name of the message part, which by default was msgprt0. We can influence the name of the attachment with some properties of the message part (See E-Mail Sender)

    Send email with body and attachment

    To personalize you email when sending an attachment, You can add some body text to your email using the Body text field.

    Bundle and deploy the interface and test your software.

    If all is well you will end up with an E-Mail with an attachment and a body text.

    Copyright © 2019 ConnectPlaza.   For pricing, account management and more go to https://www.connectplaza.com

    About Connectplaza

    Si components version:   

    Lorem ipsum delore set

    Lorem ipsum delore set

    Window size is not optimal. Please enlarge for optimal experience

    No connection

    No response from the server. This window will automaticly disappear by an valid connection