This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

-f switch for mail()


  1. russpond
    Member

    Does anyone know if you can code the -f php switch into the mail part of this script? My host requires this for forms.

    http://help.mosso.com/article.php?id=295

    When sending mail from our system we require you add the -f switch to your PHP script. This is to ensure that the message sends with a valid return path email address set and not our server address. This helps to ensure that our system does not get blacklisted and your mails send properly.

    Thanks,
    Russ

    Posted 16 years ago #
  2. yuniar

    MachForm uses PHPMailer library for sending email and it's already using the -f switch.
    Check line 471 of "lib/class.phpmailer.php" to see it:

    $params = sprintf("-oi -f %s", $this->Sender);

    MachForm Founder

    Posted 16 years ago #

RSS feed for this topic

Reply