Post by myopen » Fri Aug 14, 2009 9:44 pm

Hello everyone,sorry my bad English. I am new to the Forum. I use opencart V 1.3.0 and I wanted to point out that the email does not work when I post pictures.

may be a bug?

there is a solution to solve the problem?

New member

Posts

Joined
Fri Aug 14, 2009 9:27 pm

Post by wal_j » Sat Aug 15, 2009 2:20 am

I think the issue is due to the image being added as a relative URL.

You need to add the image using the full URL to the image.

You can still upload the image using the FCKEditor, but when you add it to the email you need to specify the full URL.

Hope this helps
Alex

New member

Posts

Joined
Tue May 12, 2009 11:51 pm

Post by myopen » Sat Aug 15, 2009 2:37 am

thanks you .. I can explain better how do I specify the url? I make an example please

New member

Posts

Joined
Fri Aug 14, 2009 9:27 pm

Post by wal_j » Sat Aug 15, 2009 4:35 am

when adding an image instead of adding

Code: Select all

/image/userfiles/image/myimage.jpg
you need to specify the full URL to the image...

Code: Select all

http://www.yourDomain.com/image/userfiles/image/myimage.jpg
Alex

New member

Posts

Joined
Tue May 12, 2009 11:51 pm

Post by myopen » Sat Aug 15, 2009 5:18 am

hello .. I have tried as you suggested me ... but does not work .. if I send an email to an admin by my client, and I put a picture mail does not arrive. if I send a simple email, with no image, the email reaches the customer.

How can I fix this? Using opencart 1.3.0

PS= In new versions of opencart there is always the same problem?

New member

Posts

Joined
Fri Aug 14, 2009 9:27 pm

Post by myopen » Sat Aug 15, 2009 5:14 pm

Someone can help me please? Daniel .. why not respond?

New member

Posts

Joined
Fri Aug 14, 2009 9:27 pm

Post by wal_j » Sat Aug 15, 2009 5:47 pm

when you have added the image to the email, before you send it, click "source" on the editor,

copy and paste the source code here.

Alex

New member

Posts

Joined
Tue May 12, 2009 11:51 pm

Post by myopen » Sat Aug 15, 2009 6:52 pm

thanks for the help .. but it is not clear what you say. You can explain better please?

I put the image after the transform in code.
copy and paste the source code here. Here where ?????

If the code I see why they have to copy and paste?

New member

Posts

Joined
Fri Aug 14, 2009 9:27 pm

Post by SuperJuice » Sat Aug 15, 2009 6:56 pm

Paste it into this forum.

here = this forum.

Active Member

Posts

Joined
Thu Aug 13, 2009 12:06 pm

Post by Daniel » Sat Aug 15, 2009 8:37 pm

I think there is a way of setting FCK editor to automaticly change the url of images before the forum is submitted.

don't forget that most email clients block images that are not attached to the email.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by myopen » Sat Aug 15, 2009 9:52 pm

For superjuice de code is:

Code: Select all

<p><img width="273" height="57" alt="" src="/image/userfiles/image/1.jpg" />&nbsp;</p>
but.. I rewrite it manually but with the whole direction of

Code: Select all

<p><img width="273" height="57" alt="" src="http://www.mysite/opencart/image/userfiles/image/1.jpg" />&nbsp;</p>



for daniel


thanks ... but in this case what is being done to solve the problem? How can I send by email an admin panel to subscribers of the newsletter with pictures in it? If there is a possibility with the fck editor to insert images, why not send the email? How can I fix this?

New member

Posts

Joined
Fri Aug 14, 2009 9:27 pm

Post by wal_j » Sat Aug 15, 2009 10:56 pm

Daniel wrote:I think there is a way of setting FCK editor to automaticly change the url of images before the forum is submitted.
I had a quick look at this the other day, but didnt spend much time on it, but from what I read you need to setup the Whole fckEditor up to use full URLs.

I think there should be a way to achieve this too, but i am not familiar with how fckEditor works and i am sure there are more adequatly skilled people than me that can look into this.

New member

Posts

Joined
Tue May 12, 2009 11:51 pm

Post by wal_j » Sat Aug 15, 2009 10:59 pm

myopen wrote:I rewrite it manually but with the whole direction of

Code: Select all

<p><img width="273" height="57" alt="" src="http://www.mysite/opencart/image/userfiles/image/1.jpg" />&nbsp;</p>
This looks ok to me, if the image exists at that location. Check that all read permissions for the image are correct.
Not much else i can suggest.
Alex

New member

Posts

Joined
Tue May 12, 2009 11:51 pm

Post by myopen » Sun Aug 16, 2009 3:46 am

to be correct permissions must be 755 or more?

New member

Posts

