Menu
SuiteCRM dedicated support by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: mail()

mail() 4 months 1 week ago #67797

  • fozan
  • fozan's Avatar
  • Offline
  • Junior Member
  • Posts: 30
  • Karma: 0
Can we use mail() function in suitecrm ?
If yes then how could we use it, whenever i use it does not send email ywiss its hardcoded and Where to use it ?
The administrator has disabled public write access.

mail() 4 months 1 week ago #67815

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 7883
  • Thank you received: 1221
  • Karma: 286
Use the SugarPHPMailer Class, see example here

github.com/salesagility/SuiteCRM/blob/ma...UpdatesHook.php#L361

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.

mail() 4 months 1 week ago #67862

  • fozan
  • fozan's Avatar
  • Offline
  • Junior Member
  • Posts: 30
  • Karma: 0
I have tried it too it give fatal error in logs given below:

Thu Jun 14 12:30:22 2018 [57585][18d186db-3231-5dcb-bd2f-5b11a03296a3][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteP/modules is not a file or a dir.
The administrator has disabled public write access.

mail() 4 months 1 week ago #67873

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 7883
  • Thank you received: 1221
  • Karma: 286
I've seen that error often before and I don't think it is related to whatever you were doing with the Sugar PHP Mailer.

You can delete "cache/themes" directory and it will get recreated.

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.
Time to create page: 0.051 seconds
Powered by Kunena Forum