CF_MAILPARAM
CF_MAILPARAM can either attach a file or add a header to mail message. If you use CF_MAILPARAM, it is nested within a CF_MAIL tag. You can use more than one CF_MAILPARAM tags within a CF_MAIL tag in order to attach one or more files and headers.
See also CF_MAIL.
Syntax
<CF_MAIL
TO="recipient"
SUBJECT="msg_subject"
FROM="sender"
...more attibutes...
>
<CF_MAILPARAM
FILE="file-name"
DELETEFILE="yes/no">
or
<CF_MAILPARAM
NAME="header-name"
VALUE="header-value">
...
</CF_MAIL>
FILE
Required. If you do not specify the NAME attribute. Attaches the specified file to the message, you can use this to specify more than one file attachments. This attribute is mutually exclusive with the NAME attribute.
DELETEFILE
Optional. Indicates whether to delete the attachment file specified in FILE attribute. Valid values are
- Yes
tag will delete attachment file after sending mail
- No (default)
will not delete attachment file after sending mail
NAME
Required. If you do not specify the FILE attribute. Specifies the name of the header, you can use this to specify message extra headers. Header names are case insensitive. This attribute is mutually exclusive with the FILE attribute.
VALUE
Optional. Indicates the value of the header specified in NAME attribute.
Example
<!--- This view-only example shows the use of CF_MAILPARAM --->
<HTML>
<HEAD>
<TITLE>CF_MAILPARAM Example</TITLE>
</HEAD>
<BODY>
<H3>CF_MAILPARAM Example</H3>
<P>This view-only example shows the use of CF_MAILPARAM.
If your ASPFusion SMTP mail settings are configured successfully,
you will be able to use this code to send simple email.</P>
<CF_MAIL TO="to@aspfusion.net"
FROM="from@aspfusion.net"
SUBJECT="this is testing mail message">
<CF_MAILPARAM NAME="Reply-To"
Value="replyto@aspfusion.net">
<CF_MAILPARAM FILE="c:\myfolder\myfile.txt">
<CF_MAILPARAM FILE="c:\myfolder\newfile.log"
DELETEFILE="yes">
This is testing message sent by CF_MAIL (AdvSMTP)
with two file attachments.
</CF_MAIL>
</BODY>
</HTML>