Pastebin

Paste #120:

< previous paste - next paste>

Pasted by Asger

Download View as text

======== mailer.yml start ===============================
prod:
  deliver:    on
  mailer:     sendmail

dev_unix:
  deliber:    on
  mailer:     sendmail
  
dev_win:
  deliver:    on
  mailer:     smtp
  hostname:   smtp.mail.dk
  port:       25
  
dev_win_alp:
  deliver:    on
  mailer:     smtp
  hostname:   smtp.mail.dk
  port:       25

======== mailer.yml end   ===============================

======== code start =====================================
$mail = new sfMail();
$recipients = sfConfig::get('app_mail_send_signup_to');
      
foreach ($recipients as $key => $val) {
  $mail->addAddress($val);   
}

$mail->setContentType('text/html');
$mail->setFrom(sfConfig::get('app_mail_system'));
$mail->setSender(sfConfig::get('app_mail_system'));
$mail->addReplyTo(sfConfig::get('app_mail_system'));
$mail->setSubject('Test');
     
$mail->setPriority(3);
$this->mail = $mail;
======== code end   =====================================

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.