[TYPO3-english] htmlmail->setRecipient How to use a string (coding for ext)
Leen Strijk
leenstrijk at tomaatnet.nl
Thu Oct 27 15:55:19 CEST 2011
Hello,
I am making an extension that wil send a mail to a specific recipient.
That can be a different one for every email.
When I use the real email address all goes well but when i use a string
with the emailaddress it doesn't get sent.
example
$Typo3_htmlmail->setRecipient('someone at server.com'); ---> this works
$mailto = "someone at server.com";
$Typo3_htmlmail->setRecipient($mailto); -----> won't work
$Typo3_htmlmail->setRecipient("".$mailto.""); -----> won't work
Can someone tell me how to code this so that I can use $mailto
kind regards from Leen
More information about the TYPO3-english
mailing list