Phpmailer and embedded images.

Discussion in 'PHP' started by fatabbot, May 24, 2007.

  1. #1
    Hi,

    I use phpmailer to send out a newsletter with several images embedded.
    For some reason, SOME of the images are broken in the mail SOMETIMES.
    It's always completely ad random. Sometimes all images show up, sometimes none, sometimes a few...

    What could be the cause of this?


    Regards.
     
    fatabbot, May 24, 2007 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,897
    Likes Received:
    4,553
    Best Answers:
    123
    Trophy Points:
    665
    #2
    I've never had a problem with the images not embedding. I'd check your code and ensure that the image is available, the right format etc. When you email a particular image does it always embed? Is the failure always on a specific image?

    The only issue I have had with embedded images is not being able to attach an image by http address - they have to be stored locally.
     
    sarahk, May 24, 2007 IP
  3. fatabbot

    fatabbot Well-Known Member

    Messages:
    559
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    138
    #3
    No, like i said, it's completely ad random.
    I sent the same mail to 2 different addresses and when i looked at the mails, both had different images broken.
     
    fatabbot, May 24, 2007 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,897
    Likes Received:
    4,553
    Best Answers:
    123
    Trophy Points:
    665
    #4
    Please send me a test email: rainchx at gmail
     
    sarahk, May 24, 2007 IP
  5. fatabbot

    fatabbot Well-Known Member

    Messages:
    559
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    138
    #5
    Mail Sent.
    2 times :)
    Let me know what you received.
     
    fatabbot, May 24, 2007 IP
  6. sarahk

    sarahk iTamer Staff

    Messages:
    28,897
    Likes Received:
    4,553
    Best Answers:
    123
    Trophy Points:
    665
    #6
    Received 3 times, in all it skipped images 1, 6, 7, 8

    That was consistent behaviour and would make me wonder what's going on with them. How do they differ from images 2 - 5?
     
    sarahk, May 24, 2007 IP
  7. fatabbot

    fatabbot Well-Known Member

    Messages:
    559
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    138
    #7
    Do you have another email address where i can send the same mail?
     
    fatabbot, May 24, 2007 IP