I have a demo ( not real ) piece of code below, just to give you an idea of what I want to accomplish.
function submitCart()
{
var emailcontent = window.open('about:blank', 'emailcontent');
var emailBody = emailcontent.document;
emailBody.open();
emailBody.write($('.home_page_container').html())
$('.home_page_container').html()
emailBody.close();
}
This code, at the moment, very nicely duplicates the Shopping Cart and opens it in a new page. However, that isn't what I want to do. Rather than opening it as a new page, I want to send it as an email to a company that is helping me with my orders.
How do I send the html displayed by this line of code, as either an email attachment, or the body of the email?
$('.home_page_container').html()