Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.

In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.

left Zymic Webmaster ForumsZymic Free Web HostingZymic Free Web Hosting - General Discussion & Help right
  Closed Topic Start new topic
left right
idoxlr8
post Jan 10 2009, 03:47 PM
Post #1


Newbie
*

Group: Members
Posts: 11
Joined: 8-December 08
From: Texas, USA
Member No.: 72,139



As we all know the free sites mail function is disabled and this creates problems for
your Joomla Installation. When a new user creates an account, Joomla tries to send him/her
an email. Simply turning off the New User Account Activation at Global Configuration/System
will not solve the issue.
Joomla still tries to send a welcome email to their account and there is no way to turn this off.

I have finally found the fix, but it requires editing the core code...
It's not hard just make sure that you backup a copy of the file that you are changing.

Lets get started...

1)ftp into your account

2)navigate to \components\com_user\controller.php

3)download controller.php to somewhere on your computer

4)make a copy of controller.php and save it somewhere safe

5)open controller.php with a text editor
See attached capture image below if you need visuals

6)on line 519 or there abouts look for
CODE
JUtility::sendMail($mailfrom, $fromname, $email, $subject, $message);


Change it to this:
CODE
//JUtility::sendMail($mailfrom, $fromname, $email, $subject, $message);


All we are doing is commenting out the mail function

7)on line 532 or there abouts look for:
CODE
JUtility::sendMail($mailfrom, $fromname, $row->email, $subject2, $message2);


Change it to this:
CODE
//JUtility::sendMail($mailfrom, $fromname, $row->email, $subject2, $message2);


Again all we are doing is commenting out the mail function

8)Save the file

9)upload(send it back) to your site with your ftp client
If it asks you to overwrite it, click "yes"

That's it, Now to put it to the test.
Open your site in your browser and logout if you are logged in.
Click Create An Account, fill in the details, click OK and if you did
everything right the error message will no longer be there...

Now you can have a more professional site!

Good Luck
Attached File  Jfunction.jpg ( 43.21k ) Number of downloads: 195
Go to the top of the page 
 
  + Quote Post
 Closed Topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 21st May 2013 - 01:49 PM