Buy now Customer Login

Online Manual / Configuration Files / Limiting what files can be uploaded.

Command: sendMsg
Usage:

Allows you to send an e-mail message.

Arguments:

  • page="<form page number>"
    The script will send the form results to an e-mail address after this form page.

  • attachFiles="<url|file list>"
    Specify what files you would use to attach to the message. You can specify more than one file by seperating the list with commas. The list can consist of files stored locally or remotely.

  • attachFileUploads="<field list>"
    Specify what files you would like attached to the message. These are the files uploaded by a user so you would need to specify the names of the file fields. You can seperate the list with commas. If you just specify 'attachFileUploads' by itself, then all files uploaded by a user will be attached.

  • to="<e-mail>"
    Specify the e-mail address(es) you would like the message to be sent to. Seperate each e-mail address with a comma.

  • from="<e-mail>"
    Specify the e-mail address to display who this message is coming from.

  • replyTo="<e-mail>"
    Specify the e-mail addresses whom the recipient can reply to. Seperate each e-mail address with a comma.

  • subject="<subject>"
    Specify the subject of the e-mail message.

  • contentType="<text/html|text/plain>"
    Specify whether you want the recipient's e-mail program to display the message as plain text or HTML.

  • template="<location>"
    Specify the location of the template. This template will be used in the body of the e-mail message. Any <output>'s are converted in the template.

Example:

sendMsg page="1" attachFiles="http://ollance.com/mailpro/images/logo.gif" attachFileUploads to="Ollance.com <info@ollance.com>" from="ollance <info@ollance.com>" replyTo="ollance <info@ollance.com>" subject="File Attachment From [output name='Name']" template="/home/ollance/public_html/mailpro/templates/recipient.html" contentType="text/html"

This example will e-mail "Ollance.com <info@ollance.com>" a message with all uploaded files and also attach the file logo.gif. The subject will read 'File Attachment From Someone'. And the message will be displayed in HTML.

sendMsg page="1" to="[output name='E-mail Address']" from="ollance <info@ollance.com>" replyTo="ollance <info@ollance.com>" subject="Thank you for submitting to our form!" template="/home/ollance/public_html/mailpro/templates/mailpro-php-response.html" contentType="text/html"

This example will send an e-mail address to the e-mail given in the 'E-mail Address' input from the form. The subject will read 'Thank you for submitting to our form!'. And the message will be display in HTML.