Problems sending e-mail..

Permalink
This is an issue with my hosting service, and I think I know a fix, but do not know how to modify it to work..

The standard form does not get mailed to me from this host. If I test it with this code I get a message saying it was sent, but I never get it:

<?php
// A test script for sending mail. Put your email address below
// and open this script in your browser.
$ADDR = "bob@address.com";
if (mail($ADDR,"Testing","This is a test"))
echo "Mail function succeeded<br />";
else
echo "Mail function FAILED<br />";
?>

but if I send it with the following code it says it was sent, AND I get it

<?php
// A test script for sending mail. Put your email address below
// and open this script in your browser.
$ADDR = "bob@address.com";
if (mail($ADDR,"Testing with -f","This is a test","From: $ADDR","-f$ADDR"))
echo "Mail function succeeded with -f parameter<br />";
else
echo "Mail function FAILED with -f parameter<br />";
?>

My Site seems to need the -f parameter. I have some html/php pages that have an elobrate form and that is working using the -f, but I cannot seem to get concrete5 to send anything (I also cannot send the password reset e-mail..

I know this is not the C5 issue, as I have a number of other sites working on different hosts just fine.

Any ideas/ pointers to the code that I may be able to edit to add the -f paramater?

Thanks

 
Mnkras replied on at Permalink Reply
Mnkras
take a look at the mail helper,
911bob replied on at Permalink Reply
Thanks, can you get me any closer?

It appears that ZEND Mail is what is sending out the messages.. but I see no place that looks like I thould put in the -f parameter..

can you guide m a bit more?

Thanks
Mnkras replied on at Permalink Reply
Mnkras
i believe someone on the forums had the same problem a while back, i think it was also with heart
911bob replied on at Permalink Reply
I found this in the Mail.php file under the Zend Directory..

$transport = new Zend_Mail_Transport_Sendmail();

and I changed it to
$transport = new Zend_Mail_Transport_Sendmail('-fbob@domain.com');

but no difference..