Jump to content
  • 0

FluxCP Mailer + Mail Verification [Request Help]


bloppins

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  11/21/12
  • Last Seen:  

Hello!

My control panel is not able to send mails to registering users, or through the send email tool. The errors I pulled from the email log are "failed to blah blah blah", and another one was "could not initiate mailer" or something like that.

I have read through alllllll of the topics on people having issues with setting up smtp with fluxcp. (yes i am trying to use gmail - smtp.gmail.com). Here is what my application.php looks like:

AllowDuplicateEmails' => true,				   
'RequireEmailConfirm'  => true,				  
'RequireChangeConfirm' => true,				  
'EmailConfirmExpire'   => 48,				   
'MailerFromAddress'    => '[email protected]',	
'MailerFromName'	   => 'TestiRo',		   
'MailerUseSMTP'	    => true,				 
'MailerSMTPUseSSL'	 => true,				  
'MailerSMTPUseTLS'	 => false,				 
'MailerSMTPPort'	   => 465,				   
'MailerSMTPHosts'	  => 'smtp.gmail.com',				   
'MailerSMTPUsername'   => '[email protected]',   <----------------------(my gmail account)
'MailerSMTPPassword'   => ***********',  <---------------------(my password)

This is all fine and dandy... I have tried all the suggestion modifications such as using TLS with the appropriate port change, and also even changing smtp.gmail.com to ssl://smtp.gmail.com.

I cannot get the mail feature to work period. I called my ISP to see if there was some kind of block on my outgoing request for gmail's smtp service. They assured me there was not. I have comcast. I tried to test the following using telnet:

o smtp.gmail.com 465

No connectoin is ever made.

However the default smtp port of 25 worked with the telnet connection, but if I try to use 25 in the application.php configuration, it still wont connect. (this was my next logical step, just in case.)

After much googling, I found that telnet cannot connect to gmail's smtp, because it requires a secure connection (SSL). Maybe this has somethign to do with how my machine is setup, and why it cannot connect to the smtp server gmail provides... I just don't know.

Here is what I ask:

Is there any kind of configuration needed in preperation for fluxcp's mail features? Such as additional software, php scripting/extensions/addons, or what? Where do I start in resolving this now? I

I have all the following things working on my local machine (localhost):

RO private server (with pre-re databases).

Mysql Service

Abyss Web Server

PHP 5

FluxCP (everything except the mail feature).

Any help with this would be appreciated GREATLY!

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hello, I also have this question. It is not very clear. A better tutorial or explanation detailing this would be good. I am hosting with asura and I have a smtp but it does not work.

Hi fredou81,

Why would you use SMTP for FluxCP if you are hosted with us? You can just use the PHP Mail function, and it would work absolutely fine. Just switch 'UseSMTP' to false.

  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   6
  • Joined:  07/01/12
  • Last Seen:  

On 11/25/2012 at 12:02 AM, Asura said:

Hi fredou81,

Why would you use SMTP for FluxCP if you are hosted with us? You can just use the PHP Mail function, and it would work absolutely fine. Just switch 'UseSMTP' to false.

Thank you! Worked! 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   0
  • Joined:  10/29/18
  • Last Seen:  

On 11/24/2012 at 11:02 PM, Asura said:

Hi fredou81,

Why would you use SMTP for FluxCP if you are hosted with us? You can just use the PHP Mail function, and it would work absolutely fine. Just switch 'UseSMTP' to false.

