Page 1 of 1
notification email +attach =fail
Posted: Tue Apr 27, 2010 11:05 am
by rock304
my store is attaching a copy of the store logo I made at cooltext.com.. prodigy.net is flagging it and delivery fails. customer does not get copy
how do I stop it from attaching the image to the email. I did not do it intentionally
2010-04-26_2256.png (72.12 KiB) Viewed 4946 times
Thanks
Re: notification email +attach =fail
Posted: Wed Apr 28, 2010 6:55 am
by kedgetech
Did you try and look into mail module if that can be avoided?
Re: notification email +attach =fail
Posted: Wed Apr 28, 2010 12:39 pm
by rock304
Thanks for getting back--i was getting depressed--I don't know what you mean by mail module.. I was thinking it could be because the image was too big or it was named cooltext***** was the problem so I added back the default image.but not named logo.png [temp_logo.png] and still got the attachment--i am going nuts--and it is not even for me..
I don't understand because the actual image that is the attachment is the logo on the email and it is there--so why is there an attachment of what is already there
today i actually went so far as to get another account with the same host and install a fresh download and walla there is the attachment
both installations are on the same host but different servers--
Could The host possibly be the cause

i mean I am really starting to think it might be..
I have another account on another host so I guess i will be doing another install tomorrow..
Thanks again
Re: notification email +attach =fail
Posted: Wed Apr 28, 2010 4:50 pm
by kedgetech
Mate see my inline answers.
Thanks for getting back--i was getting depressed--I don't know what you mean by mail module.. I was thinking it could be because the image was too big or it was named cooltext***** was the problem so I added back the default image.but not named logo.png [temp_logo.png] and still got the attachment--i am going nuts--and it is not even for me..
Sorry I could have been more clear. There is mail module who does the job of sending the mail in OC. I was refering to the actual program inside OC does the job of sending email. I think actually the logo (may be any image listed as company logo) in settings will be used in the emails. When you add a image to email it will always be a HTML mail and attachment.
I don't understand because the actual image that is the attachment is the logo on the email and it is there--so why is there an attachment of what is already there
Please refer my previous comments .
today i actually went so far as to get another account with the same host and install a fresh download and walla there is the attachment
both installations are on the same host but different servers--
Could The host possibly be the cause i mean I am really starting to think it might be..
I have another account on another host so I guess i will be doing another install tomorrow..
Does not matter any installations you do also will not change the logic built in the way email module operates. Let me give it a try and see if i can find a solution from you. What version of OC are you using ?
Re: notification email +attach =fail
Posted: Wed Apr 28, 2010 5:32 pm
by kedgetech
I am using OC 1.4.4.
Step 1
Locate the file order_confirm.tpl
If you are using a default template it should be .
catalog\view\theme\default\template\mail\order_confirm.tpl
If you are using a custom template it should be .
catalog\view\theme\<Your Custom Template>\template\mail\order_confirm.tpl
Step 2
Locate the following code.
<td align="left"><a href="<?php echo $store_url; ?>" title="<?php echo $store_name; ?>"><img src="<?php echo $logo; ?>" alt="<?php echo $store_name; ?>" style="border: none;" ></a></td>
Step 3
Change that to
<td align="left">MY STORE NAME </td>
You should change "MY STORE NAME " to your store. This code need to be replicated everytime you upgrade versions.
Hope this works. Let me know how you go.
Re: notification email +attach =fail
Posted: Wed Apr 28, 2010 7:59 pm
by rock304
OK sorry i went to bed early...let me digest this and give it a try--using 1.4.7
also is there a space after the word name and before the </td>
OK I changed it I put this in without the space
<td align="left">MY STORE NAME</td>
Re: notification email +attach =fail
Posted: Wed Apr 28, 2010 8:53 pm
by rock304
did not work all it did was to remove the actual logo and keep the attachment--using default template
I put this in
<td align="left">my store name</td>
Re: notification email +attach =fail
Posted: Wed Apr 28, 2010 9:19 pm
by rock304
I don't know if it matters but during the installation OC thought magic quotes was on and gave me the red check mark--I contacted the host to turn it off--it was off--the same thing happened last time same host different server--php.ini said off but still red check saying it was on I just installed with red check.
also --I never deleted the install folder--if that could matter--It is deleted now.
Is there ANY possibility it could be the host and if so what exactly could i ask them to check
thanks
Re: notification email +attach =fail
Posted: Thu Apr 29, 2010 1:50 am
by rock304
if i just comment this out will it fix the problem by not looking for anything
<td align="left"><a href="<?php echo $store_url; ?>" title="<?php echo $store_name; ?>"><img src="<?php echo $logo; ?>" alt="<?php echo $store_name; ?>" style="border: none;" ></a></td>
also what will this do-is it right codewise-I just need the logo to show it does not have to be a link
<td align="left">title="<?php echo $store_name; ?>"><img src="<?php echo $logo; ?>" alt="<?php echo $store_name; ?>" style="border: none;" ></td>
does this look like it could be a possible anti-virus issue
trouble is i have NIS 2010 and he has Comodo
just thinking out loud

