Jump to content

Send SMTP email in hook


hogava

Recommended Posts

Hi,

In the past, I used the mail function to send mail in the hook. but now I changed my host and that mail function disabled. 

I searched the community and saw some methods, but none of them did not work for me. 

Please send me PHP code for this that works.

Thanks

Link to comment
Share on other sites

Are you trying to setup mail sending in WHMCS, like support tickets and invoice notices, or like from a module within WHMCS? 

If outside of whmcs, using phpmailer and its smtp authentication to your mail server would be the easiest option.   Another option would be using a service like mailgun, sendgrid, etc.

Link to comment
Share on other sites

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