note 55428 rejected from ref.mail by sean
| From: | sean@php.net | Date: | Wed, 03 Aug 2005 14:14:02 +0000 |
| Subject: | note 55428 rejected from ref.mail by sean | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-93008@lists.php.net to get a copy of this message | ||
Note Submitter: andreas at duswald dot de
----
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