Forward SMS to user email fail

I’m using playSMS 1.4.3, Thanks for the great efforts and fantastic suit.
I enabled “Forward message to email” under user configuration as well forward to mobile too, I’ve got forward to mobile success but to email is failing , with logs :

    • 2020-02-18 16:10:27 PID5e439c7e4c765 - L2 sendmail # start from:noreply@MyDomainIsHere.local to:MyEmail@gmail.com subject:Message from MyNameIsHere (+MyPhoneNumberhere)
    • 2020-02-18 16:10:27 PID5e439c7e4c765 - L2 sendmail # end with error:it was not specified a valid From header

How can I fix this error and success sending emails?

Set $core_config['logstate'] to 3 in your config.php and try again to see more logs

anton

Hello,
I’ve got the same two sendmail lines , the full logs as below : attached as I can not put txt here gives error for links :slight_smile:
Oh, as well new users can not upload

Kindly advice, Thanks

Greetings ,Below is full logs

127.0.0.1 kocsms.local 2020-02-19 09:01:17 PID5e4ccf2db63a2 - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/geturl.php
127.0.0.1 kocsms.local 2020-02-19 09:01:17 PID5e4ccf2db63a2 - L3 kannel__incoming # remote_addr:127.0.0.1 remote_host:kocsms.local t:[2020-02-19 09:01:15] q:[+replace_recipient] a:[@mirghany] Q:[1234] smsc:[gsm1] smsc:[gsm1]
127.0.0.1 kocsms.local 2020-02-19 09:01:17 PID5e4ccf2db63a2 - L3 recvsms # isrecvsmsd:1 dt:2020-02-19 09:01:15 sender:+replace_recipient m:@mirghany receiver:1234 smsc:gsm1
127.0.0.1 kocsms.local 2020-02-19 09:01:17 PID5e4ccf2db63a2 - L2 kannel__call # end load geturl
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L3 recvsmsd # id:54 dt:2020-02-19 09:01:15 sender:+replace_recipient m:@mirghany receiver:1234 smsc:gsm1
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L3 incoming__recvsms_intercept # recvsms_intercept dt:2020-02-19 09:01:15 s:+replace_recipient r:1234 m:@mirghany
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L3 incoming__recvsms_intercept # pv u:mirghany uid:2 dt:2020-02-19 09:01:15 s:+replace_recipient r:1234 m:[@mirghany] reference_id:gsm1
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L2 recvsms_inbox_add # saving sender:+replace_recipient receiver:1234 target:mirghany reference_id:gsm1
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L2 recvsms_inbox_add # saved id:89 sender:+replace_recipient receiver:1234 target:mirghany
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L3 recvsms_inbox_add # send email from:noreply@kocsms.local to:my_email_here@gmail.com message:[@mirghany]
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L2 sendmail # start from:noreply@kocsms.local to:my_email_here@gmail.com subject:Message from Ahmed Elmirghany (+replace_recipient)
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L2 sendmail # end with error:it was not specified a valid From header
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L3 recvsms_inbox_add # sent email from:noreply@kocsms.local to:my_email_here@gmail.com
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L3 recvsms_inbox_add # send to mobile:+replace_recipient from:+replace_recipient user:mirghany message:@mirghany @mirghany
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L2 sendsms # start uid:2 sender_id:[+replace_sender] smsc:[]
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L3 sendsms # maxlen:7640 footerlen:0 footer:[] msglen:19 message:[@mirghany @mirghany]
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L2 sendsms_queue_create # saving queue_code:248b935fcbcfa869cdea7bc68b1ac47f src:+replace_sender scheduled:2020-02-19 09:01:18
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L2 sendsms_queue_create # saved queue_code:248b935fcbcfa869cdea7bc68b1ac47f id:229
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L3 sendsms_manipulate_prefix # before prefix manipulation:[+replace_recipient]
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L3 sendsms_manipulate_prefix # after prefix manipulation:[+replace_recipient]
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+replace_recipient default_rate:1.5
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L3 simplerate_hook_rate_getcharges # uid:2 u:mirghany len:19 unicode:0 to:+replace_recipient enable_credit_unicode:0 count:1 rate:1.5 charge:1.5
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L2 sendsms # dst_count:1 sms_count:1 total_charges:1.5
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L2 sendsms_queue_push # saving queue_code:248b935fcbcfa869cdea7bc68b1ac47f dst:+replace_recipient
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L2 sendsms_queue_push # saved queue_code:248b935fcbcfa869cdea7bc68b1ac47f smslog_id:229
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L2 sendsms # end queue_code:248b935fcbcfa869cdea7bc68b1ac47f queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L2 recvsms_inbox_add # sent to mobile:+replace_recipient from:+replace_recipient user:mirghany
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L3 incoming__recvsms_intercept # pv end
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L3 recvsms_process # dt:2020-02-19 09:01:15 sender:+replace_recipient m:@mirghany receiver:1234 smsc:gsm1
- - 2020-02-19 09:01:18 PID5e4ccedfe1af6 - L3 recvsms_process # intercepted datetime:2020-02-19 09:01:15 sender:+replace_recipient receiver:1234 message:@mirghany
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L2 sendsmsd # start processing queue_code:248b935fcbcfa869cdea7bc68b1ac47f chunk:0 queue_count:1 sms_count:1 scheduled:2020-02-19 09:01:18 uid:2 gpid:0 sender_id:+replace_sender
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L2 sendsmsd # sending queue_code:248b935fcbcfa869cdea7bc68b1ac47f smslog_id:229 to:+replace_recipient sms_count:1 counter:1
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L3 sendsms_intercept # msgtemplate modified sms_sender:[+replace_sender] sms_footer:[] sms_to:[+replace_recipient] sms_msg:[@mirghany @mirghany] uid:[2] gpid:[0] sms_type:[text] unicode:[0] queue_code:[248b935fcbcfa869cdea7bc68b1ac47f] smsc:[]
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L3 outgoing_hook_sendsms_intercept # found SMSCs:[gsm1]
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L3 outgoing_hook_sendsms_intercept # using prefix based smsc smsc:[gsm1] uid:2 parent_uid:0 from:+replace_sender to:+replace_recipient
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L3 sendsms_intercept # outgoing modified sms_sender:[+replace_sender] sms_footer:[] sms_to:[+replace_recipient] sms_msg:[@mirghany @mirghany] uid:[2] gpid:[0] sms_type:[text] unicode:[0] queue_code:[248b935fcbcfa869cdea7bc68b1ac47f] smsc:[gsm1]
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L2 sendsms_process # start
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L3 simplerate_hook_rate_getbyprefix # rate not found to:+replace_recipient default_rate:1.5
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L3 simplerate_hook_rate_getcharges # uid:2 u:mirghany len:19 unicode:0 to:+replace_recipient enable_credit_unicode:0 count:1 rate:1.5 charge:1.5
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L2 simplerate_hook_rate_cansend # allowed user uid:2 sms_to:+replace_recipient adhoc_credit:999944.5 count:1 rate:1.5 charge:1.5 adhoc_balance:999943
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L2 sendsms # saving smslog_id:229 u:2 parent_uid:0 g:0 gw:kannel smsc:gsm1 s:+replace_sender d:+replace_recipient type:text unicode:0 status:0
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L2 sendsms_process # saved smslog_id:229 id:229
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L3 sendsms # final smslog_id:229 gw:kannel smsc:gsm1 message:@mirghany @mirghany len:19
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L3 kannel_hook_sendsms # enter smsc:gsm1 smslog_id:229 uid:2 to:+replace_recipient
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L3 kannel_hook_sendsms # URL: http://127.0.0.1:13031/cgi-bin/sendsms?username=mirghany&password=mirghany&from=gsm1&to=%2Breplace_recipient&dlr-mask=31&dlr-url=http%3A%2F%2Fkocsms.local%2Fplaysms%2Findex.php%3Fapp%3Dcall%26cat%3Dgateway%26plugin%3Dkannel%26access%3Ddlr%26type%3D%25d%26smslog_id%3D229%26uid%3D2%26smsc%3Dgsm1&account=mirghany&text=%40mirghany+%40mirghany&smsc=gsm1
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L3 kannel__outgoing # smslog_id:229 response:0: Accepted for delivery
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L3 dlr # isdlrd:1 smslog_id:229 p_status:0 uid:2
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L3 kannel__outgoing # end smslog_id:229 p_status:0
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L2 simplerate_hook_rate_deduct # enter smslog_id:229
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L3 simplerate_hook_rate_getbyprefix # rate not found to:+replace_recipient default_rate:1.5
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L3 simplerate_hook_rate_getcharges # uid:2 u:mirghany len:19 unicode:0 to:+replace_recipient enable_credit_unicode:0 count:1 rate:1.5 charge:1.5
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L2 simplebilling_hook_billing_post # saving smslog_id:229 rate:1.5 count:1 charge:1.5
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L2 simplebilling_hook_billing_post # saved smslog_id:229 id:229
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L3 simplerate_hook_rate_deduct # deduct successful uid:2 parent_uid:0 smslog_id:229
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L2 sendsms_process # end
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L2 sendsmsd # result queue_code:248b935fcbcfa869cdea7bc68b1ac47f to:+replace_recipient flag:1 smslog_id:229
- - 2020-02-19 09:01:19 PID5e4ccf2f80e0c - L2 sendsmsd # finish processing queue_code:248b935fcbcfa869cdea7bc68b1ac47f uid:2 sender_id:+replace_sender queue_count:1 sms_count:1
- - 2020-02-19 09:01:19 PID5e4ccedfdfc9e - L3 dlrd # id:565 smslog_id:229 p_status:0 uid:2
127.0.0.1 kocsms.local 2020-02-19 09:01:21 PID5e4ccf31812d1 - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/dlr.php
127.0.0.1 kocsms.local 2020-02-19 09:01:21 PID5e4ccf31812d1 - L3 kannel__dlr # remote_addr:127.0.0.1 remote_host:kocsms.local type:[8] smslog_id:[229] uid:[2] smsc:[gsm1]
127.0.0.1 kocsms.local 2020-02-19 09:01:21 PID5e4ccf31812d1 - L3 dlr # isdlrd:1 smslog_id:229 p_status:1 uid:2
127.0.0.1 kocsms.local 2020-02-19 09:01:21 PID5e4ccf31812d1 - L2 kannel__call # end load dlr
- - 2020-02-19 09:01:21 PID5e4ccedfdfc9e - L3 dlrd # id:566 smslog_id:229 p_status:1 uid:2
- - 2020-02-19 09:01:21 PID5e4ccedfdfc9e - L2 simplebilling__finalize # saving smslog_id:229
- - 2020-02-19 09:01:21 PID5e4ccedfdfc9e - L2 simplebilling__finalize # saved smslog_id:229
127.0.0.1 kocsms.local 2020-02-19 09:01:22 PID5e4ccf323d9d2 - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/dlr.php
127.0.0.1 kocsms.local 2020-02-19 09:01:22 PID5e4ccf323d9d2 - L3 kannel__dlr # remote_addr:127.0.0.1 remote_host:kocsms.local type:[1] smslog_id:[229] uid:[2] smsc:[gsm1]
127.0.0.1 kocsms.local 2020-02-19 09:01:22 PID5e4ccf323d9d2 - L3 dlr # isdlrd:1 smslog_id:229 p_status:3 uid:2
127.0.0.1 kocsms.local 2020-02-19 09:01:22 PID5e4ccf323d9d2 - L2 kannel__call # end load dlr
- - 2020-02-19 09:01:22 PID5e4ccedfdfc9e - L3 dlrd # id:567 smslog_id:229 p_status:3 uid:2

