Openflyers 1.2 beta: mail module
Posted by: aeroclubvicenza ()
Date: May 18, 2005 08:06PM

Hi,

I have openflyers 1.2 beta but the function that sends an email when a booking is performed is not active. Could you please send me files to activate it?

Thanks

Stefano Marchesin

Options: ReplyQuote
Re: Openflyers 1.2 beta: mail module
Posted by: claratte ()
Date: May 19, 2005 07:35AM

Hello,

It should work with standard 1.2beta release. Check the config.php file. You have to fill some parameters like choosing the send method (ie : replacing "null" by "smtp" for example).

Advise us in any case.

Christophe LARATTE
OpenFlyers manager

Options: ReplyQuote
Re: Openflyers 1.2 beta: mail module
Posted by: chakram ()
Date: May 19, 2005 10:06AM

Stefano, you don't have the very last version of OF beta 1.2.

I said you I was waiting for the release candidate (RC1) to give you a new update with a working mailing system.

Best regards

Patrick Hubscher



Edited 1 time(s). Last edit at 05/19/2005 04:56PM by chakram.

Options: ReplyQuote
Re: Openflyers 1.2 beta: mail module
Posted by: aeroclubvicenza ()
Date: May 19, 2005 11:28AM

Yes, but please understand us, we really need the mail function and we cannot wait anymore. If you could send me last version you've developed it would be great!

Thanks

Stefano Marchesin

Options: ReplyQuote
Re: Openflyers 1.2 beta: mail module
Posted by: chakram ()
Date: May 19, 2005 01:56PM

Check your mailbox. You should have our latest CVS export.

This is still a BETA version.

Patrick Hubscher

Options: ReplyQuote
Re: Openflyers 1.2 beta: mail module
Posted by: aeroclubvicenza ()
Date: May 19, 2005 03:09PM

THanks

Stefano Marchesin

Options: ReplyQuote
Re: Openflyers 1.2 beta: mail module
Posted by: aeroclubvicenza ()
Date: May 19, 2005 07:31PM

I found some problems with new files, so I would like to load ONLY those which enable the booking receipt via email... Could you please write me a list of files?

Thanks again for your attention!

Stefano Marchesin

Options: ReplyQuote
Re: Openflyers 1.2 beta: mail module
Posted by: chakram ()
Date: May 19, 2005 09:07PM

Hi

I sent you a new package which could be the first release candidate for version 1.2... I'm sorry but we are unable to provide a list of changed files. We do not trace changes during beta testing.

It should work properly (3 hosted aeroclubs are already working with version 1.2 beta).

Regards.

Patrick Hubscher

Options: ReplyQuote
Re: Openflyers 1.2 beta: mail module
Posted by: aeroclubvicenza ()
Date: May 20, 2005 11:12AM

I'll try later!

Stefano Marchesin

Options: ReplyQuote
Re: Openflyers 1.2 beta: mail module
Posted by: aeroclubvicenza ()
Date: May 20, 2005 12:06PM

I've just installed RC1 version, but it still doesn't send email when an user books an airplane...

Stefano Marchesin



Edited 1 time(s). Last edit at 05/20/2005 12:07PM by aeroclubvicenza.

Options: ReplyQuote
Re: Openflyers 1.2 beta: mail module
Posted by: aeroclubvicenza ()
Date: May 20, 2005 05:49PM

Maybe here is located the problem:

define ('MAIL_FACTORY','@MAIL_FACTORY@');
define ('MAIL_HOST','@MAIL_HOST@');
define('MAIL_AUTH_NAME','@MAIL_AUTH_NAME@');
define ('MAIL_AUTH_PASSWORD','@MAIL_AUTH_PASSWORD@');

How do I have to fill in?

For example: my smtp is smtp.aeroclubvicenza.it

Stefano Marchesin

Options: ReplyQuote
Re: Openflyers 1.2 beta: mail module
Posted by: aeroclubvicenza ()
Date: May 20, 2005 07:35PM

Another detail: this is the error log after a booking:

PHP Fatal error: Call to undefined function: send() in /web/htdocs/www.aeroclubvicenza.it/home/of/classes/mail.class.php on line 126

Stefano Marchesin

Options: ReplyQuote
Re: Openflyers 1.2 beta: mail module
Posted by: claratte ()
Date: May 20, 2005 08:02PM

Hi

Yes, you have to change the 4 defines.

Example :

define ('MAIL_FACTORY','smtp');
define ('MAIL_HOST','smtp.Idontknow.it');
define('MAIL_AUTH_NAME','');
define ('MAIL_AUTH_PASSWORD','');

It depends of your host configuration and your mailbox.

Read the mail.class.php, PEAR/Mail.php for further details.

Christophe LARATTE
OpenFlyers manager

Options: ReplyQuote
Re: Openflyers 1.2 beta: mail module
Posted by: aeroclubvicenza ()
Date: May 20, 2005 08:18PM

I did but it continues to give this error:
PHP Fatal error: Call to undefined function: send() in /web/htdocs/www.aeroclubvicenza.it/home/of/includes/recordBooking.php on line 717

Stefano Marchesin



Edited 1 time(s). Last edit at 05/20/2005 08:18PM by aeroclubvicenza.

Options: ReplyQuote
Re: Openflyers 1.2 beta: mail module
Posted by: aeroclubvicenza ()
Date: May 22, 2005 07:48PM

Solution found: I had to change the mail.class.php file like this:

function send($subject,$body)
{
$this->headers['To']=$this->recipients;
$this->headers['Subject']=$subject;
//mail("webmaster@aeroclubvicenza.it","prova","ciao\n----\n".$this->recipients."\n----\n".$this->headers."\n----\n"winking smiley;
mail(implode(",",$this->headers['To']),$this->headers['Subject'],
$body.
"".
"\n\n---------------------------------------- \nAeroclub Vicenza - Prenotazioni on-line\n".
"http://www.aeroclubvicenza.it\n----------------------------------------",
"From: Prenotazioni Aeroclub Vicenza <bookings@aeroclubvicenza.it>"winking smiley;
return $this->mail->send($this->recipients, $this->headers, $body);
}

Now it works!

Stefano Marchesin

Options: ReplyQuote
Re: Openflyers 1.2 beta: mail module
Posted by: claratte ()
Date: May 24, 2005 06:46PM

Ok, but I don't understand why you have an error saying that send() is not found !?

Using mail() function directly is a bad way. It works on your host because you are allowed to use mail(). But with another host, it may not work. It's reason of the ofMail class : manage different send methods. And you choose the good method for your host with the MAIL_FACTORY definition in the config file.

I'd prefer know why you got the error report...

Christophe LARATTE
OpenFlyers manager



Edited 2 time(s). Last edit at 05/24/2005 07:21PM by claratte.

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.