Addendum:
After a little more research (Following your instructions) It appears to be a problem with the $this->email header. I've changed the other 2 variables and it works fine. Any other combination including the header fails. I don't have time to dig any further at the moment, hopefully later this evening.
Regards,
MPH
-----------
Janusz,
Thanks for the info. Here are the parameters being passed to the mail command. They all look normal to me. But I've not programmed anything this involved before.
Some of it may not look quite right as I've removed any personal information, email addresses etc... I did verify that the original values are correct and the file pointed to does exist.
These are the variables and their values after executing the $ret = mail($mail, $this->subject, "", $this->header); statement.
$mail = Company Name Removed <my_email@address.com>
$this->email
to = Company Name Removed <my_email@address.com>
cc =
bcc =
attachment = ../company/0/pdf_files/Invoice11.pdf
boundry = a5bc2dd9d48cdbf1c107d47cadbcd068
header = From: My Company <my_email@address.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=a5bc2dd9d48cdbf1c107d47cadbcd068
This is a multi-part message in MIME format
--a5bc2dd9d48cdbf1c107d47cadbcd068
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Dear Test Customer
Attached you will find Invoice No. 11
Kindest regards
Administrator
My Company
My Address
My City
00000
my_email@address.com
000.000.0000
--a5bc2dd9d48cdbf1c107d47cadbcd068
Content-Type: application/pdf; name=Invoice11.pdf
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=Invoice11.pdf
Removed uuencoded data.
--a5bc2dd9d48cdbf1c107d47cadbcd068--
subject = Invoice No. 11
body = Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Dear Test Customer
Attached you will find Invoice No. 11
Kindest regards
Me :)
My Company
My Address
My City
00000
my_email@address.com
000.000.0000
ret = false
Thanks,
MPH
I'd rather have a bottle in front of me than a frontal lobotomy.