The form sends but does not arrive in the email

10 replies·opened Sep 27, 2017
I
ivanpossSep 28, 2017

so I am a fellow user who read your problem. The first thing that I notice is your contact page is a php file. I think it should be an HTML. Then your html page calls the php file which is sendemail.php : action="include/sendemail.php" method="post"

I am not positive that that is the issue but I know my contact page is setup as an HTML

V
ViniciusbrSep 28, 2017

other thing, can you help me change the colors for the icons in foot, http://toroauto.com.br/teste/ and,
I also need to put some awesome font icons in the icons on the first page below, above the rod, is it possible?
thanks.

I
ivanpossSep 28, 2017

OK- did you try comparing your sendemail php files between the 2 sites to see if there is any difference?

V
ViniciusbrSep 28, 2017

I already tried to put the old file in this new site but it did not send, I just need the form practically to finish.

V
ViniciusbrSep 29, 2017

If the client hosting is windows, the form will not work?

here in his hosting the servers are these:

Windows 2016 RC Server with IIS 10 - Nginx - Apache
Windows 2012 R2 Server with IIS 8.5 - Lighttpd - IIS8

V
ViniciusbrSep 29, 2017

Hello all well ? the hosting passed me a code, now I managed to send, but the message that was sent is not appearing, can you help me?

The code that the host sent me

<?php
// Adiciona o arquivo class.phpmailer.php - você deve especificar corretamente o caminho da pasta com o este arquivo.
require_once("autenvio/PHPMailerAutoload.php");
// Inicia a classe PHPMailer
$mail = new PHPMailer();
 
// DEFINIÇÃO DOS DADOS DE AUTENTICAÇÃO - Você deve auterar conforme o seu domínio!
$mail->IsSMTP(); // Define que a mensagem será SMTP
$mail->Host = "smtp.toroauto.com.br"; // Seu endereço de host SMTP
$mail->SMTPAuth = true; // Define que será utilizada a autenticação -  Mantenha o valor "true"
$mail->Port = 587; // Porta de comunicação SMTP - Mantenha o valor "587"
$mail->SMTPSecure = false; // Define se é utilizado SSL/TLS - Mantenha o valor "false"
$mail->SMTPAutoTLS = false; // Define se, por padrão, será utilizado TLS - Mantenha o valor "false"
$mail->Username = 'contato@toroauto.com.br'; // Conta de email existente e ativa em seu domínio
$mail->Password = '201516portal'; // Senha da sua conta de email
 
// DADOS DO REMETENTE
$mail->Sender = "contato@toroauto.com.br"; // Conta de email existente e ativa em seu domínio
$mail->From = "contato@toroauto.com.br"; // Sua conta de email que será remetente da mensagem
$mail->FromName = "Formulario do Site Toro Auto"; // Nome da conta de email
 
// DADOS DO DESTINATÁRIO
$mail->AddAddress('criacao@leaodesign.com', 'Contato - Toroauto'); // Define qual conta de email receberá a mensagem
//$mail->AddAddress('recebe2@dominio.com.br'); // Define qual conta de email receberá a mensagem
//$mail->AddCC('copia@dominio.net'); // Define qual conta de email receberá uma cópia
//$mail->AddBCC('copiaoculta@dominio.info'); // Define qual conta de email receberá uma cópia oculta
 
// Definição de HTML/codificação
$mail->IsHTML(true); // Define que o e-mail será enviado como HTML
$mail->CharSet = 'utf-8'; // Charset da mensagem (opcional)
 
// DEFINIÇÃO DA MENSAGEM
$mail->Subject  = "Formulário de Contato"; // Assunto da mensagem
$mail->Body .= " Nome: ".$_POST['template-contactform-name']."
"; // Texto da mensagem
$mail->Body .= " E-mail: ".$_POST['template-contactform-email']."
"; // Texto da mensagem
$mail->Body .= " Telefone: ".$_POST['template-contactform-phone']."
"; // Texto da mensagem
$mail->Body .= " Assunto: ".$_POST['template-contactform-subject']."
"; // Texto da mensagem
$mail->Body .= " Opção: ".$_POST['template-contactform-service']."
"; // Texto da mensagem
$mail->Body .= " Mensagem: ".nl2br($_POST['template-contactform-message'])."
"; // Texto da mensagem
 
// ENVIO DO EMAIL
$enviado = $mail->Send();
// Limpa os destinatários e os anexos
$mail->ClearAllRecipients();
 
// Exibe uma mensagem de resultado do envio (sucesso/erro)
if ($enviado) {
  echo "E-mail enviado com sucesso!";
} else {
  echo "Não foi possível enviar o e-mail.";
  echo "<b>Detalhes do erro:</b> " . $mail->ErrorInfo;
}

form:

<!DOCTYPE html>
<html dir="ltr" lang="pt-BR">
<head>

	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="author" content="leaodesign.com" />
	
