Click here to Skip to main content
15,909,897 members
Home / Discussions / C#
   

C#

 
QuestionHow to enable/disable(install/uninstall) serial port in C#? [modified] Pin
nasif400324-Oct-07 3:07
nasif400324-Oct-07 3:07 
AnswerRe: How to enable/disable(install/uninstall) serial port in C#? Pin
ScottM124-Oct-07 4:12
ScottM124-Oct-07 4:12 
QuestionWhat is the proper way to send emails? Pin
Tomz_KV24-Oct-07 2:50
Tomz_KV24-Oct-07 2:50 
AnswerRe: What is the proper way to send emails? Pin
Anthony Mushrow24-Oct-07 2:56
professionalAnthony Mushrow24-Oct-07 2:56 
AnswerRe: What is the proper way to send emails? Pin
Justin Perez24-Oct-07 3:01
Justin Perez24-Oct-07 3:01 
GeneralRe: What is the proper way to send emails? Pin
Anthony Mushrow24-Oct-07 3:48
professionalAnthony Mushrow24-Oct-07 3:48 
GeneralRe: What is the proper way to send emails? Pin
Justin Perez24-Oct-07 3:53
Justin Perez24-Oct-07 3:53 
AnswerRe: What is the proper way to send emails? Pin
Mike Dimmick24-Oct-07 5:38
Mike Dimmick24-Oct-07 5:38 
Generally, you should put as many recipients as you can into the same message so that servers can make use of single-instance storage and reduce the amount of traffic sent. The SMTP specification (RFC 2821[^]) requires that SMTP servers accept at least 100 recipients per message. However, some sites now only accept lower limits (notably Hotmail). Intermediate servers can generally cope with splitting a message where there are too many recipients at a receiving site. A SMTP server set up to deliver mail on your behalf - often called a 'smart host' - will perform separate SMTP connections to each receiving site, if there is more than one receiving domain in the recipient list.

If you don't want the recipients to see the list of users that the message was sent to, use the Bcc field.

The System.Web.Mail namespace wraps the CDOSYS library. I think it's OK to add as many addresses as you like in a single message up to the limit configured in the SMTP server you send to, which will in turn split the message into multiple messages as required for each server it talks to, if that server's recipient limit is reached. You'll have to find out the limit from the administrator of your server.

System.Net.Mail classes (e.g. SmtpClient) do the SMTP conversation directly in .NET code if you set DeliveryMethod to SmtpDeliveryMethod.Network (saving a heck of a lot of COM Interop chatter). In this case, if you specify more addresses than the receiving server can handle, you will get an SmtpFailedRecipientException (if only one failed) or an SmtpFailedRecipientsException (more than one). Cases where it failed because too many recipients were specified should appear with a StatusCode of SmtpStatusCode.InsufficientStorage (452), but might appear as ExceededStorageAllocation (552).


DoEvents: Generating unexpected recursion since 1991

QuestionActivex control registeration problem Pin
mayoya8524-Oct-07 2:01
mayoya8524-Oct-07 2:01 
QuestionC# desperately need helps [modified] Pin
Mohd. Firdaus24-Oct-07 1:43
Mohd. Firdaus24-Oct-07 1:43 
AnswerRe: C# desperately need helps Pin
J4amieC24-Oct-07 1:46
J4amieC24-Oct-07 1:46 
AnswerHint Pin
CPallini24-Oct-07 1:54
mveCPallini24-Oct-07 1:54 
AnswerRe: C# desperately need helps Pin
Professor Sharada Ulhas24-Oct-07 4:34
Professor Sharada Ulhas24-Oct-07 4:34 
GeneralRe: C# desperately need helps Pin
J4amieC24-Oct-07 4:43
J4amieC24-Oct-07 4:43 
GeneralRe: C# desperately need helps Pin
Mohd. Firdaus26-Oct-07 2:47
Mohd. Firdaus26-Oct-07 2:47 
QuestionHow to drop text at a cursor position Pin
Cmd.COM24-Oct-07 1:33
Cmd.COM24-Oct-07 1:33 
AnswerRe: How to drop text at a cursor position Pin
Mohib Sheth24-Oct-07 20:33
Mohib Sheth24-Oct-07 20:33 
GeneralRe: How to drop text at a cursor position Pin
Cmd.COM24-Oct-07 22:57
Cmd.COM24-Oct-07 22:57 
Questionis it possible to find List item belongings? Pin
c0ax_lx24-Oct-07 1:22
c0ax_lx24-Oct-07 1:22 
AnswerRe: is it possible to find List item belongings? Pin
Luc Pattyn24-Oct-07 1:32
sitebuilderLuc Pattyn24-Oct-07 1:32 
GeneralRe: is it possible to find List item belongings? Pin
c0ax_lx24-Oct-07 1:48
c0ax_lx24-Oct-07 1:48 
GeneralRe: is it possible to find List item belongings? Pin
Pete O'Hanlon24-Oct-07 2:31
mvePete O'Hanlon24-Oct-07 2:31 
GeneralRe: is it possible to find List item belongings? Pin
c0ax_lx24-Oct-07 8:39
c0ax_lx24-Oct-07 8:39 
GeneralRe: is it possible to find List item belongings? Pin
Pete O'Hanlon24-Oct-07 9:09
mvePete O'Hanlon24-Oct-07 9:09 
QuestionHow to attach a document to our form in c#.net Pin
bobin scaria24-Oct-07 1:19
bobin scaria24-Oct-07 1:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.