Joined
Fri Aug 14, 2009 9:27 pm

Post by SuperJuice » Sun Aug 16, 2009 6:45 am

myopen wrote:to be correct permissions must be 755 or more?

Well you don't want to go more than that.

If you can access it by pasting your URL into a browser then the perms are fine. What does it show in the email client when you include the full URL for the image?

As Daniel has said
- The email client may not be displaying images from external sources (most likely)
- The email client may not be viewing the mail as html

I will test it myself and get back to you.

-edit-

I just checked it and it works 100% fine if you place in the full url.

Method I used
1. Admin -> Customers -> Email
2. Added 'To' and 'Subject'
3. In the body clicked the image icon and enter the full URL "http://www.mysite.com/image/cache/apple ... 20x120.jpg" and added Alternative Text "This is an image"
4. Sent the email
5. Opened the email in Thunerdbird and the image wasn't shown because it was linked to an external site (as expected), clicked "Load Images" and it displays as per normal.


Did find another bug though, the subject looks encoded when it shouldn't be, so my quotes turned up in the email as &#039.

Active Member

Posts

Joined
Thu Aug 13, 2009 12:06 pm

Post by myopen » Sun Aug 16, 2009 7:47 am

I do not understand. So ... if I send the email image sena l mail arrives to the customer. If I insert an image from fck editor, the path is correct "http://www.mysite.com/opencart/image/us ... mage/1.jpg", but the email does not arrive to the customer.

I do the same as superjuice:

The method used
1. Admin -> Customers -> Email
2nd Added 'To' and 'Subject'
3rd In the body image clicked the icon and enter the full URL "http://www.mysite.com/image/cache/apple ... 20x120.jpg" Alternative Text and added "This is an image"
4th Sent the email

... But nothing gets to the customer!

How do I get in email client of the message and email ... mi date un consiglio per favore? ... how can riolvere the problem? If fck editor gives me the ability to send messages .. because the message does not arrive to the customer? I have to change the permissions?

I have given you advice please?

New member

Posts

Joined
Fri Aug 14, 2009 9:27 pm

Post by SuperJuice » Sun Aug 16, 2009 8:14 am

Is the email getting to the customer? and they can't see the image?

Or it isn't getting to the customer at all?

If the email isn't getting to the customer at all, it is a mail configuration problem, not an attachment problem.

What settings do you have in your mail configuration?

The file is not being include as an attachment to the email, it is just an img tag pointing to URL.

Active Member

Posts

Joined
Thu Aug 13, 2009 12:06 pm

Post by myopen » Sun Aug 16, 2009 8:39 am

Maybe I do not explain well. I create the email as you do:
The method used
1. Admin -> Customers -> Email
2nd Added 'To' and 'Subject'
3rd In the body image clicked the icon and enter the full URL "http://www.mysite.com/openacart/image/userfiles/1.jpg" Alternative Text and added "This is an image"
4th Sent the email

------------

The email does not arrive to the customer selected. If I do not insert the image the email arrives to the customer selected. I do not understand this, why does not the email with the image.

When you ask me:

What settings do you have in your mail configuration?

you talk of this part:
Image

... if so ... how should I set?
... if no ... How do I get the email to the customer with the image?

New member

Posts

Joined
Fri Aug 14, 2009 9:27 pm

Post by SuperJuice » Sun Aug 16, 2009 11:14 am

If the behaviour is as you describe:

No Image -> Mail arrives

Insert Image -> Mail doesn't arrive

I am going to bet that it is a spam filter on the receiving end treating the incoming message as spam because it links to an image on an external site. This has nothing to do with OpenCart and I think you should look at your mail logs.

tail -n200 /var/log/mail.log (on Debian based system) and check that the email enters the queue and is processed, from here on it isn't OpenCart's problem.

I think you will find the email is being sent out, it's just the destination is discarding it as spam because of the image link.

Active Member

Posts

Joined
Thu Aug 13, 2009 12:06 pm

Post by myopen » Sun Aug 16, 2009 2:21 pm

I did a test score using hotmail email box. If my client has a hotmail email box:
1) with opencart if I send email without an image to the client with hotmail = email arrives
2) if the admin sending the mail message with an image = the hotmail email client does not arrive.

If it is as you say, how can I set up filters? Even if ... What this filter does not make sense. In this case I could never send email with images with opencart, since all hosts have mail filters, anti-spam, and then observed the image inserted as spam. Is this possible to send an email with images that all customers can receive and display?

In these cases as we proceed?
You advice me what to do to insert an image and can be visualizar to all my clients, when in admin to create an email newsletter?

excuse my bad english and thanks for the help

New member

Posts

Joined
Fri Aug 14, 2009 9:27 pm
Who is online

Users browsing this forum: No registered users and 12 guests