Jump to content
jfreak53

Send Emails from Modules

Recommended Posts

I'm looking for a way to send an email using the internal email system of WHMCS but to outside email addresses from a module. I have looked at the API calls:

Send Email

Send Admin Email

 

But those do not allow me to specify to what email address I want to send to. I am not sending to an admin or to a customer. This is a custom internal module for sending support to our DC techs, hence there is no admin user.

 

So I need to specify the to email and preferably the from email.

Share this post


Link to post
Share on other sites

i believe this is not possible using sendEmail, sendAdminEmail APIs, you may create your own function using PHPMailer and SMTP info from DB to send emails to whatever email address you want to.

 

if you need help with it, just ask ;)

Share this post


Link to post
Share on other sites

Eww, that's an idea, I never thought about that.

 

I've used PHPMailer before, but what is the class in WHMCS that I am using to create a new PHPMailer object?

Share this post


Link to post
Share on other sites
Hi sentq,

 

We have a similar issue. Can you please take a look at it here:

http://forum.whmcs.com/showthread.php?101099-Modifying-payment-calback-php-script-to-send-notification-mails

 

We would like to use phpmailer because the sendadminemail function don`t deliver every time mails, and it have delay of minutes.

i looked at your thread, you can't send messages to external email addresses, as i suggested before in this thread you need to create your own function using PHPmailer (included by default in all WHMCS versions) WHMCS use it to send emails out

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines