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

Problem by the sending


  1. candy
    Member

    Hi,
    I have a problem by sending. If i want to send a contactform, then to come the following errors:

    Warning: fsockopen() [function.fsockopen]: SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:func(143):reason(267) in /machform/lib/class.smtp.php on line 122

    Warning: fsockopen() [function.fsockopen]: Failed to enable crypto in /machform/lib/class.smtp.php on line 122

    Warning: fsockopen() [function.fsockopen]: unable to connect to tls://**.**.***.**:** (Unknown error) in /website/machform/lib/class.smtp.php on line 122
    Error sending email: SMTP Error: Could not connect to SMTP host.
    Warning: fsockopen() [function.fsockopen]: SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:func(143):reason(267) in /machform/lib/class.smtp.php on line 122

    Warning: fsockopen() [function.fsockopen]: Failed to enable crypto in /machform/lib/class.smtp.php on line 122

    Warning: fsockopen() [function.fsockopen]: unable to connect to tls://**.**.***.**:** (Unknown error) in /website/machform/lib/class.smtp.php on line 122
    Error sending email: SMTP Error: Could not connect to SMTP host.
    Warning: Cannot modify header information - headers already sent by (output started at /website/machform/lib/class.smtp.php:122) in /website/machform/embed.php on line 42

    I have ad the ip-adress of the smtp-server from my provider. My provider support smtp via ssl and so i can no understand the reason of the error.

    Here my config.php:

    define('USE_SMTP',true); //set this to 'true' to use SMTP

    define('SMTP_HOST','**.**.***.**');
    define('SMTP_PORT',25);
    define('SMTP_AUTH',false); //if your SMTP require authentification, set this to 'true'
    define('SMTP_USERNAME','YOUR_SMTP_USERNAME');
    define('SMTP_PASSWORD','YOUR_SMTP_PASSWORD');
    define('SMTP_SECURE',false); //set this to 'true' if your server is using secure SMTP (TLS/SSL)

    Thank you.

    Posted 15 years ago #
  2. yuniar

    If you are using secure SMTP, make sure to set these values:

    define('SMTP_PORT',25); <== change the port number
    define('SMTP_SECURE',false); <== change this to 'true'

    also if your SMTP requires authentication, set the username and password as well.


    MachForm Founder

    Posted 15 years ago #
  3. candy
    Member

    Hi,
    first of all: thanks for the fast support.
    It works only without SMTP. What are the pros for using SMTP?

    And an other question:
    Where can I modify the layout of the confirmation mail, wich get the client?

    Thanks

    Posted 15 years ago #
  4. yuniar

    If your form already worked without SMTP, I suggest use it that way then.
    No need to use external SMTP. There will be no difference with your emails.

    To modify the layout of the confirmation email, simply click "more options" on the email page and adjust the body template using template variables.


    MachForm Founder

    Posted 15 years ago #
  5. candy
    Member

    Thanks for the fast reply.
    After I have call my provider, SMTP works.
    Only with SSL on, errors appears.

    But I let it be, I guess. It works also so.

    Posted 15 years ago #

RSS feed for this topic

Reply