• cfaber

    (@cfaber)


    Hi,

    I’ve just installed this plugin, I have wp-smtp-mail plugin installed as well. The test thing on the plugin works, however I receive an error when trying to utilize the actual contact form.

    The error it self is:

    The e-mail could not be sent.
    Possible reason: your host may have disabled the mail() function.

    http://wordpress.org/extend/plugins/si-contact-form/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Mike Challis

    (@mikechallis)

    Some web hosts restrict sending mail unless the “From” address is a
    valid address on the same domain.
    Try step 3 of the “email not working” in the FAQ
    http://wordpress.org/extend/plugins/si-contact-form/faq/

    let me know if this worked or not.

    Thread Starter cfaber

    (@cfaber)

    Well here is the interesting bit, in this case the email needs to authenticate against the local mailer. As I said in the first post, the interesting bit is that I can send test emails. etc. I’ve defined all of the settings I can find in wp-mail-smtp, and all the tests work, I just cannot get this contact form to work.

    Is there anything I can furnish that would suggest of possible problems? Are the username / password smtp settings with wp-mail-smtp exclusive to that test, or are they shared among all of the various things which call wp_mail() ?

    Mike Challis

    (@mikechallis)

    cfaber,

    The settings with wp-mail-smtp should be shared among all of the various things which call wp_mail()

    I do not know what settings might be best for your server.

    Some people report success with step 4 of the “email not working” in the FAQ
    http://wordpress.org/extend/plugins/si-contact-form/faq/

    If you still have the problem…

    What happens if you uninstall the wp-mail-smtp?

    Maybe another plugin is conflicting.
    Do this as a test:
    Temporarily disable all your other plugins.
    Does it work now? If yes, enable the plugins one by one to determine
    which one conflicts. Which plugin was causing it?

    It could be the theme you are using is causing it…
    Do this as a test:
    In Admin, click on Appearance, Themes.
    Temporarily change your theme to the “WordPress Default” theme.
    Does it work properly now?
    If it does then the theme you are using is the cause.

    Thread Starter cfaber

    (@cfaber)

    Hi,

    Thanks for the suggestion on step 4, unfortunately for me the hosting provider in this case only allows local, authenticated email to flow outbound.

    I seem to be having this issue on a few different wordpress setups I’m running, which use different themes.

    As it stands now neither this, nor contact form 7 seems to work for me, which is bizarre since all of the other email functions of wordpress seem to work fine. Any suggestions further? Maybe something I could add to increase debugging to show exactly what the plugin is attempting to do?

    -cf

    Mike Challis

    (@mikechallis)

    cfaber, I would turn to your host for support then, or find a host that does not have that unusual restriction.

    Thread Starter cfaber

    (@cfaber)

    In this case that’s not really an option. Clearly something is wrong here which seems to be preventing plugins from correctly utilizing the correct mailer settings.

    Is there any way with your plugin to enable a deeper debugging so I can actually see what it’s trying to send to the smtp to verify that it’s doing the correct thing?

    Mike Challis

    (@mikechallis)

    This is the code in my form that sends the mail, all it does is pass on the email address, subject, message , and headers to the function wp_mail.
    wp_mail is part of wordpress, not the plugin. I have no debugging for that.

    Maybe the author of wp-mail-smtp can help you, or general WP support.

    if (!wp_mail($mail_to,$subj,$msg,$header)) {
    		die('<p>' . __('The e-mail could not be sent.', 'si-contact-form') . "<br />\n" .
            __('Possible reason: your host may have disabled the mail() function.', 'si-contact-form') . '</p>');
    }
    Thread Starter cfaber

    (@cfaber)

    I know that I can modify wp-mail-smtp directly and enable debugging via phpmailer object, really I guess I need to dump callers on the routine to see where it’s actually going.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Fast and Secure Contact Form] Test works but contact form doesn’t’ is closed to new replies.