Click here to Skip to main content
15,908,673 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
Member 1235774728-Mar-16 12:07
Member 1235774728-Mar-16 12:07 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
Patrice T28-Mar-16 12:13
mvePatrice T28-Mar-16 12:13 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
Member 1235774728-Mar-16 13:34
Member 1235774728-Mar-16 13:34 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
OriginalGriff28-Mar-16 20:30
mveOriginalGriff28-Mar-16 20:30 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
Member 1235774730-Mar-16 3:03
Member 1235774730-Mar-16 3:03 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
OriginalGriff30-Mar-16 3:13
mveOriginalGriff30-Mar-16 3:13 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
harold aptroot28-Mar-16 22:57
harold aptroot28-Mar-16 22:57 
GeneralRe: Using C#: Squares on Chessboard a Queen can not move to. Pin
Member 1235774730-Mar-16 3:05
Member 1235774730-Mar-16 3:05 
QuestionSession inside webmethod Pin
Sandy Safwat28-Mar-16 5:35
Sandy Safwat28-Mar-16 5:35 
QuestionRe: Session inside webmethod Pin
ZurdoDev28-Mar-16 7:35
professionalZurdoDev28-Mar-16 7:35 
PraiseAdd connetion properties Pin
Member 770765026-Mar-16 6:49
Member 770765026-Mar-16 6:49 
GeneralRe: Add connetion properties Pin
Dave Kreskowiak26-Mar-16 7:48
mveDave Kreskowiak26-Mar-16 7:48 
GeneralRe: Add connetion properties Pin
Member 770765026-Mar-16 8:01
Member 770765026-Mar-16 8:01 
GeneralRe: Add connetion properties Pin
Dave Kreskowiak26-Mar-16 8:44
mveDave Kreskowiak26-Mar-16 8:44 
QuestionHow to add Windows firewall exception without admin privileges Pin
srikrishnathanthri26-Mar-16 2:31
srikrishnathanthri26-Mar-16 2:31 
AnswerRe: How to add Windows firewall exception without admin privileges Pin
OriginalGriff26-Mar-16 3:06
mveOriginalGriff26-Mar-16 3:06 
GeneralRe: How to add Windows firewall exception without admin privileges Pin
srikrishnathanthri27-Mar-16 18:57
srikrishnathanthri27-Mar-16 18:57 
GeneralRe: How to add Windows firewall exception without admin privileges Pin
Bernhard Hiller28-Mar-16 23:52
Bernhard Hiller28-Mar-16 23:52 
AnswerRe: How to add Windows firewall exception without admin privileges Pin
Dave Kreskowiak26-Mar-16 5:14
mveDave Kreskowiak26-Mar-16 5:14 
AnswerRe: How to add Windows firewall exception without admin privileges Pin
Patrice T27-Mar-16 11:11
mvePatrice T27-Mar-16 11:11 
QuestionHow display the file name in the right menu? Pin
youlu24-Mar-16 22:57
youlu24-Mar-16 22:57 
AnswerRe: How display the file name in the right menu? Pin
Eddy Vluggen25-Mar-16 0:47
professionalEddy Vluggen25-Mar-16 0:47 
GeneralRe: How display the file name in the right menu? Pin
youlu31-Mar-16 20:07
youlu31-Mar-16 20:07 
QuestionAsynchronous email sending with Retries Pin
Jassim Rahma24-Mar-16 3:36
Jassim Rahma24-Mar-16 3:36 
Hi,

I have below code to send email to customers but sometimes it's failing because of slow internet and sometimes it show the please wait splash for long time.

I want to know how can I just send it in the background and keep retrying for x number of times without disturbing the users with Please wait splash or error messages?
C#
email_body = new StringBuilder();

email_body.Append("<html>");
email_body.Append("<body>");
email_body.Append("Please do not reply to this message. Replies to this message are routed to an unmonitored mailbox.");
email_body.Append("<hr>");
email_body.Append("<img src='cid:" + email_logo.ContentId + "' align=baseline border=0>");
email_body.Append("<br><br>");
email_body.Append("Dear " + customer_title + first_name + ",");
email_body.Append("<br><br>");
email_body.Append("We are glad to inform you that your order# " + order_id.ToString() + " has been delivered / picked up at " + MarkAsDeliveredForm.dateDeliveryTime.Time.ToString("HH:mm") + ".");
email_body.Append("<br><br>");
email_body.Append("We appreciate your business and encourage you to reach out to us for all your occasions.");
email_body.Append("<br><br>");
email_body.Append("<center>THANK YOU FOR CHOOSING <a href='http://www.cakeboutiquebh.com' target='_blank' style='text-decoration: none;'>CAKE BOUTIQUE</a></center>");
email_body.Append("<br><br>");
email_body.Append("<img src='cid:" + email_footer.ContentId + "' align=baseline border=0>");
email_body.Append("</body>");
email_body.Append("</html>");

mail_message.Subject = "Your Order# " + order_id.ToString() + " is Delivered";
mail_message.IsBodyHtml = true;
mail_message.Body = email_body.ToString();

smtp_client.Port = 587;
smtp_client.Credentials = new System.Net.NetworkCredential("noreply@mydomain.com", "xxxxxxxxxx");
smtp_client.EnableSsl = true;

smtp_client.Send(mail_message);

Thanks,
Jassim[^]

Technology News @ www.JassimRahma.com

GeneralRe: Asynchronous email sending with Retries Pin
Sascha Lefèvre24-Mar-16 3:51
professionalSascha Lefèvre24-Mar-16 3:51 

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.