How to insert an image in the registration email

  • Posts: 107
  • Thank you received: 1
11 years 10 months ago #83092

hi there,

I try to insert <img> into the registration email. But it doesn't function as expected. In the receieved email, there is no image.

the code is:

<?php

defined('_JEXEC') or die('Restricted access');
?>
<img src="images/logo/logo.jpg" alt=""/><br/>
<?php echo JText::sprintf('HI_CUSTOMER',@$data->name);?>
<br/>
<?php echo JText::sprintf('THANK_YOU_FOR_REGISTERING',HIKASHOP_LIVE);?><br/>
<?php if($data->active){
  echo JText::sprintf('ACCOUNT_MUST_BE_ACTIVATED'); ?>
  <br/><br/>
  <a href="<?php echo $data->activation_url;?>"><?php echo $data->activation_url;?></a>
<?php } ?>
<br/><br/>
<?php echo JText::sprintf('YOU_CAN_LOG_IN_WITH');?><br/>
<?php echo JText::sprintf('HIKA_USERNAME').' : '.$data->username;?><br/>
<?php echo JText::sprintf('HIKA_PASSWORD').' : '.$data->password;?><br/>
<br/>
<?php if(!empty($data->user_partner_activated)){
  echo JText::sprintf('THANK_YOU_FOR_BECOMING_OUR_PARTNER',$data->user_id,$data->partner_url);
}?>
<br/>
<img src="images/logo/logo.jpg" alt=""/><br/>

Am I missing anything?

Last edit: 11 years 10 months ago by tinachou.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 10 months ago #83113

Hi,

You must enter a absolute url no the relative, because the mail search the image in the folder "images/..." on the computer, not on your website.

Replace the link by "http://yourWebSite/images/logo/logo.jpg"

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum