Thanks a lot for you amazing class!
I was using your it to create ".doc" file and send it as email attachments, i had no problem for years. Now, on the recipient side the attachments are corrupted.
-- I tested the same codes on different web servers on different networks,
-- i tried sending ".docx" and ".pdf" instead of ".doc" files,
-- I tried using smtp class,
but, still no success, all files are corrupted. Do you have any idea to fix this?
* Trying to guess your e-mail address.
* It is better that you change this line to your address explicitly.
* $from_name="My Name";
* Change these lines or else you will be mailing the class author.
$subject="Test email with attachements";
* Set the Return-Path header to define the envelope sender address to which bounced messages are delivered.
* If you are using Windows, you need to use the smtp_message_class to set the return-path address.
* A message with attached files usually has a text message part
* followed by one or more attached file parts.
$text_message="The Test File from ".$Name." is attached.";
* The message is now ready to be assembled and sent.
* Notice that most of the functions used before this point may fail due to
* programming errors in your script. You may safely ignore any errors until
* the message is sent to not bloat your scripts with too much error checking.
echo "Error: $error\n";
hakan blacksnake - 2014-09-03 09:55:10 - In reply to message 4 from Manuel Lemos
Of course i replaced the strings in your email address.
MS Office 2010 / 2013 both give the same error message when i try to open the attachement.
I sent email to different email addresses, i received with different email clients like MS Outlook 2010 and gmail web client. Result is the same.
Now i'am sending a ".docx" file to the other email address you provided.
hakan blacksnake - 2014-09-03 10:32:45 - In reply to message 5 from hakan blacksnake
When i try to open ".pdf" attachment with Adobe Acrobat Standart, it says"Adobe could not open because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)".