• Resolved azbce

    (@azbce)


    Hello! ME again. ??

    I would like to know if there is a way to specify the outgoing SMTP mail server credentials for all outgoing petition mail?

    Can I use a an SMTP plugin to accomplish this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author SpeakOut!

    (@123host)

    Yes, try the wp-smtp plugin. Other people who have had this issue have had it solved by using the plugin. It seems to be a server configuration issue as the problem only arises rarely.

    Thread Starter azbce

    (@azbce)

    Ok awesome!

    What if I wanted to force outgoing mail to choose a random mail server?

    For example:

    $servers = [
        [
            'host'     => 'server1.example.com',
            'username' => 'user 1',
            'password' => 'password1',
        ],
        [
            'host'     => 'server2.example.com',
            'username' => 'user 2',
            'password' => 'password2',
        ],
        [
            'host'     => 'server3.example.com',
            'username' => 'user 3',
            'password' => 'password3',
        ],
    ];
    
    //Pick a random server (or however you want to select a server)
    $server = $servers[array_rand($servers)];
    
    //Use the selected server values for mailing
    $mail->Host = $server['host'];
    $mail->Username = $server['username'];
    $mail->Password = $server['password'];

    The problem is, the mail is sent using the hostname which is not an actual user. I need it to send from a specific email account.

    But I would also like to specify additional SMTP services to randomize the outgoing mail. I’ll put in like 10 pronto mail accounts.

    • This reply was modified 1 year, 10 months ago by azbce.
    • This reply was modified 1 year, 10 months ago by azbce.
    Plugin Author SpeakOut!

    (@123host)

    SpeakOut! doesn’t support that and I haven’t ever seen a plugin that does.

    But if you have some PHP coding skills it wouldn’t be hard to make it happen.

    Thread Starter azbce

    (@azbce)

    Ok understood.

    What file of the plugin handles the PHP Mail() function where I can specify an array of mail server credentials?

    I did find this addon plugin for Mailster which allows multiple mail servers to send newsletters. https://www.ads-software.com/plugins/mailster-multi-smtp/

    May I suggest adding this as a pro feature?

    In the age of internet censorship, It’s not formidable for counteractions to take place. In my case, our local government has blocked our entire server from sending mail to them. A randomized array of mail servers might help make sure mail is delivered and make it difficult to block. Especially if it’s google, yahoo, Microsoft, or another popular mail client. Of course, they could block individual email addresses but not the entire mail server.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Send mail using an external SMTP service?’ is closed to new replies.