Property |
Description |
AttachmentPath |
The
physical path where attachments will be saved.
Example (ASP):
<% Obj.AttachmentPath
= "c:\myfolder\attachments" %>
Example (ColdFusion):
<CFSET Obj.AttachmentPath = "c:\myfolder\attachments">
|
AttachmentPathError |
Returns
1 if any error occurred for AttachmentPath otherwise
0.
Example (ASP):
<% if Obj.AttachmentPathError = 1
then
Response.Write
Obj.AttachmentPathErrorReason
end if %>
Example (ColdFusion):
<CFIF #Obj.AttachmentPathError# EQ 1>
<CFOUTPUT>#Obj.AttachmentPathErrorReason#</CFOUTPUT>
</CFIF>
|
AttachmentPathErrorReason |
Reports
any error that occurred for AttachmentPath.
Example (ASP):
<% if Obj.AttachmentPathError = 1
then
Response.Write
Obj.AttachmentPathErrorReason
end if %>
Example (ColdFusion):
<CFIF #Obj.AttachmentPathError# EQ 1>
<CFOUTPUT>#Obj.AttachmentPathErrorReason#</CFOUTPUT>
</CFIF>
|
AttachmentPathHTTP |
URL
for the AttachmentPath where attachments are saved.
This is used to handle the case of embedded images.
Example (ASP):
<% Obj.AttachmentPathHTTP
= "http://advancedwebmail.com/attachments" %>
Example (ColdFusion):
<CFSET Obj.AttachmentPathHTTP = "http://advancedwebmail.com/attachments">
|
DeleteFile |
This
property is used to set flag whether to delete the file
from server after downloading through Download or DownloadAs
methods. Valid values are
TRUE if this flag is set as
TRUE then component will delete the file from server
after downloading
FALSE (default) if this flag is set as FALSE
then component will not delete the file from server
after downloading
Example (ASP):
<% Obj.DeleteFile
= true %>
NOTE: Can only be used for ASP |
DownloadedUIDs |
This
attribute is optional. The UIDs of messages previously
downloaded from server. Used to determine which messages
are new. We can also write it as 3:8 means do not download
messages with UIDs starts from 3 and ends at 8. Also
3,8 (comma separated list) can be given which means
do not download messages with sequence number 3 and
8 only.
Example (ASP):
<% Obj.DownloadedUIDs
= "2,5,8,12,17" %>
Example (ColdFusion):
<CFSET Obj.DownloadedUIDs = "2,5,8,12,17">
|
DownloadForceFully |
This
property is used to inform AdvFile component whether
to download file forcefully through Download or DownloadAs
methods. Valid values are
TRUE if this flag is set as
TRUE then component will download file forcefully
FALSE (default) if this flag is set as
FALSE then component will not download file forcefully,
browser will decide whether to display or download the
file
Example (ASP):
<% Obj.DownloadForceFully
= true %>
NOTE: Can only be used for ASP.
|
ErrorReason |
Reports
any error that occurred during the request.
Example (ASP):
<% if Obj.IsError = 1 then
Response.Write
Obj.ErrorReason
else
No Error
Occurred
end if %>
Example (ColdFusion):
<CFIF #Obj.IsError# EQ 1>
<CFOUTPUT>#Obj.ErrorReason#</CFOUTPUT>
<CFELSE>
<CFOUTPUT>No
Error Occurred</CFOUTPUT>
</CFIF>
|
IsError
|
Returns
1 if any error occurred during the request otherwise
0.
Example (ASP):
<% if Obj.IsError = 1 then
Response.Write
Obj.ErrorReason
else
No Error
Occurred
end if %>
Example (ColdFusion):
<CFIF #Obj.IsError# EQ 1>
<CFOUTPUT>#Obj.ErrorReason#</CFOUTPUT>
<CFELSE>
<CFOUTPUT>No
Error Occurred</CFOUTPUT>
</CFIF>
|
MessageNumber |
Required
for Delete, GetHeaderOnly (optional, if not specified then all
messages are selected) and GetAll (optional, if not specified then all
messages are selected). Message sequence numbers of
messages, for performing action. We can also write it
as 3:8 means messages with sequence number starts from
3 and ends at 8. Also 3,8 (comma separated list) can
be given which means messages with sequence number 3
and 8 only.
Example (ASP):
<% Obj.MessageNumber
= "2,5,8,12,17" %>
Example (ColdFusion):
<CFSET Obj.MessageNumber = "2,5,8,12,17">
|
OrderBy
|
Required
for GetHeaderOnly (optional),
GetAll (optional)
for sorting of mails. If not specified then no sorting
is performed and mail messages are returned in order
as returned by POP3 server. Valid sorting criteria are
Subject_ASC
Subject_DESC
From_ASC
From_DESC
To_ASC
To_DESC
Date_ASC
Date_DESC
Size_ASC
Size_DESC
Attachment_ASC (mails without attachment
are returned first)
Attachment_DESC (mails with
attachment are returned first)
Example (ASP):
<% Obj.OrderBy =
"size_desc" %>
Example (ColdFusion):
<CFSET Obj.OrderBy = "size_desc">
|
Password
|
POP3
account password, required for authentication.
Example (ASP):
<% Obj.Password
= "mypassword" %>
Example (ColdFusion):
<CFSET Obj.Password = "mypassword">
|
Port
|
This
property is used to specify POP3 server port. If not
specefied then default port 110
is used.
Example (ASP):
<% Obj.Port = 8110
%>
Example (ColdFusion):
<CFSET Obj.Port = 8110>
|
ServerName |
This
property is used to specify POP3 server name or IP address.
Example (ASP):
<% Obj.ServerName
= "aspfusion.net" %>
Example (ColdFusion):
<CFSET Obj.ServerName = "aspfusion.net">
|
SortFirst
|
Required
for GetHeaderOnly (optional)
for sorting mail messages first and then return required
mail messages. This parameter is only valid for GetHeaderOnly
and ignored in case of GetAll. If parameter MessageNumber
contains 1:5 and this parameter is set as TRUE, the
component will fetch all messages first and will sort
on given sorting criteria and will return mail messages
that come in sequence from 1 to 5, and if this parameter
is set as FALSE, the component will fetch messages from
1 to 5 and will sort on given sorting criteria and will
return mail messages. Valid values are
TRUE if this value is set
as TRUE then component will fetch all messages, perform
sorting and then will return required messages
FALSE (default) if this value is set as TRUE
then component will fetch required mesages, perform
sorting and then will return those messages
Example (ASP):
<% Obj.SortFirst
= true %>
Example (ColdFusion):
<CFSET Obj.SortFirst = true>
|
Timeout
|
This
property is used to set request timeout value. If not
specified then default timeout value 60 is used.
Example (ASP):
<% Obj.Timeout =
120 %>
Example (ColdFusion):
<CFSET Obj.Timeout = 120>
|
Type
|
This
property is used to set content type for the file to
be downloaded through Download or DownloadAs methods.
Default value is "application/octet-stream".
Example (ASP):
<% Obj.Type = "application/zip"
%>
NOTE: Can only be used for ASP.
|
UserName
|
POP3
account user name, required for authentication.
Example (ASP):
<% Obj.UserName
= "myusername" %>
Example (ColdFusion):
<CFSET Obj.UserName = "myusername">
|