-
Currently I have a table where I'm displaying all my records. Now I have a functionality to export the table data to an excel sheet. Now when I click export the excel sheet goes to my C:\Xammp\htdocs folder. The following is the code I'm using to save the excel sheet.
Now here I'm saving the file name to $attachment and I'm writing the following in my send_email function:
Now here I'm able to successfully get my email, but it only shows me the subject and message, but no attachments were attached. So where exactly am I going wrong with adding my attachment here? |
Beta Was this translation helpful? Give feedback.
Answered by
Synchro
Jan 26, 2022
Replies: 1 comment
Answer selected by
Jay-Bruh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Answered on Stack Overflow