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

TOPIC: mail()

mail() 2 months 5 days ago #67797

  • fozan
  • fozan's Avatar
  • Offline
  • Junior Member
  • Posts: 22
  • 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() 2 months 4 days ago #67815

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 7033
  • Thank you received: 1076
  • Karma: 250
Use the SugarPHPMailer Class, see example here

github.com/salesagility/SuiteCRM/blob/ma...UpdatesHook.php#L361
The administrator has disabled public write access.

mail() 2 months 4 days ago #67862

  • fozan
  • fozan's Avatar
  • Offline
  • Junior Member
  • Posts: 22
  • 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() 2 months 3 days ago #67873

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 7033
  • Thank you received: 1076
  • Karma: 250
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.
The administrator has disabled public write access.
Time to create page: 0.094 seconds
Powered by Kunena Forum