• Resolved nejc

    (@nejc)


    Hello,

    I would like to report an issue. I am using Elementor and SMTP2GO via API. If I create a form using Elementor Form and enter, for example, “company d.o.o.” in the Sender field, the email fails to send due to the dots in the name. If I remove the dots, it works. Previously, it worked even with dots before I added your plugin and started sending emails via SMTP2GO, so I suspect there is a bug in the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Victoria Sakal

    (@sakalvictoria)

    Hi, @nejc!

    Thank you for reaching out, and we’re sorry for the trouble.

    We are looking into this issue and will update you as soon as we have more details.

    We appreciate your patience with this!

    Plugin Support Victoria Sakal

    (@sakalvictoria)

    Hi, @nejc!

    Thanks for your patience.

    We were able to replicate the issue on our side, and this will be fixed in the next releases. In the meantime, you can use this code snippet to fix the issue:

    add_filter( 'wp_mail_from_name', function( $name ) {
    	if (
    		! empty( $name ) &&
    		strpos( $name, '.' ) !== false
    	) {
    		$name = "\"$name\"";
    	}
    
    	return $name;
    }, PHP_INT_MAX );

    In case it helps, here’s a tutorial with the most common ways to add custom code like this.

    Thank you for pointing this issue to us, and we’re sorry for the trouble caused.

    Kind regard.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.