Jump to content

Envio de email SMTP en Brinkster


Recommended Posts

Recien instale la version 1.3, el problema que surge en el envio de correo.

SI funciona:
a) Enviar a un amigo
B) Suscripcion a Newsletter

NO funciona:
a) formulario de contacto
B) confirmacion de pedidos

Desde el panel PREFERENCIAS > EMAILS

Estableci la funciones
Servidor SMTP: mail.midominio.com
Contraseña SMTP: contraseña
Encriptacion: ninguno
Puerto: 25

Inclusive, en esa misma seccion, intento ENVIAR UN CORRE ELECTRONICO DE PRUEBA, doy click y de hecho, me despliega el mensaje "el correo se envia". Sin embargo, checo el correo y no llega nada.

el dominio como tal, esta hospedado en BRINKSTER y usa PHPMailer, anexo codigo que dan de ejemplo

How do I send email with PHPMailer for Windows Hosting?
Special Note
Be sure to make the following changes when using this coding example:
1. Replace YourDomain.com with a valid Brinkster hosted domain name.
2. Replace [email protected] with a valid Brinkster hosted email account.
3. Replace password with the password for the email account used above.
4. Replace [email protected] with a valid email account.

Your FROM address must be the same as the email address you authenticate with.

<?
require(“c:\php\includes\class.phpmailer.php”);

$mail = new PHPMailer();

$mail->IsSMTP();
$mail->Host = “mymail.brinkster.com”;
$mail->SMTPAuth = true;
$mail->Username = “[email protected]”;
$mail->Password = “EmailPassword”;

$mail->From = “[email protected]”;
$mail->FromName = “Your Name”;
$mail->AddReplyTo(“[email protected]”);
$mail->AddAddress(“[email protected]”);
$mail->IsHTML(true);
$mail->Subject = “Test message sent using the PHPMailer component”;
$mail->Body = “This is a test message.”;
$mail->Send();
?>

Below is a sample that includes a form. Copy and paste the code into a PHP page and make the appropriate changes to the mail server, email addresses, and password.

<?php

if(isset($_POST[“Submit”]))
{
require(“c:\php\includes\class.phpmailer.php”);

$mail = new PHPMailer();

////////////////////////////////////////////////////////////////
// Customize the following 5 lines with your own information. //
////////////////////////////////////////////////////////////////

$toaddress = “[email protected]”; //Change this to the email address you will be receiving your notices.
$mailhost = “mail.yourdomain.com”; //Change this to your actual Domain name.
$fromaddress = “[email protected]”; //Change this to the email address you will use to send and authenticate with.
$frompwd = “password”; //Change this to the above email addresses password.
$subject = “PHP Contact Form”; //Change this to your own email message subject.

//////////////////////////////////////////
// DO NOT CHANGE ANYTHING PAST THIS LINE//
//////////////////////////////////////////

$fromname = $_POST[“TName”];
$body = $_POST[“TBody”] ;
$rplyto = $_POST[“TEmail”];
$msgbody = $fromname . “
“ . $rplyto . “
“ . $body;

$mail->IsSMTP();
$mail->Host = $mailhost;
$mail->SMTPAuth = true;
$mail->Username = $fromaddress;
$mail->Password = $frompwd;

$mail->From = $fromaddress;
$mail->FromName = $fromname;
$mail->AddReplyTo($rplyto);
$mail->AddAddress($toaddress);
$mail->IsHTML(true);
$mail->Subject = $subject;
$mail->Body = $msgbody;

if(!$mail->Send())
{ echo “Message could not be sent. “; echo “Mailer Error: “ . $mail->ErrorInfo; exit;
}

echo “Thank you, your message has been sent!”;
}

?>

<html><body>
<form name=“SendEmail01” method=“post”>

Name: <input type=“text” name=“TName” size=“30”></td>
Email: <input type=“text” name=“TEmail” size=“30”></td>
Body: <textarea rows=“4” name=“TBody” cols=“30”></textarea>
<input type=“submit” name=“Submit” value=“Submit”></td>

</form>
</body></html>
Link to comment
Share on other sites

  • 4 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...