Hi, Any idea to fix the issue? Thanks

Sorry no, could be because the library too old, or maybe cant send to .local, not sure, currently have no time to test it

Anton

@Ahmed_El_Mirghany

did you ever found a solution for this?

please advise.

Thanks.

1 Like

Any solution, I am having the same problem:

90.200.112.83 MYDOMAIN.com 2022-07-30 15:01:59 PID62e547e76e881 - L2 user_add # registered status:3 u:hoodbran uid:11 email:XXXXXXXXXX@gmail.com ip:90.200.112.83 mobile:+447777777777 credit:
90.200.112.83 MYDOMAIN.com 2022-07-30 15:01:59 PID62e547e76e881 - L2 sendmail # start from:hello@MYDOMAIN.com to:XXXXXXXXXXX@gmail.com subject:New account registration
90.200.112.83 MYDOMAIN.com 2022-07-30 15:01:59 PID62e547e76e881 - L2 sendmail # end with error:it was not specified a valid From header

Did you find a solution?

Anybody got this working ?. I’ve now tried:

  1. Send to directly to gmail, error: server does nor require authentication
  2. Send to own external mail server (modoboa): error: server does nor require authentication
  3. Send to local postfix that relay to gmail Header not valid (cli mail works fine)
    I going bonkers soon.

All of these tried with and without relm settings:

#// SMTP configuration
$core_config['smtp']['relm'] = ''; // yes, not realm, it's relm
$core_config['smtp']['user'] = '';
$core_config['smtp']['pass'] = '';
$core_config['smtp']['host'] = 'localhost';
$core_config['smtp']['port'] = '25';
#// SMTP configuration
#$core_config['smtp']['relm'] = ''; // yes, not realm, it's relm
#$core_config['smtp']['user'] = 'xxxxxx.dk@gmail.com';
#$core_config['smtp']['pass'] = 'xxxxxxxxxx';
#$core_config['smtp']['host'] = 'smtp.gmail.com';
#$core_config['smtp']['port'] = '587';
#// SMTP configuration
#$core_config['smtp']['relm'] = ''; // yes, not realm, it's relm
#$core_config['smtp']['user'] = 'walther@xxxxxxxxxx.dk';
#$core_config['smtp']['pass'] = 'xxxxxxxx';
#$core_config['smtp']['host'] = 'mailserver.url';
#$core_config['smtp']['port'] = '587';