Article ID: 1251, created on Mar 4, 2009, last review on Apr 23, 2012

  • Applies to:
  • Plesk 8.x for Linux/Unix

Resolución

Para definir las cabeceras correctas para la Ruta de Retorno, use los siguientes códigos:

putenv ("QMAILUSER=USER");
putenv ("QMAILNAME=FULL_USER_NAME");
putenv ("QMAILHOST=DOMAIN");
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain;charset=us-ascii\r\n";
$headers .= "From: FULL_USER_NAME <USER@DOMAIN>";
$to="mail@domain.tld";
$subject = "Testing email";
$body = "";
$err = mail($to, $subject, $body, $headers);

Como resultado, el correo tendrá FULL_USER_NAME<USER@DOMAIN> en la ruta de retorno.

b8ef5052d936e902043e41759118114e a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF