Problem sending Activation Email

15 years 3 months ago #87299 by polvora98
Problem sending Activation Email was created by polvora98
I'm hosting my website in IXwebhosting, when I just installed J1.5 version after many problems I receive instruction from the company support to add some line of code to ../libraries/phpmailer/phpmail.php file.

Then I could send the registration email to the users, but using the original login module of the Joomla project.

Then I installed CB1.2 and after set up the global configuration, and the Registration tab so only CB can administer users I can't receive the activation email.

Since IXwebhosting only allow PHPmail function for sending emails I also need to explicity add a valid email in SENDMAIL_FROM

My question is which are the files in CB that handles the registration email?

Thanks

Please Log in to join the conversation.

15 years 3 months ago #87303 by krileon
Replied by krileon on topic Re:Problem sending Activation Email
[code:1]/administrator/components/com_comprofiler/library/phpmailer/[/code:1]

That what you're after?


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

15 years 3 months ago #87309 by polvora98
Replied by polvora98 on topic Re:Problem sending Activation Email
It's amazing the world you can open with a single line of code.

I added the lines requested by my hosting and it worked more than well.

Krileon, you rock!


"The best thing is not to know everything but know the phone number of the guy knows everything"

Please Log in to join the conversation.

15 years 3 months ago #87317 by nant
Replied by nant on topic Re:Problem sending Activation Email
polvora98 wrote:

It's amazing the world you can open with a single line of code.

I added the lines requested by my hosting and it worked more than well.

Krileon, you rock!


"The best thing is not to know everything but know the phone number of the guy knows everything"


Can you post exact lines you added?

Please Log in to join the conversation.

15 years 3 months ago #87333 by polvora98
Replied by polvora98 on topic Re:Problem sending Activation Email
Well,

First I receive this info from my hosting server....
I want to inform you that you could not send e-mail from php script using SMTP server as we have not SMTP authentication on it. To send e-mails you should use php Mail Function, also it is necessary to add string this string:
ini_set('sendmail_from', 'webmaster@domain.com');
into your php script before mail() function.
Please try to do it and then check if your e-mail could be successfully sent and received.

So I enter the file ...libraries/phpmailer/smtp.php
and changes this lines in order to get the activation email from the ORIGINAL joomla login component.

the numbers at the beginning are the lines numbers.

61 var $From = "webmaster@domain.com";
67 var $FromName = "Webmaster Cangrejo";
74 var $Sender = "webmaster@domain.com";
134 var $ConfirmReadingTo = "webmaster@domain.com";
142 var $Hostname = "mail.domain.com";
156 var $Host = "mail.domain.com";
433 ini_set('sendmail_from', 'webmaster@domain.com');
442 ini_set('sendmail_from', ''webmaster@domain.com');

This is the changes I did in the CB file
/administrator/components/com_comprofiler/library/phpmailer/phpmailer.phpmailer

76 var $From = 'webmaster@domain.com';
82 var $FromName = 'WebMaster ';
89 var $Sender = 'webmaster@domain.com';
149 var $ConfirmReadingTo = 'webmaster@domain.com';
157 var $Hostname = 'mail.domain.com';
171 var $Host = 'mail.domain.com';


I'm not sure what I did but assuming that my host server needs some kind of real POP3 account of the same domain as the sender email, I suppose these lines should include that info.

It just worked.
Thanks again to you all.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.200 seconds

Facebook Twitter LinkedIn