StudipMail.class.php
class for constructing and sending emails in Stud.IP
- Author
 - André Noack <noack@data-quest>, Suchi & Berg GmbH info@.nosp@m.data.nosp@m.-ques.nosp@m.t.de 
 
- Version
 - 1 @license GPL2 or any later version 
 
- Copyright
 - 2009 authors 
 
 
◆ __construct()
      
        
          | __construct  | 
          ( | 
            | 
          $data = null | ) | 
           | 
        
      
 
sets some default values for sender and reply to from configuration settings. The return path is always set to MAIL_ABUSE 
 
 
◆ addDataAttachment()
      
        
          | addDataAttachment  | 
          ( | 
            | 
          $data,  | 
        
        
           | 
           | 
            | 
          $name,  | 
        
        
           | 
           | 
            | 
          $type = 'automatic/name',  | 
        
        
           | 
           | 
            | 
          $disposition = 'attachment'  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
- Parameters
 - 
  
    | $data |  | 
    | $name |  | 
    | $type |  | 
    | $disposition |  | 
  
   
- Returns
 - StudipMail provides fluent interface 
 
 
 
◆ addFileAttachment()
      
        
          | addFileAttachment  | 
          ( | 
            | 
          $file_name,  | 
        
        
           | 
           | 
            | 
          $name = '',  | 
        
        
           | 
           | 
            | 
          $type = 'automatic/name',  | 
        
        
           | 
           | 
            | 
          $disposition = 'attachment'  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
- Parameters
 - 
  
    | $file_name |  | 
    | $name |  | 
    | $type |  | 
    | $disposition |  | 
  
   
- Returns
 - StudipMail provides fluent interface 
 
 
 
◆ addRecipient()
      
        
          | addRecipient  | 
          ( | 
            | 
          $mail,  | 
        
        
           | 
           | 
            | 
          $name = '',  | 
        
        
           | 
           | 
            | 
          $type = 'To'  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
- Parameters
 - 
  
  
 
- Returns
 - StudipMail provides fluent interface 
 
 
 
◆ addStudipAttachment()
      
        
          | addStudipAttachment  | 
          ( | 
          FileRef  | 
          $file_ref | ) | 
           | 
        
      
 
- Parameters
 - 
  
    | FileRef | $file_ref | The FileRef object of a file that shall be added to a mail  | 
  
   
- Returns
 - StudipMail provides fluent interface 
 
 
 
◆ getAttachments()
◆ getBodyHtml()
◆ getBodyText()
◆ getDefaultTransporter()
  
  
      
        
          | static getDefaultTransporter  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ getRecipients()
◆ getReplyToEmail()
◆ getReplyToName()
◆ getSenderEmail()
◆ getSenderName()
◆ getSubject()
◆ isAttachment()
- Parameters
 - 
  
  
 
- Returns
 - unknown_type 
 
 
 
◆ isRecipient()
- Parameters
 - 
  
  
 
- Returns
 - unknown_type 
 
 
 
◆ quoteString()
  
  
      
        
          | static quoteString  | 
          ( | 
            | 
          $string | ) | 
           | 
         
       
   | 
  
staticprotected   | 
  
 
quotes the given string if it contains any characters reserved for special interpretation in RFC 2822. 
 
 
◆ removeAttachment()
      
        
          | removeAttachment  | 
          ( | 
            | 
          $name | ) | 
           | 
        
      
 
- Parameters
 - 
  
  
 
- Returns
 - StudipMail provides fluent interface 
 
 
 
◆ removeRecipient()
- Parameters
 - 
  
  
 
- Returns
 - StudipMail provides fluent interface 
 
 
 
◆ send()
      
        
          | send  | 
          ( | 
          email_message_class  | 
          $transporter = null | ) | 
           | 
        
      
 
send the mail using the given transporter object, or the set default transporter
- Parameters
 - 
  
    | email_message_class | $transporter |  | 
  
   
- Returns
 - bool 
 
 
 
◆ sendAbuseMessage()
  
  
      
        
          | static sendAbuseMessage  | 
          ( | 
            | 
          $subject,  | 
         
        
           | 
           | 
            | 
          $text  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
convenience method for sending a qick, text based email message to the configured abuse adress
- Parameters
 - 
  
    | string | $subject |  | 
    | string | $text |  | 
  
   
- Returns
 - bool 
 
 
 
◆ sendMessage()
  
  
      
        
          | static sendMessage  | 
          ( | 
            | 
          $recipient,  | 
         
        
           | 
           | 
            | 
          $subject,  | 
         
        
           | 
           | 
            | 
          $text,  | 
         
        
           | 
           | 
            | 
          $html = null  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
convenience method for sending a qick, text based email message
- Parameters
 - 
  
    | string | $recipient |  | 
    | string | $subject |  | 
    | string | $text | Plain text version of the message (required).  | 
    | string | $html | HTML version of the message (optional).  | 
  
   
- Returns
 - bool 
 
 
 
◆ setBodyHtml()
- Parameters
 - 
  
  
 
- Returns
 - StudipMail provides fluent interface 
 
 
 
◆ setBodyText()
- Parameters
 - 
  
  
 
- Returns
 - StudipMail provides fluent interface 
 
 
 
◆ setData()
◆ setDefaultTransporter()
  
  
      
        
          | static setDefaultTransporter  | 
          ( | 
          email_message_class  | 
          $transporter | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Sets the default transporter used in StudipMail::send() 
- Parameters
 - 
  
    | email_message_class | $transporter |  | 
  
   
- Returns
 - void 
 
 
 
◆ setReplyToEmail()
- Parameters
 - 
  
  
 
- Returns
 - StudipMail provides fluent interface 
 
 
 
◆ setReplyToName()
- Parameters
 - 
  
  
 
- Returns
 - StudipMail provides fluent interface 
 
 
 
◆ setSenderEmail()
- Parameters
 - 
  
  
 
- Returns
 - StudipMail provides fluent interface 
 
 
 
◆ setSenderName()
- Parameters
 - 
  
  
 
- Returns
 - StudipMail provides fluent interface 
 
 
 
◆ setSubject()
- Parameters
 - 
  
  
 
- Returns
 - StudipMail provides fluent interface 
 
 
 
◆ toArray()
The documentation for this class was generated from the following file: