Wednesday, September 14, 2011

Mail Through Code

static void sendEmailThroughOutlook(Args args)
{
SmmOutlookEMail smmOutlookEMail = new SmmOutlookEMail();
Object smmSendEmail;
;
args = new Args();
args.name(formstr(smmSendEmail));
args.caller(smmOutlookEMail);
smmSendEmail = classfactory.formRunClass(args);

if (smmSendEmail)
{
smmSendEmail.init();
smmSendEmail.setEmailTos("jitendraknit@gmail.com");
smmSendEmail.setEmailSubject("jit");
//smmSendEmail.setAttachments(["C:\jit.txt"]);
smmSendEmail.run();
smmSendEmail.refreshControl();
smmSendEmail.wait();
}

1 comment:

  1. This code is not working upload correct code

    ReplyDelete