Could not instantiate mail function!

General Discussion about the commercial Enuuk Auction Platform
birtl
Posts: 8
Joined: Fri Oct 11, 2013 4:13 pm
Contact:

Re: Could not instantiate mail function!

Post by birtl » Fri Oct 11, 2013 7:40 pm

I've added an email account Hybird Panel. enuuk describe how my project? "Server: Smtp.bir.tl Port: 587" I need to define which files?

RWAP
Site Admin
Posts: 750
Joined: Fri Jan 08, 2010 2:23 am
Location: Stoke-on-Trent
Contact:

Re: Could not instantiate mail function!

Post by RWAP » Fri Oct 11, 2013 8:00 pm

Thanks for providing me with access to your cpanel.

The problem is that you do not have info @ bir.tl set up as an email account - and cPanel would not allow me to send it - this is your from address in the Enuuk admin backend, so you must have an email account which matches that.

However, it looks as though you are using an external email server - what you refer to as 'Hybrid Panel' ?

You would need to amend class\MailNotificator.php to use an external mail server.

The line to change is line 253:

Code: Select all

        // Mailer Settings
        $mail->From     = $from;
        $mail->FromName = $fromName;
        $mail->AddReplyTo($from);
        $mail->Host     = "localhost";
        $mail->CharSet  = "utf-8";
You need to change this to read:

Code: Select all

        // Mailer Settings
        $mail->From     = $from;
        $mail->FromName = $fromName;
        $mail->AddReplyTo($from);
        $mail->Host     = "mail.example.com"; // SMTP server example
        $mail->CharSet  = "utf-8";
	$mail->IsSMTP();
	$mail->SMTPDebug  = 0; // enables SMTP debug information (for testing)
	$mail->SMTPAuth   = true; // enable SMTP authentication
	$mail->Port       = 25; // set the SMTP port for the GMAIL server
	$mail->Username   = "username"; // SMTP account username example
	$mail->Password   = "password";        // SMTP account password example
Just beware that if you change this - you will need to remember to change it each time that you update Enuuk to the latest version.

birtl
Posts: 8
Joined: Fri Oct 11, 2013 4:13 pm
Contact:

Re: Could not instantiate mail function!

Post by birtl » Fri Oct 11, 2013 8:13 pm

Did you make any changes as you say the problem will be resolved?

RWAP
Site Admin
Posts: 750
Joined: Fri Jan 08, 2010 2:23 am
Location: Stoke-on-Trent
Contact:

Re: Could not instantiate mail function!

Post by RWAP » Fri Oct 11, 2013 8:36 pm

I did not make any changes - I do not know the details of your smtp mail server - there is one showing in cPanel, but it has a zero allocation for user mail boxes, so you cannot add a new mail box or anything.

birtl
Posts: 8
Joined: Fri Oct 11, 2013 4:13 pm
Contact:

Re: Could not instantiate mail function!

Post by birtl » Sat Oct 12, 2013 8:19 am

Thank you very much. The problem is solved.

RWAP
Site Admin
Posts: 750
Joined: Fri Jan 08, 2010 2:23 am
Location: Stoke-on-Trent
Contact:

Re: Could not instantiate mail function!

Post by RWAP » Sat Oct 12, 2013 9:00 am

It would be interesting to know what you did change to solve the problem...

As that will help others

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest