Create email programmatically

Hi.

I am generating alerts programmatically without problem, also i need to send email when the alert is generated, the thing is that i don’t know if there is any function from SuiteCRM to create the email, i had been looking in this forum but i didn’t get so much that guide me to that function.

So, i ask, is there any function to send email programmatically?

Thanks.

I hope this can be done using general php mail function.

You can place php file in a custom module folder and put mail functions in that file and then access that file via module=module_name&action=file
check your inbox after running that

Cheers!

1 Like

Yes, i think creating a file with the function i need is a way to do it
Thanks

Check this for typical php mail function example - https://www.w3schools.com/php/func_mail_mail.asp

I think you can follow this link to do what you need.