Hi gang.
Today I am working on sending an email with the mail() function and attaching a .sql file (a dumped database) as part as an automatic backup system.
I am aware that you must use header to attach the file so I have created a function to do this. The email is being sent fine, and the attachment is included but the name is wrong it's only one byte (1). I think it may be a file/pathname issue.
Here is the actual email header that I am generating with my PHP, does anyone have ideas???
Thanks in advance.
This is a multi-part message in MIME format.
--<<<--_orb=--X[8a359a1e8ce7b34e03fc7b5ad800cf42]
Content-Disposition: attachment;
Content-Type: text/plain; name="/Users/northwest/sql/dbMCNorthWest01-12-04_16:23.sql"
Content-Transfer-Encoding: 7bit
filename="/Users/northwest/sql/dbMCNorthWest01-12-04_16:23.sql"
--<<<--_orb=--X[8a359a1e8ce7b34e03fc7b5ad800cf42]