Jump to content

Welcome Email New account not send automatically


Welio

Recommended Posts

Hi,

 

when i order a package email with account information not send automatically. All email for invoice and order are sent correctly.

 

I set correctly welcome email in service product to "Hosting account welcome email" and email template exists.

 

If i send email manually in whmcs it works.

 

Who can help me?

 

Regards

 

Antonio

Link to comment
Share on other sites

I read all documentation and searched in internet.

Logs doesn't catch this error

I try to add a template with only test write inside and set this to product as welcome email.

But email was not generated.

Is generated only if i force to resend welcome email with specific button

Link to comment
Share on other sites

In this log there isn't entry of email for new account.

 

For every one that has my problem i solved with this workaround:

 

I create hook:

 

<?php

 

 

function send_welio_email($vars) {

//send mail

$command = "sendemail";

$adminuser = "admin";

$values["messagename"] = "Hosting Account Welcome Email";

$values["id"] = $vars['params']['serviceid'];

$results = localAPI($command,$values,$adminuser);

 

//Log to WHMCS

 

$command = "logactivity";

$values["description"] = $results;

localAPI($command,$values,$adminuser);

 

 

 

 

 

 

}

 

add_hook("AfterModuleCreate",1,"send_welio_email");

 

 

?>

Link to comment
Share on other sites

In this log there isn't entry of email for new account.

 

For every one that has my problem i solved with this workaround:

 

I create hook:

 

<?php

 

 

function send_welio_email($vars) {

//send mail

$command = "sendemail";

$adminuser = "admin";

$values["messagename"] = "Hosting Account Welcome Email";

$values["id"] = $vars['params']['serviceid'];

$results = localAPI($command,$values,$adminuser);

 

//Log to WHMCS

 

$command = "logactivity";

$values["description"] = $results;

localAPI($command,$values,$adminuser);

 

 

 

 

 

 

}

 

add_hook("AfterModuleCreate",1,"send_welio_email");

 

 

?>

 

Thanks for the work around share though it should work without issues. If you want this to be working without using custom hooks maybe create a ticket for them to troubleshoot fully?

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated