Magento email being sent in text format instead of HTML - email

I am abel to test my emails under system>transactional emails.
My email looks correct when i click on the preview button, but when i send it out and recieve the email the email comes in as text only. so all i see is the html code wich deffinitley NOT what i want. Any reason why my email shows up correctly under preview but not when it is actually sent out?
Below is what my template looks like in the Magento add email template.
{{template config_path="design/email/header"}}
{{inlinecss file="email-inline.css"}}
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="email-heading" style="text-align: left;">
<p><strong>Name:</strong> {{var data.name}}</p>
<p><strong>Email:</strong> {{var data.email}}</p>
<p><strong>Telephone:</strong> {{var data.telephone}}</p>
<p><strong>Service Requested:</strong> {{var data.service-requested}}</p>
<p><strong>Comment:</strong> {{var data.comment}}</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
{{template config_path="design/email/footer"}}

Related

"can't access dead object" error selenium IDE

So before someone suggests there are already plans to migrate this IDE project to Webdriver, but this will not happen for a while. So for the time being I am forced to maintain these IDE scripts.
We are rolling out a new UI on our page and I was fixing the tests to work with the new model. The model is in an iframe here is my code
<tr>
<td>selectFrame</td>
<td>id=iframeAuthorizeNet</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>id=txtCardNum999</td>
<td></td>
</tr>
... Do some work in the model
<tr>
<td>click</td>
<td>id=btnSavePaymentItem999</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>10000</td>
<td></td>
</tr>
<tr>
<td>selectFrame</td>
<td>relative=top</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=PageContent_page_payment_lnk</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>verifyText</td>
<td>css=button.btn.btn-red</td>
<td>Update</td>
</tr>
<tr>
<td>click</td>
<td>css=span.card-display.row > a</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>2500</td>
<td></td>
</tr>
<tr>
<td>verifyText</td>
<td>css=button.btn.btn-red</td>
<td>Add</td>
</tr>
<tr>
<td>verifyText</td>
<td>id=PageContent_page_headTitle_lbl2</td>
<td>Update Payment Information</td>
</tr>
<tr>
<td>click</td>
<td>id=PageContent_page_transactions_lnk</td>
<td></td>
</tr>
<tr>
<td>verifyText</td>
<td>id=PageContent_page_recentChargesTitle_lbl</td>
<td>Charges</td>
</tr>
<tr>
<td>openAndWait</td>
<td>${BaseURL}/aboutus.aspx</td>
<td></td>
</tr>
So the issue is with the openAndWait this call is always giving me a `Can't access dead object" error. I tried changing this to a click on the element that would take me to the new page and this also triggered the error. All calls after these work fine and I can even see when I watch the test that the click command worked and the page navigated but it was still reported as "Can't access dead object" so my test still appears to have failed.
Some other useful information I am only encountering this issue when ran on the standalone server (2.53.1). When I run the tests through the Firefox plugin everything works fine.
Has anyone else ran into this? Seems to me to be related to the page change.

HTML email displaying mangled in outlook.com

I'm sending a fairly simple multipart message containing both plain text and HTML versions. The HTML version is a table with some columns, all sized in percent. All styles are inline.
In outlook.com it renders terribly. Viewing source (in a browser - Firefox) I can see that it is mangling the HTML.
For instance the opening table tag is rendering like this:
(hmm - so mangled stackoverflow won't render it either).
Basically it is lopping off the first character of attributes, so width="100%" renders as width="00%", align="eft", links come up as "ttp://something.com", missing quotes, etc. Viewing source in outlook.com doesn't show the HTML at all - it must be rendered via javascript, as I can only see it using Firebug.
I've tried it both with and without the conditional comments (which are in place for Outlook the app), and with/without the doctype. Nothing makes it better. I don't have a clue what's going on, and not finding any other posts about attributes getting truncated.
Any thoughts?
Here's the HTML portion of the email:
<!DOCTYPE html>
<html>
<body style="font-family: Arial, Helvetica, sans-serif; font-size: 14px;line-height: 1.4; color: #333;">
<!--[if (gte mso 9)|(IE)]>
<table width="600" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<![endif]-->
<table style="width: 100%; max-width: 600px;" align="left" cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="3" width="100%" height="16"></td>
</tr>
<tr>
<td width="3%"></td>
<td><img src="https://www.domain.com/logo.png" width="203" height="38" alt="alt name" /></td>
<td width="3%"></td>
</tr>
<tr>
<td colspan="3" width="100%" height="30"></td>
</tr>
<tr>
<td width="3%"></td>
<td width="94%">
Hello,<br />
<br />
The Proof for Order Item #123 is ready for review. Please login to your account to review and approve the proof.<br />
<br />
Log in at https://www.domain.com/my-account/ and choose "Proofs Waiting Approval" on the "My Account" page.<br />
<br />
Click the "Review" link for ID 123 - you will see your proof and you will be able to approve it for delivery. You will also have the opportunity to request changes.<br />
<br />
Please contact our office if you have any questions.<br />
Thank you.<br />
<br />
Sincerely,<span style="font-size: 4px;"><br />
<br />
</span>
<span style="font-size:13px; font-weight: bold;">COMPANY TEAM</span><br />
<span style="font-size: 9px;"><span style="color: #2b9f4c;">COMPANY</span> | CUSTOMER SERVICE</span><span style="font-size: 11px;"><br />
<span style="font-weight: bold;color: #0c7ebd;">T:</span> 888.555.2122</span><span style="font-size: 4px;"><br />
<br />
</span>
<span style="font-size: 10px;">www.domain.com<span style="font-size: 3px;"><br />
<br />
</span>
<img src="https://www.domain.com/images/email/ConsiderEnvironment.png" width="37" height="42" alt="" /> <span style="color: #2b9f4c;">Please consider the environment before printing this email</span></span>
</td>
<td width="3%"></td>
</tr>
<tr>
<td colspan="3" width="100%" height="30"></td>
</tr>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</body>
</html>
your code looks pretty email friendly to me!
My only suggestion is check all your elements in accordance with Campaign Monitor's support guide (https://i3.campaignmonitor.com/assets/files/css/campaign-monitor-guide-to-css-in-email-may-2014.pdf?ver=5117&_ga=1.123317261.720201475.1441145331).
Another handy feature campaign monitor use is their testing system, this also gives a preview of what your email would look like in each browser/email client (outlook.com is supported). Unfortunately each test costs 5 Australian dollars but sometimes I find the fee is worth the headache as it's always accurate!
More info on this can be found here:
https://www.campaignmonitor.com/testing/
Ack - turns out I had the wrong Content-Transfer-Encoding. I had it set to quoted-printable but should have been 8bit or 7bit. quoted-printable assumes it's to be read as presented, and is not code to be interpreted. Or so I gather.
Oddly it worked just fine in every other client tested in. So - "thanks" outlook.com, for teaching me something...

GWT Sample Application

I'm new to GWT. I created sample application in eclipse. I removed <h1>Web Application Starter Project</h1> from HTML file in war but when I debug that application its shows that text on web page. I cleaned project and also compiled it but its not working. Will you guys please tell me what I'm doing wrong. Part of HTML page
<!-- <h1>Web Application Starter Project</h1> -->
<table align="center">
<tr>
<td colspan="2" style="font-weight:bold;">Please give your name:</td>
</tr>
<tr>
<td id="nameFieldContainer"></td>
</tr>
<tr>
<td id="sendButtonContainer"></td>
</tr>
<tr>
<td colspan="2" style="color:red;" id="errorLabelContainer"></td>
</tr>
</table>
If you are using Eclipse with Jetty, you should stop your application. Then clean your GWT project, build it and start again your application. Finally refresh your browser. You have to do this every time your edit static resources such as HTML files.

Selenium IDE [error] Element id=cmp_admin not found

I am using selenium IDE 1.9.0 to record a test.
Please advise me what I didn't wrong and how to fix the problem.
here are the steps that i am taking to record the test.
1.I logged into the site with username and password
2.I navigated to search member page to type in the member's name, click on the name link the system lead me to the member profile page.
The script stopped at this line:
ClickAndWait id=cmp_admin
the first time I played script it runs without any error. The run the script on after 8 hours, it prompts me the following error:
[error] Element id=cmp_admin not found
I used the debug function to see what went wrong. Here are the messages displayed in the debug pane:
[debug] modifySeparateTestWindowToDetectPageLoads: already polling this window: selenium1365079281311
[debug] getCurrentWindow newPageLoaded = false
[error] Element id=cmp_admin not found
[debug] commandError
[debug] testComplete: failed=true
Here is the html code generated by Selenium IDE
<tr>
<td>open</td>
<td>/</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=nd_home</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>id=cmp_admin</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=quicksearch_anchor</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>css=img[alt="Member"]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=search_name</td>
<td>suzy</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Balagia, Suzy</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
If you click on any button or link after clicking some time is taken to load page, if page is not load completely then selenium ide do not found ID or name of next element. To resolved such type of issue used Pause , waitfortext, clickandwait command
I make some changes in the code please run and let me know it work for you or not.
<tr>
<td>open</td>
<td>/</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=nd_home</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1500</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>id=cmp_admin</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=quicksearch_anchor</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>css=img[alt="Member"]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=search_name</td>
<td>suzy</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Balagia, Suzy</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
It could be a couple of things. First, is the element you're looking for (id=cmp_admin) on the page and still called cmp_admin? From your code, it looks like you have to click on id=nd_home, then a page loads that contains cmp_admin. If that's the case, most likely the page hasn't finished loading so the element isn't there yet. Try using a waitfor command between the click on nd_home like this:
click | id=nd_home |
waitForElementPresent | id=cmp_admin |
clickAndWait | id=cmp_admim |
You could also try a pause, waiting a couple of seconds, but I find waitfor commands to be less fragile, especially if you have lots of Ajax requests or elements that have to load.
Klendathu

form get method not working in opera browser

Why forms submited using get method is not working in opera browser?
<form method="get" action="">
I am submiting to same page
<form method="get" action="">
<table class="search_form_table" width="428" cellpadding="0" cellspacing="0" border="0" >
<tr>
<td width="150">Order Number</td>
<td><input name="order_number" /></td>
</tr>
<tr>
<td>Start Date</td>
<td><input class="search_date_fields" name="date_from" /> End date : <input class="search_date_fields" name="date_to" /></td>
</tr>
<tr>
<td colspan="2" align="right"><input class="subimit_button search_button_width" type="submit" value="Submit" /></td>
</tr>
</table>
</form>
If this is the same problem I thought I had, it's not that GET doesn't work. It's because the browser hides the form name/value pairs in the query string in the Location bar. If you actually go to the location bar and hilite the URL that you submitted to, you'll see the form parameters in the query string. I hate this, but it is the way Opera does it. :-/
submitting GET forms certainly works in Opera. Copying this code to a file and submitting it creates exactly the same URL as in Chrome. Hence, your problem must be something else. Without more information it's impossible to tell what your problem really is.