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

Error sending email: SMTP Error: Data not accepted.


  1. watthem
    Member

    I've been getting the following error message when forms are submitted:

    Error sending email: SMTP Error: Data not accepted.
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/machform/includes/helper-functions.php:489) in /var/www/machform/confirm.php on line 38

    The forms do submit, and the email are sent, but it scares me every time.

    Sorry if this has already been posted, I tried searching but I did not find anything common.

    Many thanks in advanced

    Posted 14 years ago #
  2. yuniar

    The "Data not accepted" error message is coming from your SMTP server.
    Usually when you get this message, your email shouldn't be sent, because it's being rejected by your SMTP server.

    In your case, it seems your SMTP server is able to send to the email just fine, but yet also generating unnecessary error message.

    To fix this, I suggest to contact your host tech support and ask them regarding this. They should be able to fix it from their side.

    Or if you just want a quick solution, you can modify MachForm to not display that message. To do this, edit your "includes/helper-functions.php" file, search around line 488 for this code:

    if($send_status !== true){
        echo "Error sending email: ".$mail->ErrorInfo;
    }

    simply remove the entire code above.


    MachForm Founder

    Posted 14 years ago #

RSS feed for this topic

Reply