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

Emails not sent


  1. aolmos
    Member

    Good morning,
    We finally were able to characterize a bug that has been bothering us during years. For some unknown reasons, Machform will not send some forms by mail to our e-mail address, so wee never received those forms and we needed to download the info directly from the mysql database.

    Finally we discovered that when our customers fill in wrong email domain: i.e. homail.com, yaho.com, etc, these mails have a huge probability of not being sent to us either. Our e-mail is located in the same server where machform is installed.

    We are sure that this is a bug of machform. Could you please send us a fix for it?

    Sincerely,
    Angel

    Posted 12 years ago #
  2. yuniar

    Hi Angel,

    MachForm itself doesn't validate the domain of the email (as long it has the correct domain name format, it should be sent).

    However, it might be possible that the mail server validate the domain and reject any invalid address.
    To check this, you can try to create a PHP file, let say "test.php" and put this block of code:

    $to = "angel@yourdomain.com";
    $subject = "This is test subject";
    $body = "PHP is one of the best scripting languages around";
    $headers = "From: fake@homail.com\n";
    mail($to,$subject,$body,$headers);
    echo "Mail sent to $to";

    change the "angel@yourdomain.com" with your own address and then run the script.
    If you are able to receive the email, then there must be a problem with your machform. Otherwise, if you didn't get the email as well, most likely the mail server is rejecting the email.


    MachForm Founder

    Posted 12 years ago #

RSS feed for this topic

Reply