Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nfultz

Pages: [1]
1
Getting Started / Re: Email Notifications (Work Around)
« on: January 31, 2009, 12:07:59 pm »
Although this is not ideal, I found a work around to my problem. It seems to be an issue with the Swift library. So I basically bypassed it and everything is working now. This is what I did. Find the file applications/models/notifier/Notifier.class.php. Starting on line 393 I changed it to:
static function sendEmail($to, $from, $subject, $body = false, $type = 'text/plain', $encoding = 'utf-8') {
      return mail($to,$subject,$body,'From: The Valley Worship Center <'.$from.">\r\n");
      //Env::useLibrary('swift');

      //$mailer = self::getMailer();
      //if(!($mailer instanceof Swift)) {
         //throw new NotifierConnectionError();
      //} // if

      //if (config_option("mail_transport", self::MAIL_TRANSPORT_MAIL) == self::MAIL_TRANSPORT_SMTP &&
            //config_option("smtp_authenticate", false)) {
         //$from = self::prepareEmailAddress(config_option("smtp_username", $from), $from);
      //}
      //$result = $mailer->send($to, $from, $subject, $body, $type, $encoding);
      //$mailer->close();

      //return $result;
   }  //sendEmail

This worked for me, although, I'm sure this will be a problem when I upgrade. I'm currently using version 1.1. For more information on this go to http://www.activecollab.com/forums/topic/1063/2/ that is where I read about this problem.

2
Getting Started / Re: Email Notifications
« on: January 30, 2009, 10:00:29 pm »
I loaded a test php page up to my server to test the php mail function and it worked perfectly. This is what I used except for I used my own e-mail address instead of the example:
<?php
// The message
$message = "Line 1\nLine 2\nLine 3";

// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70);

// Send
mail('caffeinated@example.com', 'My Subject', $message);
?>
If this is working on my server than there must be something not set correctly in OpenGoo. What should I check? I really like OpenGoo and I want to be able to fix this so that it is useable. Any help would be appreciated.

3
Getting Started / Re: Email Notifications
« on: January 30, 2009, 11:28:28 am »
I contacted GoDaddy and they told me that the PHP function  is enabled on my shared hosting account. Is there something more specific that I could ask about or check on my server?  Secondly, I asked them about the SMTP info and they told me that the ports were on, but there was a slight change in the smtp server info I was supposed to put in. For my SMTP server I am supposed to enter "relay-hosting.secureserver.net" instead of "smptout.sevureserver.net", which is what I would normally enter in a pop3 mail client to use my e-mail. I changed that but still got the same error as before. (Notifier failed to construct mailer object.) Any other ideas or info you need from me?

4
Getting Started / Email Notifications
« on: January 30, 2009, 12:54:04 am »
Hi I'm trying to setup e-mail notifications on a linux shared hosting account through GoDaddy. At first I had it set to use default php. When testing, it would tell me that the message was sent, however, I never received it. I tried switching to an smtp, but it keeps giving me the error, "Notifier failed to construct mailer object." Any ideas on what I might be doing wrong? I would prefer to use the default php mail function, but I'm not sure what I need to do to get it working.

Thanks for any help,
~Nathan

Pages: [1]