Round TLRSWP Logo TLRSWP Banner Image
Home
News
Products
Updates
Support
EmailDLL
Manual
FAQ
Debug
DocBox
Contacts
Company
Site Map

EmailDLL Online Manual

home.gif

prev.gif next.gif


DLL Overview Example

DLL access Functions Operators


The following is an example of sending a simple email message using the DLL directly. It doesn't show all possible uses of all the operators. Compare this with the same message sent using the Email class .

#INCLUDE DLLdefines100.js

var nInfo = new netInfo();
var Handle = nInfo.sessionID:
var ErrVal = EmailCmd(Handle,val_NewEmail,"");
if (ErrVal >= 0) {
  SetDebugOn();
  EmailCmd(Handle,val_SetServer,"mail.mycompany.com");
  EmailCmd(Handle,val_SetFrom,'"Jimmy Johannsen" <jj@mycompany.com>");
  EmailCmd(Handle,val_ClearRecipients,"");
  EmailCmd(Handle,val_AddRecipient,"myfriend@mycompany.com, myboss@mycompany.com");
  EmailCmd(Handle,val_ClearCC,"");
  EmailCmd(Handle,val_AddCC,"hr@mycompany.com");
  EmailCmd(Handle,val_SetSubject,"My vacation");
  EmailCmd(Handle,val_ClearMessage,"");
  EmailCmd(Handle,val_AddMessageLine,"Joe and Bob:");
  EmailCmd(Handle,val_AddMessageLine,"");
  EmailCmd(Handle,val_AddMessageLine,"As you know, my vacation starts tomorrow.");
  EmailCmd(Handle,val_AddMessageLine,"I will be in Tahiti for two weeks, in ");
  EmailCmd(Handle,val_AddMessageLine,"Aruba for two weeks, and in Cancun for ");
  EmailCmd(Handle,val_AddMessageLine,"a month. Please do all my work for me while");
  EmailCmd(Handle,val_AddMessageLine,"I lounge in the sun. Ha!");
  EmailCmd(Handle,val_AddMessageLine,"");
  EmailCmd(Handle,val_AddMessageLine,"Warm Regards,");
  EmailCmd(Handle,val_AddMessageLine,"");
  EmailCmd(Handle,val_AddMessageLine,"Jimmy 'the lobster' Johannsen");
  ErrVal = EmailCmd(Handle,val_SendMessage,"");
  EmailCmd(Handle,val_FreeEmail,"");
}
var ErrString = GetErrorString(ErrVal);

home.gif
prev.gif next.gif

 


Copyright 1998, TLR Software Publishing
Questions? Comments? Invective?