Jump to content
Fórum Script Brasil
  • 0

PHP Mail + Google Apps


chlins
 Share

Question

Pessoal,

Este script abaixo funcionava perfeitamente quando usava servidor, depois que passei a usar o Google Apps os emails vindo de um form do site não funciona mais.

O que deve-se modificar.

[font=arial, sans-serif][size=2]$nomcorrespondance 'Minha Empresa';[/size][/font]<br style="font-family: arial, sans-serif; font-size: 13px; ">[font=arial, sans-serif][size=2]$adressemail = '[/size][/font][email="[email protected]"][email protected][/email]minhaconta.com[font=arial, sans-serif][size=2]'[/size][/font][font=arial, sans-serif][size=2];[/size][/font][font=arial, sans-serif][size=2]$url_site = '[url="http://www.minhaconta.com /"]www.[/url][font=arial, verdana, tahoma, sans-serif][size=3]minhaconta[/size][/font] ';

$headers ='MIME-Version: 1.0' . "\r\n";
$headers .='Content-Type: text/html; charset=iso-8859-1' . "\r\n";
$headers .='From: '.$nomcorrespondance.' <'.$adressemail.'>' . "\r\n";
   
$headers .='Reply-To: <'.$exp.'>';
//$headers .='Content-Transfer-Encoding: 8bit';
//$su = 'formulaire contact';
$message ='FORMULAIRE EN LIGNE de '.$url_site. '<br />';
$message .= 'De: '. $pr.' '. $nf. '<br />';
$message .= 'E-mail expéditeur: '. $exp . '<br />';
$message .= 'Téléphone: '. $tel . '<br />';
$message .= 'Sujet: '. $su . '<br />';
$message .= '--------------------- Message --------------------- <br />';        
$message .= stripslashes(nl2br($mes)).'<br /> --------------------';
mail($adressemail,'Formulaire : '.$su,$message,$headers );[/size][/font]

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Forum Statistics

    • Total Topics
      150.9k
    • Total Posts
      648.7k
×
×
  • Create New...