Contacto
Contact
Worldwide Business Management Limited
22/F., CMA Building
64-66 Connaught Road, Central
Hong Kong
Head Office:
Heng li wan pan A1-1604
Li wan qu, fang cun da dao zhong
510370 Guangzhou, Guangdong, China
isSMTP();
$mail->SMTPDebug = 0;
$mail->Debugoutput = 'html';
$mail->Host = 'smtp.wbm.group';
//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission
$mail->Port = 25;
//Whether to use SMTP authentication
$mail->SMTPAuth = true;
$mail->Username = "webmaster@wbm.group";
$mail->Password = "LI2Zh0EAU2Lc";
//Set who the message is to be sent from
$mail->setFrom("webmaster@wbm.group", "Contacto Web");
//Set who the message is to be sent to
$mail->addAddress("info@wbm.group", "Contacto Web");
$mail->CharSet = 'UTF-8';
//Set the subject line
$mail->Subject = "Contacto Web";
$texto="Name: ".$nombre."
Email: ".$email."
Country: ".$pais."
Telephone: ".$telefono."
Message: ".$mensaje;
$textoPlano = "Name: ".$nombre." \nEmail: ".$email." \nCountry: ".$pais."\n Telephone: ".$telefono."\nMessage: ".$mensaje;
$mail->msgHTML($texto);
$mail->AltBody = $textoPlano;
if (!$mail->send()) {
if(isset($_GET["lang"])){
if($_GET["lang"]=="es"){
$result="Ha ocurrido un error, inténtelo más tarde";
}
}
else{
$result="An error has occurred, please try again later";
}
} else {
if(isset($_GET["lang"])){
if($_GET["lang"]=="es"){
$result="Mensaje enviado";
}
}
else{
$result="Message sent";
}
}
}else{
if(isset($_GET["lang"])){
if($_GET["lang"]=="es"){
$result="Debes rellenar todos los campos";
}
}
else{
$result="You must fill in all fields";
}
}
}
?>