co-operativeworld.org Posted September 1, 2017 Share Posted September 1, 2017 Hi, I have been working on this for a few days now. Everything is ok with the WHMCS system health, crons, etc. WHMCS is not sending hosting account welcome emails. I created a simple hosting account information myself and it works, it sends.... (below being the simple one). ************************************************************************************ Welcome and thank you. PLEASE READ THIS EMAIL IN FULL AND PRINT IT FOR YOUR RECORDS Thank you for your order from us! Your hosting account has now been setup and this email contains all the information you will need in order to begin using your account. If you have requested a domain name during sign up, please keep in mind that your domain name will not be visible on the internet instantly. This process is called propagation and can take up to 48 hours. Until your domain has propagated, your website and email will not function, we have provided a temporary url which you may use to view your website and upload files in the meantime. New Account Information Hosting Package: {$service_product_name} Domain: {$service_domain} You can use the Client Area to access your Cpanel, Upload your website, install ready made websites via softaculous, access your webmail, create new email accounts and much, much more. Please use your chosen email address and password you set, when signing up. If you are using an existing domain with your new hosting account, you will need to update the nameservers to point to the nameservers listed below. Nameserver 1: b1.bethechangehosting.life Nameserver 2: b2.bethechangehosting.life Thank you for choosing us. ********************************************************************************** Yet, when I use the default ones, they do not send. I have even tried to re-write the information welcome email as below, yet it will not send, ******************************************************************************** Dear {$client_name}, Welcome to your hosting account. PLEASE READ THIS EMAIL IN FULL AND PRINT IT FOR YOUR RECORDS Thank you for your order from us! Your hosting account has now been setup and this email contains all the information you will need in order to begin using your account. If you have requested a domain name during sign up, please keep in mind that your domain name will not be visible on the internet instantly. This process is called propagation and can take up to 48 hours. Until your domain has propagated, your website and email will not function, we have provided a temporary url which you may use to view your website and upload files in the meantime. New Account Information Hosting Package: {$service_product_name} Domain: {$service_domain} You can use the Client Area to access your Cpanel, Upload your website, install ready made websites via softaculous, access your webmail, create new email accounts and much, much more. Please use your chosen email address and password you set, when signing up. cPanel (Control Panel) Access, once your domain name: {$service_domain} has propagated; Control Panel URL: http://{$service_domain}:2083 Username: {$service_username} Password: {$service_password} Uploading your website once your domain name: {$service_domain} has propagated. FTP URL: ftp.{$service_domain} FTP Username: {$service_username} FTP Password: {$service_password} Thank you for choosing us. {$signature} ************************************************************************************* It states in the email logs, that this has sent, shows all the correct information and no missing information in the pop-up when clicked, yet does not send to the email address. Does anyone please have a clue why this is happening? As the simple one sends, yet not the one with more detailed account information. Any help would be very highly appreciated. Best Regards. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 1, 2017 Share Posted September 1, 2017 have you checked the system activity logs (utilities -> logs -> activity log) to conform they were sent with no errors ? i'd be tempted to either view the html in the template using the HTML button on the email template page... or view it directly in the database... I suppose it's possible there's some dodgy characters in the template Smarty code that you can't see by default. 0 Quote Link to comment Share on other sites More sharing options...
co-operativeworld.org Posted September 1, 2017 Author Share Posted September 1, 2017 Thank you brian, I will check your tips now. Although I have check the utility activity logs and they are fine with no problems. Yet not the other tips you have mentioned. I will do them now and get back to you, of which I hope is ok with you. Thank you and much appreciated. 0 Quote Link to comment Share on other sites More sharing options...
co-operativeworld.org Posted September 1, 2017 Author Share Posted September 1, 2017 Hi Brian, Thanks again for your help. I checked 'everything' you mentioned and all was in good order and code shape. So went to basics. Stripped out line by line, then repasted in line by line. I found the problem. Control Panel URL: http://{$service_domain}:2083 Being the problem. This is ALSO why the default emails will not send. Now if I change it to Control Panel URL: {$service_domain}:2083 then if works perfectly. So I think for some reason PHP in whmcs is crashing out at // within that line. So I am going to try HTML special chr codes in the HTML editor of the email template editor. I will let you know how it goes. Thanks again and your help was very highly appreciated. - - - Updated - - - NO GO. In the WHMCS email template editor, if I use // for // then it replaces them with // and then will not send that email. Yet stripping the // out of the Control Panel URL: http://{$service_domain}:2083 will allow the email to send. Even the default ones. Any ideas? Thanks again. - - - Updated - - - NO GO. In the WHMCS email template editor, if I use // for // then it replaces them with // and then will not send that email. Yet stripping the // out of the Control Panel URL: http://{$service_domain}:2083 will allow the email to send. Even the default ones. Any ideas? Thanks again. - - - Updated - - - Sorry for the double post - - - Updated - - - If use &_#_4_7_; for / Please remove underscores, This defaults it to / when using &_#_4_7_; 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 1, 2017 Share Posted September 1, 2017 it may be worth noting that if you look at the html in the default welcome email, the links are hyperlinked... <p><strong>Login Details</strong></p> <p>Username: {$service_username}<br />Password: {$service_password}</p> <p>Control Panel URL: <a href="http://{$service_server_ip}:2082/">http://{$service_server_ip}:2082/</a><br />Once your domain has propagated, you may also use <a href="http://www.{$service_domain}:2082/">http://www.{$service_domain}:2082/</a></p> those double slashes have been used in the templates for years, so it seems strange that it's causing you an issue... unless you've edited the template and the HTML is now wrong. depending on your WHMCS version, editing the email templates can be a pain in the proverbial - wherever possible, it's safer to do it via the HTML button or to edit directly in the database. 0 Quote Link to comment Share on other sites More sharing options...
co-operativeworld.org Posted September 1, 2017 Author Share Posted September 1, 2017 Hi Brian, Thanks again for your help and time. I have no idea why it is not working correctly, yet I tried the html editor with the following code inserted: Control Panel URL: <a href="http://{$service_domain}:2083">http://{$service_domain}:2083</a> Of which resulted in the following being displayed in the email template: Control Panel URL: http://{$service_domain}:2083 In the email Logs it showed the following was sent: http://testarea.work:2083 (as that is the domain I used to test stuff). Yet no email was sent to the email address. I removed the http:// part from: Control Panel URL: <a href="http:{$service_domain}:2083">http://{$service_domain}:2083</a> Of which trying both: Control Panel URL: <a href="{$service_domain}:2083">http://{$service_domain}:2083</a> and Control Panel URL: <a href="http://{$service_domain}:2083">{$service_domain}:2083</a> Yet BOTH would not send to the email address. So I tried: Control Panel URL: <a href="{$service_domain}:2083">{$service_domain}:2083</a> and that would not send to the email address either. So I defaulted back to just: Control Panel URL: {$service_domain}:2083 Of which worked and sent the to the email address. Showing, " Domain: testarea.work " within the email. So it would seem for some reason, WHMCS does not like http:// in front of its "Merge Fields(?)". To be honest Brian, I feel this would take a year of Sundays, not just a month to find what is causing this issue. Therefore I will endeavor to find the problem, else we may be typing backward and forwards here for a while to come. Should I find what is causing the problem, I will let you know in this post, below. Thanks again for you help and time, of which is highly appreciated. If you do manage to think of anything to try in the coming 'years' (just joking), or find something that may match a remedy to this situation. I would appreciate it very much if you could drop it in here, of which I will give it a try. Best Regards and Much Appreciation. - - - Updated - - - ** I have no idea why one of the 2083 is showing a space. It does not if I try edit. It is not in email template code either. Best Regards. - - - Updated - - - Sorry forgot to mention. Version of WHMCS is Version: 7.2.3 Best Regards. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 2, 2017 Share Posted September 2, 2017 To be honest Brian, I feel this would take a year of Sundays, not just a month to find what is causing this issue.Therefore I will endeavor to find the problem, else we may be typing backward and forwards here for a while to come. Should I find what is causing the problem, I will let you know in this post, below. Thanks again for you help and time, of which is highly appreciated. have you thought of opening a ticket with support (or Reseller Support) ? this is one of those problems that you might need to see up close to figure out what's going on... and especially to examine the HTML content to the template. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.