Created
March 2, 2013 05:37
-
-
Save justinkelly/5069842 to your computer and use it in GitHub Desktop.
Simple Invoices - use local mail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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