FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Mail() function
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Mail() function [message #180605] Wed, 06 March 2013 14:46 Go to previous message
Rita Ferreira is currently offline  Rita Ferreira
Messages: 4
Registered: February 2013
Karma:
Junior Member
Hi,
I'm new at PHP and I'm facing problems with the mail() function.
I'm trying to send an email from a form and to do it I'm using mail() function but gmail assume it like spam.

I have read lots of similar problems in internet but I couldn't find a solution.


<?php

if (isset($_REQUEST['email']))
{
$nome = $_REQUEST['nome'] ;
$telefone = $_REQUEST['telefone'] ;
$email = $_REQUEST['email'] ;
$message = $_REQUEST['mensagem'] ;
$header .= "Reply-To:".$nome." <".$email.">\r\n";
$header .= "Return-Path: ".$nome." <".$email.">\r\n";
$header .= "From: ".$nome." <".$email.">\r\n";
$header .= "Organization: MyOrganization\r\n";
$header .= "Content-Type: text/plain\r\n";

mail("XXXXX(at)gmail(dot)com", "My message", $message, $header);

header ('Location:index_teste.php?area=contactenos');
}


Can you please help me trying to find what I do have wrong here?
Any help will be welcome.
Thanks.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Dynamically change video URLs
Next Topic: Other source for help?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 01:03:14 GMT 2024

Total time taken to generate the page: 0.03925 seconds