phpScheduleIt
June 19, 2013, 08:47:01 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Email Configurations  (Read 1865 times)
stevej31088
Newbie
*

Karma: 0
Posts: 5


« on: February 18, 2012, 06:36:01 AM »

Love the 2.0 script!

I'm on a shared hosting plan (GoDaddy) and cannot receive email notifications. My first thought was my email configurations in the config.php file were incorrect.  After a few hours of failed attempts, I switched my email settings to a Gmail account.  Below are the configuration settings I used:

* Mail server configuration
 */
$conf['settings']['phpmailer']['mailer'] = 'smtp';              // options are 'mail', 'smtp' or 'sendmail'
$conf['settings']['phpmailer']['smtp.host'] = 'smtp.gmail.com';               // 'smtp.university.ca'
$conf['settings']['phpmailer']['smtp.port'] = '465';
$conf['settings']['phpmailer']['smtp.secure'] = 'ssl';             // options are '', 'ssl' or 'tls'
$conf['settings']['phpmailer']['smtp.auth'] = 'true';           // options are 'true' or 'false'
$conf['settings']['phpmailer']['smtp.username'] = 'myaddress@gmail.com';
$conf['settings']['phpmailer']['smtp.password'] = 'passxxxx';
$conf['settings']['phpmailer']['sendmail.path'] = '/usr/sbin/sendmail';

It's still not working.  Any ideas?
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #1 on: February 21, 2012, 01:08:35 PM »

Do you get any errors in the logs? I'd also double check that the user is set up to receive all email notifications.

I'll try setting this up with GMail and see if I can figure anything out.
Logged
stevej31088
Newbie
*

Karma: 0
Posts: 5


« Reply #2 on: February 22, 2012, 10:47:42 AM »

Thanks for your response  Smiley

Are the only log files in tlp_c file?

Here's the latest attempt:

<?php /* Smarty version Smarty-3.1.7, created on 2012-02-22 08:39:01
         compiled from "/home/content/11/8055011/html/phpScheduleIt/lib/Common/../../tpl/globalfooter.tpl" */ ?>