<title>Contato Eletricista - Instalador CFTV - Serralheria</title>
<meta name="Keywords" content="esigner,webdesigner,branding para empresas,freelancer,freela,criação de logomarcas,criação de logotipos,criacao de logotipos,logotipos, logomarcas">
<meta name="Description" content="Em busca de um profissional criativo para as divulgações e marketing de sua empresa ? Solicite um orçamento (WhatsApp)11 98569-2547 e Confira o portfólio.">
<meta name="robots" content="noindex, nofollow" />
<meta name="distribution" content="global" />
<meta name="refresh" content="1"/>
<meta name="author" content="Vinicius de Carvalho Venâncio - www.rebirthart.net"/>

	

	<!-- Stylesheets
	============================================= -->
	<link href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|Raleway:300,400,500,600,700|Crete+Round:400italic" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="css/bootstrap.css" type="text/css" />
	<link rel="stylesheet" href="style.css" type="text/css" />
	<link rel="stylesheet" href="css/azul.css" type="text/css" />
		<link rel="stylesheet" href="css/dark.css" type="text/css" />
	<link rel="stylesheet" href="css/font-icons.css" type="text/css" />
	<link rel="stylesheet" href="css/animate.css" type="text/css" />
	<link rel="stylesheet" href="css/magnific-popup.css" type="text/css" />
	
	<link rel="stylesheet" href="css/colors.css" type="text/css" />

	<link rel="stylesheet" href="css/responsive.css" type="text/css" />
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	
	
<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=AIzaSyCNDLlhTPxO_se9bhBnDTarSYi5oB579dc"></script>
<script type="text/javascript" src="js/jquery.gmap.js"></script>
	
	

	<!-- Document Title
	============================================= -->
	<title>Contact - Layout 2 | Canvas</title>

</head>

<body class="stretched">

<?php
include("include/menu-contato.php");
?>

					
					
				</div>

			</div>

		</header><!-- #header end -->

		<!-- Page Title
		============================================= -->
		<section id="page-title">

			<div class="container clearfix">
				<h1>Contato</h1>
				<span>Fale com a gente</span>
				<ol class="breadcrumb">
					<li><a href="index.php">Home</a></li>
					<li class="active">Contato</li>
				</ol>
			</div>

		</section><!-- #page-title end -->

		<!-- Content
		============================================= -->
		<section id="content">

			<div class="content-wrap">

				<div class="container clearfix">

					<!-- Contact Form
					============================================= -->
					<div class="col_half">

						<div class="fancy-title title-dotted-border">
							<h3>Envie-nos uma mensagem!</h3>
						</div>

						<div class="contact-widget">

							<div class="contact-form-result"></div>

							<form class="nobottommargin" id="template-contactform" name="template-contactform" action="testemailkinghost/enviar.php" method="post">

								<div class="form-proces"></div>

								<div class="col_one_third">
									<label for="">Nome <small>*</small></label>
									<input type="text" id="template-contactform-name" name="template-contactform-name" value="" class="sm-form-control required" />
								</div>

								<div class="col_one_third">
									<label for="">Email <small>*</small></label>
									<input type="email" id="template-contactform-email" name="template-contactform-email" value="" class="required email sm-form-control" />
								</div>

								<div class="col_one_third col_last">
									<label for="">Telefone</label>
									<input type="text" id="template-contactform-phone" name="template-contactform-phone" value="" class="sm-form-control" />
								</div>

								<div class="clear"></div>

								<div class="col_two_third">
									<label for="">Assunto <small>*</small></label>
									<input type="text" id="template-contactform-subject" name="template-contactform-subject" value="" class="required sm-form-control" />
								</div>

								<div class="col_one_third col_last">
									<label for="">Opções</label>
									<select id="template-contactform-service" name="template-contactform-service" class="sm-form-control">
										<option value="">-- Serviços --</option>
										<option value="alarme">Alarme</option>
										<option value="cftv">CFTV</option>
										<option value="serralheria">Serralheria</option>
										<option value="cerca">Cerca Elétrica</option>
										<option value="alarme">Redes e Infra Estruturas</option>
										<option value="cftv">Rede Elétrica</option>
										<option value="serralheria">Serralheria</option>
										<option value="cerca">Cerca Elétrica</option>
										<option value="esteticaauto">Estética Automotiva</option>
										<option value="outros">Outros</option>
									</select>
								</div>

								<div class="clear"></div>

								<div class="col_full">
									<label for="template-contactform-message">Mensagem <small>*</small></label>
									<textarea class="required sm-form-control" id="template-contactform-message" name="template-contactform-message" rows="6" cols="30"></textarea>
								</div>

								<!--
								<div class="col_full hidden">
									<input type="text" id="template-contactform-botcheck" name="template-contactform-botcheck" value="" class="sm-form-control" />
								</div>-->

								<div class="col_full">
									<button name="submit" type="submit" id="submit-button" tabindex="5" value="Submit" class="button button-3d nomargin">Enviar Mensagem</button>
								</div>

							</form>
							
						<!-- parte tirada do form leao 
                        <script type="text/javascript">

                            $("#template-contactform").validate({
                                submitHandler: function(form) {
                                    $('.form-process').fadeIn();
                                    $(form).ajaxSubmit({
                                        target: '#contact-form-result',
                                        success: function() {
                                            $('.form-process').fadeOut();
                                            $('#template-contactform').find('.sm-form-control').val('');
                                            $('#contact-form-result').attr('data-notify-msg', $('#contact-form-result').html()).html('');
                                            SEMICOLON.widget.notifications($('#contact-form-result'));
                                        }
                                    });
                                }
                            });

                        </script>-->	
							
							
						</div>

					</div><!-- Contact Form End -->

					<!-- Google Map
					============================================= -->
					<div class="col_half col_last">

						<section id="google-map" class="gmap" style="height: 410px;"></section>

					</div><!-- Google Map End -->

					<div class="clear"></div>

					<!-- Contact Info
					============================================= -->
					<div class="row clear-bottommargin">

						<div class="col-md-3 col-sm-6 bottommargin clearfix">
							<div class="feature-box fbox-center fbox-bg fbox-plain">
								<div class="fbox-icon">
									<a href="#"><i class="icon-map-marker2"></i></a>
								</div>
								<h3>Endereço<span class="subtitle">São Paulo - Vila Califórnia - Rua miguel lino de Morais, 35</span></h3>
							</div>
						</div>

						<div class="col-md-3 col-sm-6 bottommargin clearfix">
							<div class="feature-box fbox-center fbox-bg fbox-plain">
								<div class="fbox-icon">
									<a href="#"><i class="icon-phone3"></i></a>
								</div>
								<h3>Fale com a gente!<span class="subtitle">11 2758-6361</span></h3>
							</div>
						</div>

						<div class="col-md-3 col-sm-6 bottommargin clearfix">
							<div class="feature-box fbox-center fbox-bg fbox-plain">
								<div class="fbox-icon">
									<a href="https://www.facebook.com/toroauto/" target="blank"><i class="icon-facebook"></i></a>
								</div>
								<h3>Siga-nos<span class="subtitle">/toroauto</span></h3>
							</div>
						</div>

						<div class="col-md-3 col-sm-6 bottommargin clearfix col_last">
							<div class="feature-box fbox-center fbox-bg fbox-plain">
								<div class="fbox-icon">
									<a href="https://www.youtube.com/channel/UCgxjYz1czhCwKHC0uCbXtbw/" target="blank"><i class="icon-youtube"></i></a>
								</div>
								<h3>Siga-nos<span class="subtitle">toroauto</span></h3>
							</div>
						</div>

					</div><!-- Contact Info End -->

				</div>

			</div>

		</section><!-- #content end -->

		<!-- Footer
		============================================= -->

