Jump to content
  • 0

Отправка мейла со страницы "Контакт"


Sixella
 Share

Question

Добрый день.

Вот уже несколько дней бьюсь над одной проблемой, перерыл много ресурсов интернета но проблема так и остается.

Необходимо при помощи яваскрипта со страницы "контакт" отправлять мейлы на почтовый ящик.

КАК ЭТО СДЕЛАТЬ ???

вот страница www.stasart.com/fr/contact

а вот скрипт

// JavaScript Document
var ResizeIframe = {
wrapperId : "tinc_content",

/**
* Resizes an iframe sId including oDoc to oDoc's content size.
* Can be called top-down, i.e. from the including iframe (or it's parents) or bottom-up, i.e. from the included document.
* In the latter case the iframe element is retrieved programmatically.
*
* @param oDoc Included page's document object
* @param sId ID of including iframe
*/
resize : function ( oDoc, sId )
{
try
{
if ( typeof oDoc == "undefined" ) return;

if ( typeof sId != "undefined" )
{
var iframe = oDoc.getElementById( sId );
var iframeDoc = iframe.contentWindow.document;
} else {
var iframeDoc = oDoc;
var iframeWindow = iframeDoc.parentWindow || iframeDoc.defaultView;
var iframe = iframeWindow.frameElement;
}
var wrapper = iframeDoc.getElementById( this.wrapperId );

// make sure we only resize once
if ( iframeDoc.isIntegrated == true ) { return; }

// switch on transparency for iframe
iframeDoc.body.style.backgroundColor = "transparent";
iframe.allowTransparency = "true";

iframeDoc.body.style.padding = "0px";
iframeDoc.body.style.border = "none";

//var iframe_container_width = iframe.parentNode.clientWidth;
//var fixed_width = ResizeIframe.getMinimumLayoutWidth( wrapper );

var tabs = iframeDoc.getElementsByTagName( "table" )
if ( tabs[0] && tabs[0].className == "dborder" )
{
wrapper.setAttribute( "wfx:overridewidth", "true" );
} else if ( iframeDoc.forms[0] && iframeDoc.forms[0].elements["formname"] )
{
wrapper.setAttribute( "wfx:overridewidth", "true" );
}

if ( window.addEventListener )
{
var gcs = iframeDoc.defaultView.getComputedStyle( iframeDoc.body, null);
var v_margin = parseInt( gcs.getPropertyValue( "margin-top" ) ) + parseInt( gcs.getPropertyValue( "margin-bottom" ) );
var h_margin = parseInt( gcs.getPropertyValue( "margin-left" ) ) + parseInt( gcs.getPropertyValue( "margin-right" ) );
wrapper.style.display = "table";
var wrapper_width = wrapper.offsetWidth;

var flex = wrapper.getAttribute( "wfx:overridewidth" );
if ( flex == "true" )
{
wrapper.style.width = "100%";
} else {
iframe.style.width = wrapper_width + h_margin + "px";
}

// Setting the top padding of the wrapper avoids wrong calculation of the height due to collapsing margins behavior
wrapper.style.paddingTop = "1px";

height = wrapper.offsetHeight + v_margin;
}
else if ( window.attachEvent )
{
iframeDoc.body.style.margin = "0px";
wrapper.style.display = "inline";
var wrapper_width = wrapper.offsetWidth;

var flex = wrapper.getAttribute( "wfx:overridewidth" );
if ( flex != null && flex == "true" )
{
wrapper.style.width = "100%";
} else {
iframe.style.width = wrapper_width + 2 + "px";
}

height = wrapper.offsetHeight;
}

if ( iframe.scrolling != "yes" ) { height += 20; }

iframe.style.height = height + "px";
iframeDoc.isIntegrated = true;
} catch ( ex )
{
return;
}
}
}

код скопирован с сайта предоставляющего доменное имя.

Спасибо большое за помощь

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Может скрипт и ни при чем.

Просто на сайте его дали вместе с тэгом который нужно вставить в страницу контакта...

Просто я не совсем понимаю в JS вот и спрашиваю на форуме.

Наверное френчи все таки "ортопеды" раз такое предлагают. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy