Support » Plugin: WP Mail SMTP by WPForms » Defining settings in wp_mail_smtp.php

  • Standoutmedia



    Your plugin works great here!
    But i would like to set all settings in the PHP file.
    So i’ve defines these settings:

    $wpms_options = array (
    	'mail_from' => '',
    	'mail_from_name' => 'Your website',
    	'mailer' => 'smtp',
    	'mail_set_return_path' => 'false',
    	'smtp_host' => '',
    	'smtp_port' => '587',
    	'smtp_ssl' => 'tls',
    	'smtp_auth' => true,
    	'smtp_user' => '',
    	'smtp_pass' => 'Secret123'

    But they are not being passed on correctly, when i go to wordpress and load the configuration page these values are not set:

    Authentification, Encryption, return-path(if set).

    I can define them manually, and the plugin works though.
    So how do i define all my settings in the plugin file?

  • The topic ‘Defining settings in wp_mail_smtp.php’ is closed to new replies.