Hi, thanks for replying.
i don't send it in htmlformat
i send you in attachment the file used .
When clicking on "create new user" in the CreateUserWizard control, it's
asp.net which send teh content of file apw.txt using the entered
emailaddress of the new user.
"Hans Kesting" <ne***********@spamgourmet.comschreef in bericht
news:c0**************************@news.microsoft.c om...
>Hi,
i use this tag within the CreateUserWizard control:
<MailDefinition
BodyFileName="pw.txt"
From="we*****@mydomain.xy"
Subject="your passwoord"/>
The content of file pw.txt is this:
Hi,
Your passwoord is: ##password##
The eTeam
This all works, only that the text is rendered without linebreak. I
tried to add \n behind each line (e.g. Hi, \n), but it doesn't work.
How can i insert a linebreak or hard return at the end of each line?
Thanks
Dave
That could depend on a number of things:
* How are you building the MailMessage from that pw.txt file?
* Do you send the mail as "Html format"?
By the way: \n is only treated as shorthand for "linefeed" when the
C# compiler compiles a string in your sourcecode. When you write that
from a file it is treated as just two characters: '\' and 'n'.
Hans Kesting