note 55428 added to ref.mail

From: Date: Wed, 03 Aug 2005 10:31:02 +0000
Subject: note 55428 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-93000@lists.php.net to get a copy of this message
I have a problem. I want to send a mail to thouse who have registered in my newsletter, and in this mail, I will give them a direct link to remove thier email from the mailing list. This is the code: $link = "$diensturl/newsletter.php?mail=$thisemail&name=$thisname"; mail($thisemail,$dienst_title." Newsletter Eintrag"," Hallo $thisname, sie haben sich im Newsletter $dienst_title eingetragen mit folgenden Daten: -------------------------------------------- Name: $thisname E-Mail: $thisemail -------------------------------------------- Sollte das ohne Ihre Zustimmung geschehen sein, dann benutzen Sie Bitte folgenden Link, um sich umgehend wieder aus der Mailingliste zu entfernen: $link Wir entschuldigen uns falls Ihnen dadurch Unannehmlichkeiten bereitet werden. ", "From: $dienst_title <$dienstadminmail> Content-Type:html"); } Now if a nem $thisname - is given with space in it, like for example Andreas Duswald, than in the sended Mail, the link is broken. duswald is not a part of the Link anymore, because of the space. Is it possible, to convert it somehow, that also the Last name is put into the link, without making a html mail. thank you ---- Manual Page -- http://www.php.net/manual/en/ref.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55428 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55428&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55428&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55428&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55428&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55428&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55428&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55428&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#93000) next »