indra_uma has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am sending email with attachment using MIME::LITE from Linux environment.It is rendering properly in outlook(windows),android.But in MAC and iphone the attachment is either floating or it is seen at the top of the body of the email.Could you please let me know any changes has to be done in the email code so that it will render properly in MAC and iphone. Thanks in advance
  • Comment on Email attachment alignment is not proper in iphone and MAC

Replies are listed 'Best First'.
Re: Email attachment alignment is not proper in iphone and MAC
by AppleFritter (Vicar) on Aug 09, 2014 at 16:36 UTC

    Howdy indra_uma, welcome to the Monastery!

    Could you please let me know any changes has to be done in the email code

    In order to that, we will need to see, at the very least, the code you currently have. Furthermore, can you elaborate on what you mean by "the attachment is either floating or it is seen at the top of the body of the email"? Not having much experience with either OS X or iOS email clients, I can't tell.

    A sample (including full headers!) of an email that fails to display properly would be nice as well. My gut feeling is that there's an issue with one of the MIME headers, e.g. Content-Type, Content-Disposition etc. See MIME on Wikipedia for more information on these.

    Here's some information on how to ask questions effectively, too:

Re: Email attachment alignment is not proper in iphone and MAC
by soonix (Chancellor) on Aug 10, 2014 at 13:22 UTC
    Rendering of mails is completely in the responsibility of the receiver's mail client, e.g. if I read my mails in a text-only environment (mutt), all the sender's font specifications, placement of attachements etc. are ignored and there is nothing the sender can do about it.