kveelenturf
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
In the meantime I found out that Gravity Forms is doing the following:
$headers['From'] = 'From: "' . wp_strip_all_tags( $name, true ) . '" <' . $from . '>';I’ve deleted the ” “s and now the single quotes are gone in the From name. Is that something you guys can make a workaround for in the Post SMTP plugin? I see that there is some replacing for ” and ‘ in Post SMTP’s code, but it doesn’t seem to strip the From name from its single quotes.
- This reply was modified 8 years, 2 months ago by kveelenturf.
Forum: Plugins
In reply to: [Add-on Gravity Forms - MailPoet 3] Subscribing to extra listI’ve tried to fix the problem myself, using inspiration from another thread (https://wordpress.org/support/topic/modification-to-allow-adding-to-lists/).
I’ve replaced the code around line 109 with the following, I tested it and it worked.
try { $subscriberExists = \MailPoet\API\API::MP('v1')->getSubscriber($subscriber_data['email']); } catch(Exception $exception) { if ( $subscriberExists == '' ) { try { $subscriber = \MailPoet\API\API::MP('v1')->addSubscriber($subscriber_data, $mailpoetlists); } catch (Exception $exception) { // return $exception->getMessage(); } } } if ($subscriberExists != '' ) { try { $subscriber = \MailPoet\API\API::MP('v1')->subscribeToLists($subscriber_data['email'], $mailpoetlists); } catch (Exception $exception) { // return $exception->getMessage(); } }
Viewing 2 replies - 1 through 2 (of 2 total)