PHP mail function

Discussion in 'HOWTO-Related Questions' started by welthera, Apr 10, 2015.

  1. welthera

    welthera New Member

    I have some forms that are using the php mail function, but the function deosn't work.
    The form gives me the Success message but the email are not sent.
    I read that there can be a problem with the sendmail path in php.ini ?
    I am using ISPConfig 3.0.5 on an centos server.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Normally the sendmail path should be fine, if you di not alter it in php.ini manually. Please check the mail log file for errors.
     
  3. welthera

    welthera New Member

    i checked the maillog and it seems that amavisd-new is blocking the mail from sending. I didn't had this problem previously. Till now it worked perfect.
     
  4. welthera

    welthera New Member

    I managed to send an email but after changing the headers it sems that in the headers are some german characters that amavisd doesn't recognize.
    How can i send email with those headers, or how can i pass these amavisd checks?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    The subject of an email has to be encoded when it contains non ascii charachters. Just disabling the check in amavis, which is possible as well, is not a good solution as the mail server of the recipient might block your mail then or sort it out as spam if it does not comply with email RFC.
     

Share This Page