|
Can u explain reg this... where i have to check for this...
|
|
|
|
|
You'll need to check with whoever runs the SMTP server that you are using to send your email. Many ISPs have rules about the number of emails you can send at a time to prevent spamming. I assume you have the permission of the people you are emailing?
"You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"
|
|
|
|
|
When i run the Email application, automatically the to-address is repeating.
ie.
TO: satish.g@techgene.com; kiran@techgene.com; madhu@techgene.com;
the above line is for one mail.
And for next mail
TO: satish.g@techgene.com; kiran@techgene.com; madhu@techgene.com; suchi@techgene.com
like this for mail to mail.. the toaddress is repeating.
But when i debug this, there is no loops to get this, and also when sending mail
there is only one id in to-address?
any idea ? what's the reason by coming like this?
there is no loop to come like this.
u can see the code in above posting
|
|
|
|
|
Satish - Developer wrote: objMailMessage.Body =
Hi,
in objMailMessage.To set only one ID. and all other ID set in objMailMessage.Cc
Try it.
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
Hi, Please see the code below.
I am reading mailid's from text file. In each line there is only one mailID.
so "_mailid" contains only 1 id.
now can u suggest how to put cc
MailAddress SendFrom = new MailAddress(txtFromAddr.Text);
SmtpClient objSmtpClient = new SmtpClient();
objSmtpClient.Host = "mail.domain.com";
objSmtpClient.Credentials = new System.Net.NetworkCredential("uname", "pwd");
while (!strdata.EndOfStream)
{
_mailId = Convert.ToString(strdata.ReadLine());
if (_mailId != "")
{
MailAddress SendTo = new MailAddress(_mailId);
MailMessage objMailMessage = new MailMessage(SendFrom, SendTo);
objMailMessage.Subject = Convert.ToString(txtSubject.Text);
objMailMessage.Body = Convert.ToString(webBrowser1.DocumentText);
objMailMessage.IsBodyHtml = true;
objSmtpClient.Send(objMailMessage);
}
}
|
|
|
|
|
Hi,
Satish - Developer wrote: MailAddress SendFrom = new MailAddress(txtFromAddr.Text);
without doing this. Just create mailmessage object.
MailMessage objMailMessage = new MailMessage();<br />
objMailMessage.To = "toUser's email ID";<br />
objMailMessage.Subject = Convert.ToString(txtSubject.Text);<br />
objMailMessage.Body = Convert.ToString(webBrowser1.DocumentText);<br />
objMailMessage.IsBodyHtml = true;<br />
<br />
SmtpClient objSmtpClient = new SmtpClient();<br />
objSmtpClient.Host = "mail.domain.com";<br />
objSmtpClient.Credentials = new System.Net.NetworkCredential("uname", "pwd");<br />
<br />
objSmtpClient.Send(objMailMessage);<br />
Just try this. If you are getting error then u must have to chekc for smtp setting of server.
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
is your PORT number correct...?
spaps
|
|
|
|
|
hi all,
I have a windows application in which i am using a webbrowser control. i write a html file which includes playing different types of media files like audio, video and flash files.
I embedded media player for video and audio files and for flash the flash player. when i execute quicktime files(video) its not playing in the media player.
i need to play the quicktime formats also in the media player if i give the URL.
is it possible?
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
quite innovative try to play that quick time format file in media player normally .....if its not able to play it then a message will appear regarding installation of files for media player if it works fine then u can do it
its me sid
|
|
|
|
|
hi,
thanks for your reply. probably i did not put myself correctly. the quicktime format files are not played in media player.
how can i play quick time formats using embed tag (i mean what type of object has to be embeded to play quicktime files)?.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
Hi,
My aim is to show a graphical grid on the window's form for alignments of labels ............n it must be show/hide type if any one knows how to do this please do let me know ...................regards
sindhu tiwari
Dont loose ur Heart
Beat untill ur enemy dies
|
|
|
|
|
Try TableLayoutPanel...
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
i never said a data grid i am asking abt the grid which u can see in designing softwares horizontal and parallel lines i hope its clear now
its me sid
|
|
|
|
|
for your kind info it's not a Data Grid, it's like a table which u can see while designing ur windows form and can place controls accordingly.
Do have a look at that...
that may work for u or may not,
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
I have .NET framework 2.0 installed on my machine. But I don't have VS2005. I am using VS2003. Is there anyway to access the .NET 2.0 libraries using VS2003 ?
|
|
|
|
|
AKAIK, you can only write code against v1.1 of the framework in VS2003.
You need to either upgrade to VS2005, or use a 3rd party IDE like SharpDevelop.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thanks. So what about .NET 3.0 ? If I have VS2005 installed, can I use .NET 3.0 classes ? I guess we can
|
|
|
|
|
Yes, you can use dot net 3 in VS2005, but not in VS2003.
"You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"
|
|
|
|
|
This link[^] explains how to update VS2005 to access .NET 3.0 functionality.
I believe that in VS2008, it will be possible to build your code against a specific version of the framework.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thanks for the information paul.
|
|
|
|
|
pmarfleet wrote: I believe that in VS2008, it will be possible to build your code against a specific version of the framework.
Your right but it's limited to 2.0, 3.0 and 3.5, you wont be able to do 1.0 or 1.1.
|
|
|
|
|
You can compile for .NET 1.0 and 1.1 in both VS2005 and VS2008, you just have to write the appropriate MSBuild targets (or download them, e.g. from here[^]).
|
|
|
|
|
I need to represent some data in memory which needs the performance of a
Dictionary lookup, but the key for these data consists of multible values,
e.g.:
Data has a structure like this:
ProductId (key) InventId (key) Property1 (value) Property2 (value)
1234 1 [somevalue] [somevalue]
1234 2 [somevalue] [somevalue]
1237 1 [somevalue] [somevalue]
The unique key in this case is a combination of 'ProductId' and 'InventId'
My first idea was to startout having the key a new Generic class e.g.
Key<T1,T2> for use with Dictionary<Key<T1,T2>, ProductRelation> etc..
- But this solution is not usable for more than two values for the key ....
What is the "best" Practice for this scenario? - if you want max flexibility and max
performance ??
Regards, Rune
|
|
|
|
|
Hello,
Why not use a non generic class or struct?
All the best,
Martin
|
|
|
|
|
a nongeneric collection would be a lot slower.
I could use a object[] as the key, but that would give a heavy performance penalty when boxing/unboxing values ... that's why generics is so good in this case.
|
|
|
|