473,395 Members | 2,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

problem with Maildefinition

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
May 2 '07 #1
2 1650
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
May 3 '07 #2
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


May 3 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

117
by: Peter Olcott | last post by:
www.halting-problem.com
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
0
by: Smokey Grindle | last post by:
is there anyway to use a maildefinition object outside of an aspx page? say in a user control library? i need to use it or something similar in my web control library, but cant... thanks!
0
by: Bob | last post by:
Hi, I want to send the pasword with MailDefinition when someone creates an account with CreateUserWizard control. I defined a txt file with this: Welcome new user, <br<br> Your password is:...
0
by: Albert | last post by:
Hi, i want to send the recovered password using Maildefinition. But i don't find any "password" to add to the control PasswordRecovery1 as body of the email. It works but only the username is in...
2
by: Jeff | last post by:
Hey asp.net 2.0 I've configured PasswordRecovery to send password to the user: <MailDefinition Subject="Ditt Passord" BodyFileName="~/Emails/PasswordRecovery.txt" > </MailDefinition> The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.