Typo3: Email Link Subject in Extension with Spam Protection


Developing a typo3 extension which is generating output, presenting a link for an email address is no matter using the function getTypoLink(). But as soon, as you try to add a predefined subject with space characters to the mail and you have turned on the build in spam protection feature, this can lead into some trouble.

$mailInfosLink = $this->cObj->getMailTo( $emailAddress.’?subject=Email subject with multiple words’, $emailAddress);

$mailInfosText = $this->cObj->getMailTo($emailAddress,$emailAddress);

$email =  ‘<a href=”‘.$mailInfosLink[0].'”>’.$mailInfosText[1].'<a>’;

If you have any query then feel free to contact me at Jainish Senjaliya

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s