New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kalkun sms to email plugin setup #171
Comments
Hi Guys, Can anyone assist. I am willing to send beer money to the one that provides a successful solution. Raj |
Hi Its very easy to configure that. You would need to modify the plugin file on your host as to create the subject line accordingly In file sms_to_email.php For configuration update the section under For changing the logic of subject line need to change the subject line generation $CI->email->subject($config['mail_subject']); to
That's all. |
Hi Kinshuk, Thanks for the reply. Had not used kalkun for a month or so and went to make the changes but now will not get any sms in at all. I have restored the server to a known working point but still will not get any sms in the inbox. I can send sms no problem. Where to you suggest to begin troubleshooting please? I can see the sms coming in as I have set auto reply on and I can see the count of send sms going up everytime I get an sms but just will not show up Cheers, Rajbps From: Kinshuk Bairagi [mailto:notifications@github.com] Hi Its very easy to configure that. You would need to modify the plugin file on your host as to create the subject line accordingly In file sms_to_email.phphttps://github.com/back2arie/Kalkun/blob/master/application/plugins/sms_to_email/sms_to_email.php For configuration update the section under sms_to_email_initialize to appropriate values. For changing the logic of subject line need to change the subject line generation $CI->email->subject($config['mail_subject']); to $CI->email->subject($from."@domain.com"); That's all. — |
Also I never get the auto reply sms Here is what is in syslog: May 5 22:12:14 bpssms gammu-smsd[1149]: Starting phone communication... Cheers, rajbps From: Kinshuk Bairagi [mailto:notifications@github.com] Hi Its very easy to configure that. You would need to modify the plugin file on your host as to create the subject line accordingly In file sms_to_email.phphttps://github.com/back2arie/Kalkun/blob/master/application/plugins/sms_to_email/sms_to_email.php For configuration update the section under sms_to_email_initialize to appropriate values. For changing the logic of subject line need to change the subject line generation $CI->email->subject($config['mail_subject']); to $CI->email->subject($from."@domain.com"); That's all. — |
Ok managed to recover the server from an older backup and i can now send and recieve sms again.
{ The email server is an exchange 2013 box. i can find any logs to see what is actually happening jsu never gets the emails . I have change the following file index.php to be as 👍 | For more info visit: http://www.php.net/error_reporting
/* But still nothing much in syslog. Please advise as I am looking forward to use kalkun Regards, Rajbps |
Kalkun needs an email server which supports smtp protocol. Is your email Also did you enable the plugin from kalkun settings? Regards
Ok managed to recover the server from an older backup and i can now send function sms_to_email_initialize() { The email server is an exchange 2013 box. i can find any logs to see what is actually happening jsu never gets the I have change the following file index.php to be as [image: 👍] | For more info visit: http://www.php.net/error_reporting // Change this to your timezone /* But still nothing much in syslog. Please advise as I am looking forward to use kalkun Regards, Rajbps — |
How can i get the logs to see what is happening with the email bit. Currently I am unsure of what the issue is. Exchange 2013 does do smpt. Please advise if there is a way to make kalkun /the plugin throw out the logs. Regards, rajbps |
Can you follow this stack overflow link to enable debug messages and see if the errors logs are generated? |
hiya, I have changed the following 2 line in the php.ini file : I made the modification to 2 php.ini files located in /etc/php5/cli/php.ini Then I looked at the logs in here is the output: [Wed Mar 16 22:02:16.232503 2016] [mpm_prefork:notice] [pid 1003] AH00163: Apache/2.4.12 (Ubuntu) configured -- resuming normal operations The server has also been rebooted. Still no joy. How did you set your server as i am not fussed with exchange. Did you use postfix, if yes can you paste your config here please? Regards, raj |
Looks like something is wrong on index.php on line 13, can you paste the I have used my hosting provider email and also gmail and both worked for me Regards
|
I have tried the following: |
Forgor when I run the following the email is send : load->library('email'); ``` $config['protocol'] = "smtp"; $config['smtp_host'] = "smtp.mailserver.net"; $config['smtp_port'] = "25"; $config['smtp_user'] = "kalkun@mailserver.net"; $config['smtp_pass'] = "Password"; $config['charset'] = 'utf-8'; $config['wordwrap'] = TRUE; $this->email->initialize($config); $this->email->from("kalkun@mailserver.net", 'Your Name'); $this->email->to('someone@example.com'); $this->email->subject('Email Test'); $this->email->message('Testing the email class.'); $this->email->send(); echo $this->email->print_debugger(); ``` } } |
Can you clarify if you see the error or not? |
well the email is sent but on that page you can see the following error: A PHP Error was encountered Severity: Notice Message: Trying to get property of non-object Filename: libraries/Email.php Line Number: 112 Severity: Warning Message: Invalid argument supplied for foreach() Filename: libraries/Email.php Line Number: 112 This is just went running th etest script. When sending an sms it still does not go to the email and I cant see any logs. If i unistall the sms to email plugin then all the sms that were supposed to be send via email floods in and I can see that in the inbox of kalkun |
Line 112 of function initialize($config = array())
{
$this->clear();
foreach ($config->config as $key => $val) Seems like something is wrong with your installation / version |
I install again on a new server i dont mind |
Hiya, I have installed on a new ubuntu installed and still the same issue :-( |
Hiya,
How do you configure the sms to email plugin please?
Also is it possible that once configures if user A sends in an sms when its forwarded to the email, it creates a subject line as phonenumber@domain.com
I am trying to get this to go to otrs which is a ticketing system for IT.
I can set up filters in otrs to filter what emails comes in and goes to specific customer queue and such a subject line will allow me to filter that.
Regards,
Raj
The text was updated successfully, but these errors were encountered: