Package KFM

Examples of KFM.Smtp


            if (tIndex != -1) {
                tFrom = tFrom.substring(0, tIndex);
            }

            // *Send* mail via Smtp class. Yes, really, the constructor *sends* a mail.
            Smtp tMail = new Smtp(mMailHost, mAdminMail, tFrom, tSmtpMessage, true);
        }
    }
View Full Code Here


                this.makeZip(ttimestr);

                // inform user by email if requested
                if (mSmtpMessage != null)
                {
                    Smtp tMail = new Smtp(mMailHost, mAdminEmail, mFrom, mSmtpMessage, true);
                }

                // if the requested number of loops are processed, terminate
                tLoopCounter ++;
                if (mLoopInterval != -1 && tLoopCounter >= mLoopInterval)
View Full Code Here

    {
        aMessage = "Subject: "+mMailSubject + ": "+ aEvent+"\n\n"
            + KFM_DateTimeService.createTimeStamp() + ": " + aMessage;

        // *Send* mail via Smtp class. Yes, really, the constructor *sends* a mail.
        Smtp tMail = new Smtp(mMailServer,
            mReceiversMailAddress,
            mSenderMailAddress,
            aMessage,
            true /*several recipients*/);
    }
View Full Code Here

     protected void sendMail(int aCountResult){
         if (mSmtpMessage != null)
        {
            mSmtpMessage = Converter.replaceString("<resultcount>", Integer.toString(aCountResult), mSmtpMessage);
            mSmtpMessage = "Subject: " + mSmtpMessage + "\n\n" + mSmtpMessage + "\n";
            Smtp tMail = new Smtp(mMailHost, mAdminEmail, mFrom, mSmtpMessage, true);
        }

     }
View Full Code Here

        assertTrue("mServer should not be null", mServer != null);
        assertTrue("mTo should not be null", mTo != null);
        assertTrue("mFrom should not be null", mFrom != null);

        Smtp tMail = new Smtp(
            mServer,
            mTo,
            mFrom,
            tData + tBody);

        assertTrue("Expected no problems sending mails, but some problem occured",
            tMail.result() /* isOK */);

        /* now we should make sure we received the mail via POP3, etc. */
    }
View Full Code Here

        assertTrue("mServer should not be null", mServer != null);
        assertTrue("mTo should not be null", mToSeveral != null);
        assertTrue("mFrom should not be null", mFrom != null);

        Smtp tMail = new Smtp(
            mServer,
            mToSeveral,
            mFrom,
            tData + tBody,
            true /* to several receipients */);

        assertTrue("Expected no problems sending mails, but some problem occured",
            tMail.result() /* isOK */);

        /* now we should make sure we received the mail via POP3, etc. */
    }
View Full Code Here

    {
        aMessage = "Subject: "+aSubject + ": "+ aEvent+"\n\n"
            + KFM_DateTimeService.createTimeStamp() + ": " + aMessage;

        // *Send* mail via Smtp class. Yes, really, the constructor *sends* a mail.
        Smtp tMail = new Smtp(mServletProps.MailHost,
            mServletProps.SCDHotlineEmail,
            mServletProps.SCDHotlineEmail,
            aMessage,
            true /*several recipients*/);
    }
View Full Code Here

TOP

Related Classes of KFM.Smtp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.