The form sends but does not arrive in the email

10 replies · opened Sep 27, 2017

IivanpossSep 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

VViniciusbrSep 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.

IivanpossSep 28, 2017

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

VViniciusbrSep 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.

VViniciusbrSep 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

VViniciusbrSep 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

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 "**Detalhes do erro:** " . $mail->ErrorInfo;
}

form:


	
	
	
Contato Eletricista - Instalador CFTV - Serralheria

	

	
	
- 
	
- 
	
- 
	
- 
		
- 
	
- 
	
- 
	
- 
	
	
- 

	
- 
	
	
	

	
	

	
	Contact - Layout 2 | Canvas

					
					
				

			

		

		
		

			
				Contato
				Fale com a gente
				
					
- [Home](index.php)
					
- Contato
				
			

		

		
		

			

				

					
					

						
							Envie-nos uma mensagem!
						

						

							

							

								

								
									Nome *
									
								

								
									Email *
									
								

								
									Telefone
									
								

								

								
									Assunto *
									
								

								
									Opções
									
										-- Serviços --
										Alarme
										CFTV
										Serralheria
										Cerca Elétrica
										Redes e Infra Estruturas
										Rede Elétrica
										Serralheria
										Cerca Elétrica
										Estética Automotiva
										Outros
									
								

								

								
									Mensagem *
									
								

								
									
								-->

								
									Enviar Mensagem
								

							
							
						

                            $("#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'));
                                        }
                                    });
                                }
                            });

                        -->	
							
							
						

					

					
					

						

					

					

					
					

						
							
								
									[](#)
								
								EndereçoSão Paulo - Vila Califórnia - Rua miguel lino de Morais, 35
							
						

						
							
								
									[](#)
								
								Fale com a gente!11 2758-6361
							
						

						
							
								
									[](https://www.facebook.com/toroauto/)
								
								Siga-nos/toroauto
							
						

						
							
								
									[](https://www.youtube.com/channel/UCgxjYz1czhCwKHC0uCbXtbw/)
								
								Siga-nostoroauto
							
						

					

				

			

		

		

		
		

	

	
	

	
	
	

	
	

	
	

	

		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: 'Hi, we\'re Envato
Our mission is to help people to **earn** and to **learn** online. We operate **marketplaces** where hundreds of thousands of people buy and sell digital goods every day, and a network of educational blogs where millions learn **creative skills**.
',
					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
			}

		});

		
	

thanks.

VViniciusbrOct 3, 2017

Hi, can you help me?

SSemicolon WebSTAFFOct 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