I am trying to $object -> Attachment('directory/file.pdf'); attach a pdf file to an email being sent out using the PHPMailer class script. The pdf file is almost 4mb, and after testing with other files I've come to the conclusion the pdf file is to large. Needless to say, the PHPMailer script is timing out, and I don't even receive the email when trying to send the 4mb file attached email.
Currently I am using $object->IsSMTP because our testing server is running IIS Web Server on a Windows OS. The LIVE server is UNIX and i can use $object->IsMail . What are some solutions to my problem to getting it work for the above cases?