Email

getFrom()

Example
             function process(email) {
      ...
      var fromAddress = email.getFrom();
      logAddress('from', fromAddress);
      ...
   } 

        

getTo()

Example
             function process(email) {
      ...
      var to = email.getTo();
      for (var indexTo in to)
      {
         logAddress('to', to[indexTo]);
      }
      ...
   } 

        

getCc()

Example
             function process(email) {
      ...
      var cc = email.getCc();
      for (var indexCc in cc)
      {
         logAddress('cc', cc[indexCc]);
      }
      ...
   } 

        

getReplyTo()

Example
             function process(email) {
      ...
      var replyAddr = email.getReplyTo();
      ...
   } 

        

getSentDate()

Example
             function process(email) {
      ...
      var date = email.getSentDate();
      ...
   } 

        

getSubject()

Example
             function process(email) {
      ...
      var subject = email.getSubject();
      ...
   } 

        

getTextBody()

Example
             function process(email) {
      ...
      log('text body', email.getTextBody());
      ...
   } 

        

getHtmlBody()

Example
             function process(email) {
      ...
      log('html body', email.getHtmlBody());
      ...
   } 

        

getAttachments()

Example
             function process(email) {
      ...
      var attachments = email.getAttachments();
      for (var indexAtt in attachments)
      {
         logAttachment('att', attachments[indexAtt]);
      }
      ...
   } 

        

Related Topics

General Notices