Address

getName()

Example
             function process(email) {
      ...
      var to = email.getTo();
      for (var indexTo in to)
      {
         logAddress('to', to[indexTo]);
      }
      ...
      function logAddress(label, address)
      {
          if (address)
          {
            nlapiLogExecution('DEBUG', 'Email - ' + label + ': ' + address.getName() + ', ' + address.getEmail());
          }
      }
      ...
   } 

        

getEmail()

Example
             function process(email) {
      ...
      var to = email.getTo();
      for (var indexTo in to)
      {
         logAddress('to', to[indexTo]);
      }
      ...
      function logAddress(label, address)
      {
          if (address)
          {
            nlapiLogExecution('DEBUG', 'Email - ' + label + ': ' + address.getName() + ', ' + address.getEmail());
          }
      }
      ...
   } 

        

Related Topics

Email Capture Plug-in Interface Description
process(email)
Email
Attachment

General Notices