Current location: Hot Scripts Forums » Programming Languages » Windows .NET Programming » Emails not formatted correctly in hotmail but formatted fine in outlook.


Emails not formatted correctly in hotmail but formatted fine in outlook.

Reply
  #1 (permalink)  
Old 01-20-06, 03:31 PM
sanjeet sanjeet is offline
New Member
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Emails not formatted correctly in hotmail but formatted fine in outlook.

In hotmail my email show up like this:

Your case is now ready for publication in the AANS case index. The final step
prior to
publications is the submission of CME questions for the case. This can be done
by
following this link:
http://myaans/default.aspx?tabid=27&CaseId=155

In outlook my email shows up like this:

Your case is now ready for publication in the AANS case index. The final step prior to
publications is the submission of CME questions for the case. This can be done by
following this link: link to CME forum here:
http://myaans/default.aspx?tabid=27&CaseId=150

This is the function I use to run the email:

private void sendCaseApprovedForReviewToSubmitter()
//Send an email to the Submitter when the status s changed to Approved for review

{
//Retreive Email for Submitter

OnlineCaseController controller = new OnlineCaseController();
OnlineCaseInfo oco = new OnlineCaseInfo();
oco = controller.Get(_case.CaseId);


OnlineCaseReviewerController ocrc = new OnlineCaseReviewerController();
OnlineCaseReviewerInfo ocri = new OnlineCaseReviewerInfo();
ocri = ocrc.GetOnlineCaseSubmitter(oco.Submitter);


StringBuilder sbto = new StringBuilder();
StringBuilder sbbody = new StringBuilder();

string url = string.Format("http://{0}/default.aspx?tabid={1}&CaseId={2}", Request.ServerVariables[ "SERVER_NAME" ], this.TabId, _caseId );

sbto.AppendFormat( "{0};", ocri.Email );

//Retreive all the information on the case subject to send it to the editor who edited the case.

sbbody.Append("Your case is now ready for publication in the AANS case index. The final step prior to ");
sbbody.Append("\r\n");
sbbody.Append("publications is the submission of CME questions for the case. This can be done by ");
sbbody.Append("\r\n");
sbbody.Append("following this link:");
sbbody.Append("\r\n");
sbbody.Append(url);


controller = null;
oco = null;
ocrc = null;
ocri = null;
DotNetNuke.Globals.SendNotification(FromEmail, sbto.ToString(), null,"Online Case Approved For Review",sbbody.ToString(),null,null,null);
sbto = null;
sbbody = null;

}

It seems in hotmail extra line breaks and carriag e returns are occuring.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 02:16 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.