Hi, I have not been able to get mail confirmation to work.
I am using the default configuration, just changing name parameters.

	'RequireEmailConfirm'		=> true,					// Require e-mail confirmation during registration.
	'RequireChangeConfirm'		=> true,					// Require confirmation when changing e-mail addresses.
	'EmailConfirmExpire'		=> 48,						// E-mail confirmations expire hours. Unconfirmed accounts will expire after this period of time.
	'PincodeEnabled'			=> true,					// Whether or not the pincode system is enabled in your server. (Check your char_athena.conf file. Enabled by default.)
	'MailerFromAddress'			=> '[email protected]',		// The e-mail address displayed in the From field.
	'MailerFromName'			=> 'Aren Ragnarok',			// The name displayed with the From e-mail address.
	'MailerUseSMTP'				=> false,					// Whether or not to use a separate SMTP server for sending mail.
	'MailerSMTPUseSSL'			=> false,					// Whether or not mailer should connect using SSL (yes for GMail).
	'MailerSMTPUseTLS'			=> false,					// Same as above SSL setting, but for TLS.  This setting will override the SSL setting.
	'MailerSMTPPort'			=> null,					// When MailerUseSMTP is true: SMTP server port (mailer will default to 25).
	'MailerSMTPHosts'			=> null,					// When MailerUseSMTP is true: A string host or array of hosts (e.g., 'host1' or array('host1', 'backuphost')).
	'MailerSMTPUsername'		=> null,					// When MailerUseSMTP is true: Authorized username for SMTP server.
	'MailerSMTPPassword'		=> null,					// When MailerUseSMTP is true: Authorized password for SMTP server (for above user).

could you help me make it work?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  11/21/12
  • Last Seen:  

Did you read my post, or look at my code?

Thanks for your reply, but that is not useful to me in any way, as I already know how to used a smtp server.

I will be more specific.

I istalled abyss webserver, and PHP 5 manually. I then installed flux cp. So here is what my director for each looks like:

c:\web\abyss\httpdocs\fluxcp

c:\php

c:\mysql

Everything is working except the mail feature of FluxCP.

I suspect that I am missing the link between Flux's code, declaring how to handle mail, and the means through which that is executed. From all the searching I have done, and browsing through fluxcp code, the best idea I can come up with is:

FluxCP tries to use the sendmail program for php? However I must not have it, or have it configured. If this hunch is correct, could a more savy php/flux guy/girl point me in the direction for where I would have to edic flux's code/configuration to point to the correct sendmail application.

Additionally, is there anyone who has knowledge or experience setting up sendmail? I believe this is my problem, as I did not install from any kind of pre-setup package. I think the program which flux uses to send mail is the php sendmail module/addon, but I am not for certain.

I just need confirmation on this, and some guidance.

Oh, also I don't even know if sendmail is the program that talks to smtp servers, or the program that uses the fake mail /mail to disk things I read about.

Either way as long as emails can be sent out, I will be happy with it.

EDIT:

Orrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr? Is fluxcp suppose to be able to use the smtp feature with a barebone install of php5, a web server, and fluxcp? If this IS the case, then the issue lies within some service I a missing from my pc which allows communication to happen from the php scripts, and gmails smtp servers.

I just need help in narrowing the possibilities down, and if nobody wants to GIVE me the answer, then fine. Please just point me in the right direction. I have read all other suggestions, and tried them all. Please just focus on responding to the questions/ideas in this edit.

Edited by bloppins
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  79
  • Reputation:   0
  • Joined:  06/27/12
  • Last Seen:  

Hello, I also have this question. It is not very clear. A better tutorial or explanation detailing this would be good. I am hosting with asura and I have a smtp but it does not work.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  11/21/12
  • Last Seen:  

Well, I have finally found a solution to my problem while setting up a complete functions server from localhost including these elements:

rAthena

MySql

PHP 5

Apache Web Server

Flux Control Panel

Everything works.

Solution: Modified the php mailer class to use 'sendmail' instead of mail or smtp, and disabled smtp insde the application.php.

This made me have to setup sendmail for use with the fluxcp, which was easy. You justt need to modify the fluxcp mailer information to use sendmail, and then point to the sendmail.exe also. Sendmail allows php to send mail via smtp. You just configure the sendmail.ini with seetings you would have used in the application.php for fluxcp.

This workaround worked nicely for me.

I now know how to fully setup an rAthena server, with all the bells and whistles. Now I am just going to go practice/learn some more php, so I can have a good website with forums and all of that. I can probalby find premade templates and such will be nice, but I like to customize. Eventually I will be able to integrate to a better host, and launch my project. I am getting closer =p.

Anyways, if anybody has any questions, I am willing to help with them.

Edited by bloppins
Link to comment
Share on other sites

×
×
  • Create New...