Re: notification email +attach =fail
Posted: Thu Apr 29, 2010 7:39 am
by kedgetech
don't know if it matters but during the installation OC thought magic quotes was on and gave me the red check mark--I contacted the host to turn it off--it was off--the same thing happened last time same host different server--php.ini said off but still red check saying it was on I just installed with red check.
also --I never deleted the install folder--if that could matter--It is deleted now.
Yes all should be in green or else you could expect improper behaviour on the website. I would always suggest the install instructions from OC so "you should delete the install folder"
if i just comment this out will it fix the problem by not looking for anything
<td align="left"><a href="<?php echo $store_url; ?>" title="<?php echo $store_name; ?>"><img src="<?php echo $logo; ?>" alt="<?php echo $store_name; ?>" style="border: none;" ></a></td>
also what will this do-is it right codewise-I just need the logo to show it does not have to be a link
<td align="left">title="<?php echo $store_name; ?>"><img src="<?php echo $logo; ?>" alt="<?php echo $store_name; ?>" style="border: none;" ></td>
does this look like it could be a possible anti-virus issue
trouble is i have NIS 2010 and he has Comodo
Not sure if its got to do anything with Anti-virus. Please send me the detail of opencart I will see if I can help you install an other instance on it. You can contact me at my email below.
Re: notification email +attach =fail
Posted: Thu Apr 29, 2010 8:18 am
by rock304
sent info--thanks
Re: notification email +attach =fail
Posted: Thu Apr 29, 2010 10:25 am
by kedgetech
Folks anyone looking for similar solution just remove the code that attaches the files in
system/library/mail.php There are implications i can think of if you are selling digital services and you need attachments this solution does not work for you.
Re: notification email +attach =fail
Posted: Thu Apr 29, 2010 10:30 am
by rock304
thanks a million

Re: notification email +attach =fail
Posted: Sat May 01, 2010 4:24 pm
by kedgetech
Cheers
Re: notification email +attach =fail
Posted: Tue May 11, 2010 1:17 am
by davidemanuel
Hy, I hav a problem too, with the logo. I like the logo that comes with html but I do not like the attachment of the logo.
I tried to coment the attachment function but it will take my logo away from the html and from attachment of course.
How can I remove onl the attachment and without the logo in html email confirm order.
Thank you
Re: notification email +attach =fail
Posted: Tue May 11, 2010 9:23 pm
by kedgetech
You can try remote pointing of logo (point via URL). I would think any images are usually attached with the message unless they are point to URL.
Some applications like Outlook might ask the end user does they want pictures to be dowloaded or displayed.
Hope this helps.
Re: notification email +attach =fail
Posted: Thu Jan 26, 2012 9:12 am
by haydent