First off thanks for the help yesterday. The Content-Disposition thing worked perfectly and the new system is looking lovely.
On a slight tangent, we have a second system that is getting on a bit, and uses PHPMailer for its sending operations. Long term I am going to (once I've persuaded the boss) change it to Swift, but in the short term they want to get it working with PHPMailer.
The main thing I've noticed is that when the 2 mailers create the base64 for the image file Swift has an extra line at the top. When translated into text it is something like JFIF.... or aGIF32...., but still unique to each image.
This is the top few lines from a base64 encoded image in PHPMailer
Code: Select all
AQEBAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/2wBDAQEBAQEBAQICAgICAgICAgICAgIC
AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/wAARCADwAUADAREA
AhEBAxEB/8QAHwAAAQQCAwEBAAAAAAAAAAAAAAUGBwgECQEDCgIL/8QAWhAAAQIEBAMDBwgFCQUF
BAsAAQIDBAUGEQAHEiEIEzEiQVEJFBcjMmFxFUJXgZGYodYWJLHB8BgZMzhSeLjR4SVicoLxJzRD
kpcKRFjUKDU2N0VTVmODosT/xAAcAQABBQEBAQAAAAAAAAAAAAAAAQIDBAUGBwj/xABIEQABAwIDCode: Select all
/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQECAQEB <--- this is the additional line
AQEBAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/2wBDAQEBAQEBAQICAgICAgICAgICAgIC
AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/wAARCADwAUADAREA
AhEBAxEB/8QAHwAAAQQCAwEBAAAAAAAAAAAAAAUGBwgECQEDCgIL/8QAWhAAAQIEBAMDBwgFCQUF
BAsAAQIDBAUGEQAHEiEIEzEiQVEJFBcjMmFxFUJXgZGYodYWJLHB8BgZMzhSeLjR4SVicoLxJzRD
kpcKRFjUKDU2N0VTVmODosT/xAAcAQABBQEBAQAAAAAAAAAAAAAAAQIDBAUGBwj/xABIEQABAwIDWould you be able to tell me / point me in the right direction of how you have included this extra information, so I can attempt a hotfix to PHPMailer for the short term solution, while we re-build the old mailer in Swift
If this is too much trouble I understand completely, as its really nothing to do with Swift itself.