8devices Community https://www.8devices.com/community/ |
|
send mail with nsmtp https://www.8devices.com/community/viewtopic.php?f=1&t=95 |
Page 1 of 1 |
Author: | feivel [ 16 May 2012, 09:34 ] |
Post subject: | send mail with nsmtp |
trying to use nsmtp in order to send an email results in bus error or segmentation fault. Could anybody give a hint what I am doing wrong. Thanks |
Author: | feivel [ 18 May 2012, 18:03 ] |
Post subject: | Re: send mail with nsmtp |
I solved the issue by using ssmpt instead of nsmtp. This works flawlessly given carambola's network IP is attributed via dhcp. Just select the 'ssmtp' package (leave nsmtp unselected!) in the 'mail' section, run 'makeconfig' and flash carambola with the new image. when rebooted, configure the two files that are in the directory '/etc/ssmtp' to match your environment (google <openwrt ssmpt> might help) then test this with the console command: echo 'mailtest' | ssmtp aaa@bbb.ccc. To send an email from php, you need to write the console command in a text file, make it executable and run it via 'exec'. cheers |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |