Class: MailMsg

Class:MailMsg
Description:Class for one mailmessage
File:/include/mailmsg.php
CVS Version:1.3
CVS Modification:2004-02-17 13:27
Variables:
NameTypeDefaultDescription
sSubjectStringSubject of message
aToArrayArray with addresses
bHasPlainPartBooleanfalseHas a Plain/Text part
bHasHTMLPartBooleanfalseHas a HTML/Text part
sPlainPartStringThe Plain part
sHTMLPartStringThe HTML part
sToStringString with all the TO-addresses
sToBCCStringString with all the BCC-addresses
sToCCStringString with all the CC-addresses
sFromStringEmail send from
iPriorityInteger3Priority (default 3 - normal)
sHeadersStringGenerated headers
sBodyStringGenerated Body
aAttachmentsArrayArray with attachments
sBoundaryStringBoundary 1
sBoundary2StringBoundary 2

MailMsg

Description:Constructor
Returns: [Undefined]
Arguments:
NameTypeOptionalDescription
sSubjectStringSubject on message
sFromEmailStringThe senders email
sFromNameStringThe senders name

vAddRecipient

Description:Adds a recipient to the mail
Returns: [Void]
Arguments:
NameTypeOptionalDescription
sEmailStringRecipients Email
sTypeString[optional] What way to send (to,cc,bcc)
sNameString[optional] The recipients name

bAddPlainPart

Description:Adds the plainpart to the email message
Returns: [Boolean] true on success
Arguments:
NameTypeOptionalDescription
sContentStringthe plain content

bAddHTMLPart

Description:Adds the HTMLpart to the email message
Returns: [Boolean] true on success
Arguments:
NameTypeOptionalDescription
sContentStringthe plain content

vGenerateMailMsg

Description:Generates all the mainmessage information (headers, body, etc)
Returns: [Void]
Arguments:
NameTypeOptionalDescription

bAddAttachment

Description:Add an attachment to the message
Returns: [Boolean] true on success False if file is'nt found
Arguments:
NameTypeOptionalDescription
sFileStringFile to send
sFileNameString[optional] Filename of the file you want to send (if diffrent then the real file)

bSendMail

Description:Sends the mailmessage
Returns: [Boolean] true if the message is send successfully
Arguments:
NameTypeOptionalDescription