Post by harvan75 » Mon Dec 26, 2011 6:26 pm

The problem is that when a gift voucher is purchased the email that is sent fails to show either the theme image, or the store logo.

This occurs when the email option under Admin/System is set to either Email or SMTP (I have moved to SMTP to ensure that the sender is shown as my domain, previously the sender was coming through as MYNAME@h153.cpanellogin.net, when it should be ANOTHERNAME@haguepublishing.com).

I am in the process of developing my store. I am using 1.5.1.3 upgraded from 1.5.1.0 with Author Module 1.5 installed (version for 1.5.1.3).

Any advice would be appreciated. I am aware that Miranda listed this as issue 563 but no solution was presented. The only comment was that this was due to the mail client.

Andrew

Newbie

Posts

Joined
Mon Dec 26, 2011 6:09 pm

Post by cartpro » Mon Dec 26, 2011 6:41 pm

Are you using the Dedicated hosting? Since opencart adds the logo/image as attachment, some email servers will mark them as suspect (SPAM) and so the email client won't display the images. You can open the email header and see the settings.

I had the same problem with one of my client after moving to dedicated hosting. The solution was to use the https link back to the site instead of embedding in the email.

Extensions: Multi-vendor extension
Shipping Modules: SuperShip Pro

Multi-Vendor Marketplace:Opencartmarketplace.com
IceCat to Opencart: Import millions of IceCat products to Opencart


New member

Posts

Joined
Fri Oct 29, 2010 1:50 am

Post by harvan75 » Tue Dec 27, 2011 11:46 am

Not sure what Dedicated hosting is. However, I have included the header from the email for information. I have whitelisted the address in my Spam filter so it shouldn't be a problem. How can I use the https link back to the site instead of embedding in the email?


-------- HEADER --------
From: - Mon Dec 26 16:52:19 2011
X-Account-Key: account2
X-UIDL: UID9928-1235999957
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:
Received: (qmail 23377 invoked from network); 26 Dec 2011 00:52:06 -0800
Received: from asp.reflexion.net (69.84.129.233) by h104.plesklogin.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 26 Dec 2011 00:52:05 -0800
Received: (qmail 2353 invoked from network); 26 Dec 2011 08:52:04 -0000
Received: from unknown (HELO mail-is-05.app.dca.reflexion.local) (10.81.14.5) by 0 (rfx-qmail) with SMTP; 26 Dec 2011 08:52:04 -0000
Received: by mail-is-05.app.dca.reflexion.local (Reflexion email security v6.60.3) with SMTP; Mon, 26 Dec 2011 03:52:04 -0500 (EST)
Received: (qmail 5922 invoked from network); 26 Dec 2011 08:52:03 -0000
Received: from unknown (HELO h153.cpanellogin.net) (68.64.155.71) by 0 (rfx-qmail) with (DHE-RSA-AES256-SHA encrypted) SMTP; 26 Dec 2011 08:52:03 -0000
Received: from h153.cpanellogin.net ([68.64.155.71] helo=haguepublishing.com) by h153.cpanellogin.net with esmtpa (Exim 4.69) (envelope-from <MYNAMEt@haguepublishing.com>) id 1Rf6Hq-0004TF-CK for ANOTHERNAME@konomex.com; Mon, 26 Dec 2011 00:52:02 -0800
MIME-Version: 1.0
To: <ANOTHERNAME@konomex.com>
Subject: You have been sent a gift voucher
Date: Mon, 26 Dec 2011 08:52:02 +0000
From: Hague Publishing<NAME@haguepublishing.com>
Reply-To: Hague Publishing<NAME@haguepublishing.com>
X-Mailer: PHP/5.3.6
Content-Type: multipart/related; boundary="----=_NextPart_58d9aa043207e0972d98298da3ddce22"
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - h153.cpanellogin.net
X-AntiAbuse: Original Domain - konomex.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - haguepublishing.com
X-Source:
X-Source-Args:
X-Source-Dir:
X-Rfx-Message-Id: 2053817134/6363672822/0001
X-Rfx-Recipient-Address: NAME@konomex.com

Andrew

Newbie

Posts

Joined
Mon Dec 26, 2011 6:09 pm

Post by harvan75 » Sat Jan 14, 2012 9:36 am

I still have the problem, does anyone have a solution?

Andrew

Newbie

Posts

Joined
Mon Dec 26, 2011 6:09 pm

Post by yutaka » Fri Feb 10, 2012 6:50 pm

I had a same problem on thunderbird and Apple mail. (Gmail is OK.)
So, I made the following correction in /system/library/mail.php. It seems solved.

around line 50.

before:

Code: Select all

$this->attachments[] = array(
	'filename' => $filename,
	'file'     => $file
);
after:

Code: Select all

$size = getimagesize($file);

$this->attachments[] = array(
	'filename' => $filename,
	'file'     => $file,
	'mime'     => $size['mime']
);

around line 140.

before:

Code: Select all

$message .= 'Content-Type: application/octetstream; name="' . basename($attachment['file']) . '"' . $this->newline;
after:

Code: Select all

$message .= 'Content-Type: ' . $attachment['mime'] . '; name="' . basename($attachment['file']) . '"' . $this->newline;

around line 142.

before:

Code: Select all

$message .= 'Content-Disposition: attachment; filename="' . basename($attachment['filename']) . '"' . $this->newline;
after:

Code: Select all

$message .= 'Content-Disposition: INLINE; filename="' . basename($attachment['filename']) . '"' . $this->newline;
I hope this helped you.

Newbie

Posts

Joined
Fri Feb 10, 2012 6:10 pm

Post by harvan75 » Mon Feb 27, 2012 9:11 pm

Yatuka - thanks, this worked perfectly.

We're going live in a week and I wasn't expecting to be able to provide the professional product!

Many thanks

Andrew

Newbie

Posts

Joined
Mon Dec 26, 2011 6:09 pm

Post by matteo39 » Fri Mar 22, 2013 12:36 am

yutaka wrote:I had a same problem on thunderbird and Apple mail. (Gmail is OK.)


I hope this helped you.
perfect. works fine.
thanks!!!

Newbie

Posts

Joined
Fri Mar 22, 2013 12:33 am

Post by ddcarobs » Fri Feb 26, 2016 11:34 am

I'm having the same issue with 1.5.2, but my code is different than yutaka mentioned...

Lines 33-53
public function setSubject($subject) {
$this->subject = $subject;
}

public function setText($text) {
$this->text = $text;
}

public function setHtml($html) {
$this->html = $html;
}

public function addAttachment($filename) {
$this->attachments[] = $filename;
}

public function send() {
if (!$this->to) {
trigger_error('Error: E-Mail to required!');
exit();
}

but the other lines are similar:
132-138
$message .= '--' . $boundary . $this->newline;
$message .= 'Content-Type: application/octet-stream; name="' . basename($attachment) . '"' . $this->newline;
$message .= 'Content-Transfer-Encoding: base64' . $this->newline;
$message .= 'Content-Disposition: attachment; filename="' . basename($attachment) . '"' . $this->newline;
$message .= 'Content-ID: <' . basename(urlencode($attachment)) . '>' . $this->newline;
$message .= 'X-Attachment-Id: ' . basename(urlencode($attachment)) . $this->newline . $this->newline;
$message .= chunk_split(base64_encode($content));

any ideas on how to change the first set of code? Any help would be greatly appreciated!!!!!

Thanks,
Michelle

Newbie

Posts

Joined
Thu Dec 11, 2014 2:23 am
Who is online

Users browsing this forum: No registered users and 48 guests