Skip to content

Instantly share code, notes, and snippets.

@justinkelly
Created March 2, 2013 05:37
Show Gist options
  • Save justinkelly/5069842 to your computer and use it in GitHub Desktop.
Save justinkelly/5069842 to your computer and use it in GitHub Desktop.
Simple Invoices - use local mail
--- include/class/email.php.orig 2013-02-12 15:11:08.000000000 +1100
+++ include/class/email.php 2013-01-23 16:34:36.000000000 +1100
@@ -31,7 +31,7 @@
'port' => $config->email->smtpport
);
}
- $transport = new Zend_Mail_Transport_Smtp($config->email->host, $authentication);
+ // $transport = new Zend_Mail_Transport_Smtp($config->email->host, $authentication);
// Create e-mail message
$mail = new Zend_Mail('utf-8');
@@ -66,7 +66,8 @@
}
// Send e-mail through SMTP
try {
- $mail->send($transport);
+ // $mail->send($transport);
+ $mail->send();
} catch(Zend_Mail_Protocol_Exception $e) {
echo '<strong>Zend Mail Protocol Exception:</strong> ' . $e->getMessage();
exit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment