legd1991 Posted January 2, 2010 at 05:43 PM Report Share #303728 Posted January 2, 2010 at 05:43 PM boas pessoal... ainda estou a trabalhar para a minha agenda e estou com um problema ao enviar uma mail tenho este codigo: <?php require("includes/class.phpmailer.php"); include("includes/connection.php"); include("includes/funcoes1.php"); $email = $_POST['email']; $assunto=$_POST['assunto']; $msg=$_POST['Mensagem']; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Mailer = 'smtp'; $mail->Host = 'smtp.gmail.com'; // SMTP server $mail->Port = 25; $mail->SMTPAuth = true; $mail->Username = "username"; $mail->Password = "pss"; $mail->From = "from"; $mail->FromName = "Luís"; $mail->AddAddress("address"); $mail->AddReplyTo = "replyto"; $mail->WordWrap = 50; $mail->IsHTML(false); $mail->Subject = "subject"; $mail->Body = 'body'; if(!$mail->Send()) { echo "Error sending: " . $mail->ErrorInfo; } else { echo "Letter is sent"; } mysql_close($con); ?> ao enviar da-me erro.. diz que nao é possivel autenticar.. gostava que m ajudassem... cumps legd1991 Link to comment Share on other sites More sharing options...
legd1991 Posted January 3, 2010 at 12:29 AM Author Report Share #303820 Posted January 3, 2010 at 12:29 AM boas ja consegui resolver isso agora o meu problema é como passar o valor de uma variavel numa pagina para outra variavel noutra pagins.. alguem m pode ajudar? desde ja obrigado!!! Link to comment Share on other sites More sharing options...
yoda Posted January 4, 2010 at 10:07 AM Report Share #304014 Posted January 4, 2010 at 10:07 AM Como assim? before you post, what have you tried? - http://filipematias.info sense, purpose, direction Link to comment Share on other sites More sharing options...
cyclop Posted January 4, 2010 at 11:52 AM Report Share #304027 Posted January 4, 2010 at 11:52 AM envias por querystring $_GET ou por formulario $_POST ..... "Quando eu for grande quero ser como o Celso" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now