Hi, I want to have some modification to teh email system in friendica (a opensource social media system, see [login to view URL] for more infos).
I got the following information on how to make it possible to send emails to everyone:
"It isn't without challenges. One of the fundamental concepts in Friendica is that you cannot communicate with somebody you do not have some form of relationship with. We make connections by trying to find a service where we can communicate with them. This is done in include/[login to view URL]: probe_url()
On or about line 427 of that file we open your mailbox to try and search for the address there (assuming it wasn't auto discovered as another network type).
One can use a system config setting such as
get_config('system','allow_unknown_mail');
or something similar. If this returns true, skip opening the mailbox and just set the new contact parameters as if they were found in the mail.
$addr = $orig_url;
$network = NETWORK_MAIL;
$name = substr($url,0,strpos($url,'@'));
$phost = substr($url,strpos($url,'@')+1);
$profile = 'http://' . $phost;
// fix nick character range
$vcard = array('fn' => $name, 'nick' => $name, 'photo' => avatar_img($url));
$notify = 'smtp ' . random_string();
$poll = 'email ' . random_string();
$priority = 0;
Then just fall through to the end of the function. This might need some minor tweaks but should get it mostly working.
This is about all the help I can provide - as I haven't worked on Friendica code in quite some time. But a competent developer should be able to use this description and provide what you need. Setting the configuration variable should probably be done in the system config file just so that it doesn't get set accidentally on sites that aren't aware of the consequences.
$a->config['system']['allow_unknown_mail'] = 1;
This would enable it at a system level. If you also want to let individual folks control it, I'd suggest a simple per-user plugin. which calls set|get_pconfig() using a similar name. get_pconfig() is similar to get_config but it also takes a uid, so can be set per-person. You can look at a plugin like randplace which shows how to create a form and form handler for storing personal settings."
I cannot do it myself, so I look for someone who can do the job for me and explain me how to make it work! Since I got very superficial offers before from people who didn't read my post at all please write in Your answer that You can also explain me how to set it up! That way I know that You've read this post.
I will set up a milestone on the agreed sum, but I will not release it before the job is done!
Since I'm planning to expand my website this might be job with future assignments if we're both satisfied with the collaboration!
Abend! I spent 30 minutes to look at the code you provided in the attached file and can alter the system settings for you. I will also explain how it is done, but the guy has basically explained it very well.
Please let me know if you are interested and we can do this together for 1 hour.
Besten Gruss,
Denislav / beFreeStudio
Dear sir, I have gone through your outsourced requirement "Make a few changes to PHP-project (friendica)" and have analyzed that I have right credentials (PHP, Software Architecture) to execute your esteemed project. You will never go wrong choosing me :)
Hi sir i am ready for work kindly check pm.
Hi sir i will changes on your php only 544 kindly if u interested so let me know in pm i am waiting for your great response Thanks.
regards
seomaster