AwoCoupon plugin for AcyMailing - missing file extension


  • Default avatar
    michael964    
     26 days ago
    0

    Hi,

    if I send a Test mail from Acymail with an AWO voucher the attached voucher file comes without file extension.
    On an apple device I will see the right image embedded in the mail, but in Microsoft Outlook I see only the attached file without the file extension. So the preview doesn't  work.
    If I save the file and rename xxx.png I can see the right image.

    I use the latest version of Acymailing, AWO coupong + plugin, PHPMailer in Acymailer, PHP Version 7.4 and Joomla 3.10.8

  • Your avatar
    seyi    
     26 days ago
    0

    Hello,

    Not sure I understand.  The image file generated by AwoCoupon does com with the extension.  What is the tag you are using?  Are you able to test it on another email system?
  • Default avatar
    michael964    
     26 days ago
    0

    If I send the voucher directly from AwoCoupon, all is ok. If I send the coupon from Acymailer via AwoCoupon plugin, the picture in the email are voucher1.__ and not voucher1.png. So without the file extension .png e.g. Outlook doesn‘t show the voucher.

    I do not know if the problem comes from AwoCoupon plug-in or from Acymailer.

  • Your avatar
    seyi    
     23 days ago
    0

    Or it could be outlook suppressing the image.  Have you tried another email system just to test it out?
  • Default avatar
    michael964    
     23 days ago
    0

    As I told you in Apple devices the picture will be shown, but Microsoft Outlook is the most common Mail system.

    If I send a Test mail directly from AWO Coupon all is ok, but not with the AWO plugin for Acymailer if I send the test mail from Acymailer.

    I could send a request to Acymailer support if you mean that the problem is there and not the plugin.

  • Default avatar
    michael964    
     22 days ago
    0

    Unfortunately the support from Acymailer could not help in this case. I shold ask you.
  • Default avatar
    michael964    
     22 days ago
    0

    Do you have any news for me?
  • Your avatar
    seyi    
     22 days ago
    0

    Hello,

    Do not use outlook so not able to test this scenario, but outlook is not an email client, it simply pulls from the email client connected to it.  So the first thing to do is check the email client connected to outlook.  If it has the image displayed, then there should be no reason outlook does not have it.  So may just need to check the settings in outlook.
  • Default avatar
    michael964    
     21 days ago
    0

    I really can't believe you aren't testing email receipt through Outlook. Outlook is the most widely used email program in the world. In business it is probably used almost exclusively.

    Can you at least tell me where the name of the file attachment (Voucher1. ) comes from?

    This is the name of the voucher as a file attachment, but I didn't assign it that way.

  • Your avatar
    seyi    
     20 days ago
    0

    Hello,

    The code is here:
    \plugins\acymailing\awocoupon\awocoupon.php

    And the full code for setting the image is here:
    <?php
                            
    if(!empty($r_file)) {
                                $cleanup_data['files'][] = $r_file;

                                $image_part pathinfo($r_file);
                                $elements explode('|',$allresults[1][$i]);
                                $is_embed intval($elements[5])==true false;
                                if($is_embed) {
                                    $tags[$oneTag] = '<div><img src="cid:couponimageembed'.(++$counter).'"></div>';
                                    $email->AddEmbeddedImage($r_file,'couponimageembed'.($counter),'voucher'.($counter).'.'.$image_part['extension']);
                                }
                                else $email->AddAttachment($r_file,'voucher'.(++$counter).'.'.$image_part['extension']);
                            }
    ?>

    Where $r_file is the full image file path.