JoomlaPlug!

JoomlaCloner - Backup and Restore Component

OOPS. Your Flash player is missing or outdated.Click here to update your player so you can see this content.
JoomlaCloner - Joomla backup and restore

 
 
JoomlaPlug.com
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Auto Email Creation (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Auto Email Creation
#2868
admin (Admin)
Admin
Posts: 2468
graph
User Online Now Click here to see the profile of this user
joomlaplug JoomlaPlug.com
Re:Auto Email Creation 1 Year, 4 Months ago  
Modifying the core is not an option for a Roundcube for Joomla component release, however for private use it might work! You also need to take into consideration that future upgrades will imply to remake the changes on the registration componet!

Feel free to share your work here, i am sure there will be others that might find a good use for it also, giving you the credits!

Ovidiu
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2890
tpintsch (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:Auto Email Creation 1 Year, 4 Months ago  
My worry is:

1. exposing my site to undue attention seeing as how I fear the mod is unsecure and lack the knowlege to secure it.

2. exposing others sites to the same insecurity I have imbued my site with. As it stands, my mod has the com_registration component registering new e-mails upon new registrations. It does not work if an e-mail confirmation is involved, it does not work with any captcha releases and as of yet, I cannot make it work with community builder (which is my greatest wish).

3. I did not design this, I am using 2+ year old code that some dutch guys wrote on the joomla boards based upon an even older mod written for Mambo.

To further impress upon you how clueless I am in php, I have included some code before and after so you could tell where I inserted this code.

With these predicates, here is my code with my particulars replaced with yourdomain,yourcpanel, etc. This code is from register.php from com_register. The code I inserted has a comment in front of it. I am open to suggestions. I will not support it, I do not know how to fix it, back up your files before you play with this:

Code:

// use email address and name of first superadmin for use in email sent to user $query = &quot;SELECT name, email&quot; . &quot;\n FROM #__users&quot; . &quot;\n WHERE LOWER( usertype ) = 'superadministrator'&quot; . &quot;\n OR LOWER( usertype ) = 'super administrator'&quot; ; $database->setQuery( $query ); $rows = $database->loadObjectList(); $row2 = $rows[0]; $adminName2 = $row2->name; $adminEmail2 = $row2->email; //Begin CPanel Mod } $content = &quot;&quot;; $cpanel_user = &quot;mycpanel&quot;; // Cpanel Username $cpanel_pass = &quot;cpanelpass&quot;; // Cpanel Password $domain = &quot;mydomain&quot;; // Website Domain (if your domain is http://www.yourdomain.com use yourdomain.com $xskin = &quot;x&quot;; // Cpanel Skin (Cant Find It? Check the link to the left and only fill in the stars (usually only x) : <a href=&quot;http://www.domain.com:2082/frontend/****/&quot; target=&quot;_blank&quot;>http://www.domain.com:2082/frontend/****/</a>«») $quota = &quot;10&quot;; // Quota in MEGS (how much diskspace does one get. $smtpdomain = &quot;mail.yourdomain.org&quot;; // The Address Of The SMTP Server (smtp.domain.com, domain.com ect.) $pop3domain = &quot;mail.yourdomain.org&quot;; // The Address Of The POP3 Server (pop3.domain.com, domain.com ect.) // Don't Change Anything Below This Line $file = fopen(&quot;http://$cpanel_user:$cpanel_pass@$domain:2082/frontend/$xskin/mail/doaddpop.html?email=$username&amp;domain=$domain&amp;password=$pwd&quot;a=$quota&quot;, &quot;r&quot;«»); if (!$file) { $ok = FALSE; $message = &quot;Cannot Connect To The CPanel Server Files. Please Check The Config&quot;; } while (!feof ($file)) { $line = fgets ($file, 1024); if (ereg (&quot;already exists!&quot;, $line, $out)) { $ok = FALSE; } } fclose($file); if ($ok) { $message = &quot;SUCCESS!Your Account Is Setup!<BR />&quot;; $message .= &quot;User : $NewEmail@$domain<BR />&quot;; $message .= &quot;Pass : $pwd<BR />&quot;; $message .= &quot;POP3 : $pop3domain<BR />&quot;; $message .= &quot;SMTP : $smtpdomain<BR />&quot;; $form_fields=array_keys($_POST); $temp=&quot;\n&quot;; while($field=array_pop($form_fields)){ $temp.=&quot; $field : = $HTTP_POST_VARS[$field] \n&quot;; } mail($HTTP_POST_VARS['to'],&quot;Free Email&quot;,$temp); } echo &quot;$message&quot;; // This is the end of the CPanel Mod // Send email to user mosMail($adminEmail2, $adminName2, $email, $subject, $message); // Send notification to all administrators $subject2 = sprintf (_SEND_SUB, $name, $mosConfig_sitename); $message2 = sprintf (_ASEND_MSG, $adminName2, $mosConfig_sitename, $row->name, $email, $username); $subject2 = html_entity_decode($subject2, ENT_QUOTES); $message2 = html_entity_decode($message2, ENT_QUOTES); // get email addresses of all admins and superadmins set to recieve system emails $query = &quot;SELECT email, sendEmail&quot; . &quot;\n FROM #__users&quot; . &quot;\n WHERE ( gid = 24 OR gid = 25 )&quot; . &quot;\n AND sendEmail = 1&quot; . &quot;\n AND block = 0&quot; ; $database->setQuery( $query ); $admins = $database->loadObjectList(); foreach ( $admins as $admin ) { // send email to admin &amp; super admin set to recieve system emails mosMail($adminEmail2, $adminName2, $admin->email, $subject2, $message2); }
Thanks, tim.<br><br>Post edited by: tpintsch, at: 2007/07/29 03:34
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2909
Tranmir (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Re:Auto Email Creation 1 Year, 4 Months ago  
Tim,

Thanks for this information. This is a good start for the developer.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3057
sjmorrow (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Re:Auto Email Creation 1 Year, 2 Months ago  
BUMP

Any word on an auto account for Joomla?

Stan Morrow www.paramedicinfo.ca
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3067
admin (Admin)
Admin
Posts: 2468
graph
User Online Now Click here to see the profile of this user
joomlaplug JoomlaPlug.com
Re:Auto Email Creation 1 Year, 2 Months ago  
This feature is on our development list, however i do not have a time frame for this at the moment!

Ovidiu
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3347
sjmorrow (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Re:Auto Email Creation 1 Year ago  
So......Any word on this mod.

Just can't wait much longer.......

Stan Morrow www.paramedicinfo.ca
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Search JoomlaPlug.com

Download Joomla

All rights reserved to JoomlaPlug.com ©2006-2008!
Site powered by Joomla!