<?php /*%%SmartyHeaderCode:8850844624f450c15673752-41567972%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #3 on: February 27, 2012, 01:31:47 PM »

Sorry, I should have been more specific. Logging is set up by configuring the settings config/log4php.config.xml. You can write log files to anywhere you have access.
Logged
Tube_242
Newbie
*

Karma: 0
Posts: 4


« Reply #4 on: March 02, 2012, 02:04:47 AM »

Did you guys manage to fix this problem? I think I have the same issue on.
Logged
joseluisgs
Newbie
*

Karma: 0
Posts: 26


« Reply #5 on: March 08, 2012, 04:06:37 AM »

Can anybody to help me to configure the mail with a gmail account?
Thanks
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #6 on: March 12, 2012, 04:09:32 PM »

I haven't had a chance to test this yet. I'll try to get to it this week.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #7 on: March 12, 2012, 05:19:54 PM »

Just found out that you have to have the php_openssl extension enabled in php.ini.  Everything else is correct.
Logged
sysadmin1
Newbie
*

Karma: 0
Posts: 1


« Reply #8 on: March 15, 2012, 10:59:30 PM »

I'm having similar problems, I'm a noob with phpsSheduleit 2.0 and am having huge problems getting email to work. I have installed phpScheduleit on a VM Win 2008 R2 server using a xampp package...phpScheduleit appears to work fine using Ldap. However email just refuses to cooperate using sendmail or smtp. I have enabled error logging but the error log is blank (the file is there, just nothing in it) so I'm scratching my head trying to work out what to try next. If someone could help me with the following questions I would be very grateful;

1. Do I need to have some type of mail program configured (such as Mercury Mail which is an app that is packaged with xampp or or even IIS) first with smtp enabled...or is this not necessary in order to use email from within phpScheduleit? 

2. As we are a college, all Internet communications are filtered by a Netbox Blue server through a proxy before they hit our router and the outside world. Would it be necessary to add an entry to our Netbox filter and or our router config?

3. Does anyone out there have a step by step config guide for phpScehduleit email configuration using the xampp package?

My current settings are:

PHP.INI

[mail function]
; For Win32 only.
;http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = postmaster@localhost

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

[Extensions]

extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_dba.dll
extension=php_mbstring.dll
extension=php_exif.dll
;extension=php_fileinfo.dll
extension=php_gd2.dll
extension=php_gettext.dll
;extension=php_gmp.dll
extension=php_imap.dll
;extension=php_interbase.dll
extension=php_ldap.dll
;extension=php_mssql.dll
;extension=php_mysql_mysqlnd.dll
extension=php_mysql.dll
;extension=php_mysqli_mysqlnd.dll
extension=php_mysqli.dll
;extension=php_oci8.dll
extension=php_openssl.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
;extension=php_pdo_mysql_mysqlnd.dll
extension=php_pdo_mysql.dll
extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
;extension=php_pdo_sqlite_external.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
extension=php_soap.dll
extension=php_sockets.dll
extension=php_sqlite.dll
extension=php_sqlite3.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
extension=php_xmlrpc.dll

CONFIG.PHP

$conf['settings']['phpmailer']['mailer'] = 'smtp';              // options are 'mail', 'smtp' or 'sendmail'
$conf['settings']['phpmailer']['smtp.host'] = 'smtp.gmail.com';               // 'smtp.university.ca'
$conf['settings']['phpmailer']['smtp.port'] = '465';
$conf['settings']['phpmailer']['smtp.secure'] = 'ssl';             // options are '', 'ssl' or 'tls'
$conf['settings']['phpmailer']['smtp.auth'] = 'true';           // options are 'true' or 'false'
$conf['settings']['phpmailer']['smtp.username'] = 'xxxxxxx@xxx.xxx.xxx.xx';
$conf['settings']['phpmailer']['smtp.password'] = 'xxxxxxxx';
$conf['settings']['phpmailer']['sendmail.path'] = '/usr/sbin/sendmail';

SENDMAIL.INI

These are the settings for sendmail.ini (although I'm not trying to use this now)

[sendmail]

; you must change mail.mydomain.com to your smtp server,
; or to IIS's "pickup" directory.  (generally C:\Inetpub\mailroot\Pickup)
; emails delivered via IIS's pickup directory cause sendmail to
; run quicker, but you won't get error messages back to the calling
; application.

smtp_server=smtp.gmail.com

; smtp port (normally 25)

smtp_port=465

; the default domain for this server will be read from the registry
; this will be appended to email addresses when one isn't provided
; if you want to override the value in the registry, uncomment and modify

default_domain=mydomain.xxx.edu.au

; log smtp errors to error.log (defaults to same directory as sendmail.exe)
; uncomment to enable logging

error_logfile="c:\xampp\sendmail\sendmail.log"

; create debug log as debug.log (defaults to same directory as sendmail.exe)
; uncomment to enable debugging

;debug_logfile=debug.log

; if your smtp server requires authentication, modify the following two lines

auth_username=xxxxxxx@xxx.xxx.edu.au
auth_password=xxxxxxxx

; if your smtp server uses pop3 before smtp authentication, modify the
; following three lines

;pop3_server=
;pop3_username=
;pop3_password=

; to force the sender to always be the following email address, uncomment and
; populate with a valid email address.  this will only affect the "MAIL FROM"
; command, it won't modify the "From: " header of the message content

;force_sender=me@localhost

; sendmail will use your hostname and your default_domain in the ehlo/helo
; smtp greeting.  you can manually set the ehlo/helo name if required

hostname=localhost

I also added an entry to the server firewall allow sendmail to communicate, however now that I am not attempting to use sendmail it is probably not needed. However are there any other firewall entries needed for phpScheduleit?

Are there any settings in the Apache.conf file that would need to be added / enabled?

Any assistance would be gratefully appreciated. (I hope I've posted this under the right thread)
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #9 on: March 19, 2012, 01:48:04 PM »

1. Do I need to have some type of mail program configured (such as Mercury Mail which is an app that is packaged with xampp or or even IIS) first with smtp enabled...or is this not necessary in order to use email from within phpScheduleit? 

2. As we are a college, all Internet communications are filtered by a Netbox Blue server through a proxy before they hit our router and the outside world. Would it be necessary to add an entry to our Netbox filter and or our router config?

3. Does anyone out there have a step by step config guide for phpScehduleit email configuration using the xampp package?

1. You will need a mail server available, but it sounds like you have SMTP

2. I'm not sure about this one. I'd say try it and see what happens.

3. No, but you should be able to simply turn email on in the config file and update the mail settings to reflect your environment.
Logged
flor
Newbie
*

Karma: 0
Posts: 5


« Reply #10 on: March 27, 2012, 06:16:37 AM »

hi where can i find php.ini and sendmail.ini?

i cant find them in the directory

thx
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #11 on: March 27, 2012, 01:33:35 PM »

php.ini is in your PHP install directory. I'm not sure where sendmail.ini would be, but probably wherever sendmail is installed.
Logged
4mostip
Newbie
*

Karma: 0
Posts: 1


« Reply #12 on: September 18, 2012, 06:40:28 PM »

sorry clumsy fingers - to continue

- best advice I can give is find another way!  Like use an external SMTP like gmail or piggy back on Outlook.

But if you have cracked Mercury I'm all ears !...............

Steve
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!