<?php
include("include/rodape.php");
?>
		
		<!-- #footer end -->

	</div><!-- #wrapper end -->

	<!-- Go To Top
	============================================= -->
	<div id="gotoTop" class="icon-angle-up"></div>

	<!-- External JavaScripts
	============================================= -->
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/plugins.js"></script>

	<!-- Footer Scripts
	============================================= -->
	<script type="text/javascript" src="js/functions.js"></script>

	<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=AIzaSyDMxJ92oBkSnVNHFX3R8XhtYQPEgk1_IiI"></script>
	<script type="text/javascript" src="js/jquery.gmap.js"></script>

	<script type="text/javascript">

		jQuery('#google-map').gMap({
			address: 'Miguel Lino de Morais , 35, São Paulo, Brasil',
			maptype: 'ROADMAP',
			zoom: 17,
			markers: [
				{
					address: "Miguel Lino de Morais, 35, São Paulo, Brasil",
					html: '<div style="width: 300px;"><h4 style="margin-bottom: 8px;">Hi, we\'re <span>Envato</span></h4><p class="nobottommargin">Our mission is to help people to <strong>earn</strong> and to <strong>learn</strong> online. We operate <strong>marketplaces</strong> where hundreds of thousands of people buy and sell digital goods every day, and a network of educational blogs where millions learn <strong>creative skills</strong>.</p></div>',
					icon: {
						image: "images/icons/map-icon-red.png",
						iconsize: [32, 39],
						iconanchor: [32,39]
						

						
						
					}
				}
			],
			doubleclickzoom: false,
			controls: {
				panControl: true,
				zoomControl: true,
				mapTypeControl: true,
				scaleControl: false,
				streetViewControl: false,
				overviewMapControl: false
			}

		});

		
	</script>

</body>
</html>

thanks.

V
ViniciusbrOct 3, 2017

Hi, can you help me?

S
SemiColonWebSTAFFOct 4, 2017

Hello,

Thanks for your Patience!

We have checked out your Website and the issue is that you are using a very old version of Canvas which is causing these issues. Please update to the Latest Version of Canvas to fix these issues. You can check out the Documentation > Upgrade v3 to v4 Section for full instructions on this. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard