Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-27-2010, 01:04 AM
Starter Member
 
Posts: 2
Default [SOLVED] Return Path in php's mail function

Hi everyone!
I have this code:

<?php
$destinatario="destinatario@domain.com";
$asunto = "Subject";
$cuerpo = "Content of the test message.";
$cabecera .= "MIME-Version: 1.0\r\n";
$cabecera .= "Content-type: text/html; charset=iso-8859-1\r\n";
$cabecera .= "From: reply@domain.com\r\n";
$cabecera .= "Reply-To: reply@domain.com\r\n";
$cabecera .= "X-Mailer: PHP/" . phpversion();
$cabecera .= "Return-Path: emailreturn@domain.com\r\n";
$myreturnpath = "-femailreturn@domain.com";
echo ($destinatario);
echo(" ");

mail($destinatario,$asunto,$cuerpo,$cabecera,$myre turnpath);
}

When I execute, i receive the mail, but if I put a non-existing e-mail address, I don't receive anything.
What's the problem??

Thanx!
Reply With Quote
  #2 (permalink)  
Old 10-27-2010, 02:06 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by akende View Post
When I execute, i receive the mail, but if I put a non-existing e-mail address, I don't receive anything.
What's the problem??
There's no problem, you should eventually get a bounce notice (NDR).
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 10-28-2010, 01:28 AM
Starter Member
 
Posts: 2
Default Resolved

Hello again,
Thank u for the reply.
Finally I was able to run the code and it works!
The problem was in the php.ini file.

Regards
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.