tean77

Topic: Email issues, can`t send any emails...!

Hi everyone,

I just succeed installing jobberbase on my host but it seems that all emails (confirmation post, application + attachment...) don't work at all.
Do i have to change something in the php mail files? class.phpmailer and class.postman...?

In this case: email settings are enable according to the host, they do not offer smtp service...
Just for info, i received this path info from my host.

`sendmail_path=/usr/sbin/sendmail -f mail@xxxx.xxx.com`

in config.php:
I've changed the
define('NOTIFY_EMAIL','xxx@gmail.com');
define('ADMIN_EMAIL','xxx@gmail.com');

The email features offered: Email
  SSL  * POP3     * Web based     * Forward

I've tried to find the error for days...any ideas?

help!

Thanks!

putypuruty

Re: Email issues, can`t send any emails...!

Hi.

If you use another email address (not a @gmail.com one), does it work? A user from our forum had problems with gmail addresses because his host didn't allow them.

Also, you could try the following (but it only applies to the email that is sent to the employer when somebody applies to a job): open class.Postman.php and find this line $mail = new PHPMailer();. On the next line add this

Code:
$mail->IsSendmail();

This should send the emails through sendmail (the default is smtp).

Let us know if you find something.

tean77

Re: Email issues, can`t send any emails...!

Hi.
I will try with another email and the Issendmail (): and i`ll get back to you.
Thanks a lot!

tean77

Re: Email issues, can`t send any emails...!

Hi,

With Issendmail(), i`ve got the error and can`t send applications to a job.
`Unfortunately, your application could not be sent.`

I triend to use other emails (not gmail) but it doesn`t work neither..

mmm...

Chronos

Re: Email issues, can`t send any emails...!

You could start by checking if the default PHP sendmail feature works as it should by loading the following PHP script (make a new file for it):

Code:
<?php
$to = "you@whatever.com";
$subject = "Test mail";
$message = "Testing the default php mailer function.";
$from = "you@whatever.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
Member of Jobberbase Development Team - Implementation and Coding

Visit my Blog: ChronoScripts (JobberBase scripts, support and freelance)
JobBoards: Telefonisch Werk and Top Bijbaan

tean77

Re: Email issues, can`t send any emails...!

It says `mail sent` but i`ve received nothing...

Chronos

Re: Email issues, can`t send any emails...!

Did you try setting both the to and from addresses to use the same domain it's hosted on? If it doesn't work then it's most likely the fault of the host..

Member of Jobberbase Development Team - Implementation and Coding

Visit my Blog: ChronoScripts (JobberBase scripts, support and freelance)
JobBoards: Telefonisch Werk and Top Bijbaan

tean77

Re: Email issues, can`t send any emails...!

actually, it worked...I received the test emails but later...
So your test succeded !

Chronos

Re: Email issues, can`t send any emails...!

When applying to a job, does it say the email was sent correctly? If it doesn't, try adding the following bit to page_apply.php:

Find:

Code:
            $alex = new Postman();
            
            if ($alex->MailApplyOnline($data))
            {
                $_SESSION['apply_mail_sent'] = 1;

            }
            else
            {
                $_SESSION['apply_mail_sent'] = -1;
            }

Replace with:

Code:
            $alex = new Postman();
            
            if ($alex->MailApplyOnline($data))
            {
                $_SESSION['apply_mail_sent'] = 1;

            }
            else
            {
                $_SESSION['apply_mail_sent'] = -1;
                echo $alex->ErrorInfo;
            }

That way it should display any errors if the sending fails. Also try setting the config file to use the same email info you used in the test earlier.

Member of Jobberbase Development Team - Implementation and Coding

Visit my Blog: ChronoScripts (JobberBase scripts, support and freelance)
JobBoards: Telefonisch Werk and Top Bijbaan

tean77

Re: Email issues, can`t send any emails...!

If i do not use the `$mail->IsSendmail();` it says, the application was sent successfully...however, i`ve received nothing...

I`ve added the `echo $alex->ErrorInfo;` to see if something appears but it just say...The application was sent.

Just for info, those variables can have an influence on the emails?

define('LOCATION', 'local');
define('ENVIRONMENT', 'dev');
or...
define('LOCATION', 'online');
define('ENVIRONMENT', 'prod');

tean77

Re: Email issues, can`t send any emails...!

The emails are not sent through jobberbase...
it only worked with the test file...