ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Contact Form vs Sendmail/PHPmail() vs mail()

January 02, 2013 11:58am

Subscribe [2]
  • #1 / Jan 02, 2013 11:58am

    Sven T.

    21 posts

    Hi

    I am running out of ideas - here is what I am seeing

    - When using a exp✉️contact_form I get a “Thank you” success msg, but no email is send.
    - When trying to send with Communications Tool, I get errors with both sendmail and PHPmail settings:

    Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.

    or

    Unable to send email using PHP Sendmail.

    When I enable PHP in the same template and paste this into the template

    <?php
    $to = "[email protected]";
    $subject = "Test mail";
    $message = "Hello! This is a simple email message.";
    $from = "[email protected]";
    $headers = "From: $from";
    mail($to,$subject,$message,$headers);
    echo "Mail Sent.";
    ?>

    it is successfully send out.

    So my understanding is that phpmail seems to work and EE is somehow passing the values differently.

    I have switched debug on but don’t get any errors when sending from the contact form.

    Where do I go from here to further debug?

  • #2 / Jan 02, 2013 12:19pm

    Bhashkar Yadav

    727 posts

    Hi Sven,

    Try by setting “Email Protocol” as “Sendmail”.


    Best Regards,

  • #3 / Jan 02, 2013 1:02pm

    Sven T.

    21 posts

    Hi Bhaskar,

    I did test with PHPmail and Sendmail - With both I can not send an email from the Admin Panel’s Tool> Communicate - I get the errors state above.

  • #4 / Jan 02, 2013 4:36pm

    MadWebDesigns

    147 posts

    Hi Sven,

    What version of EE are you running?

    Cheers,

    Mike

  • #5 / Jan 03, 2013 3:39pm

    Sven T.

    21 posts

    Hi Mike

    sorry should have stated that: Installed: 2.4.0

    Sven

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases