1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string urlEnCours = Request.Url.ToString();
WebRequest MaRequest = WebRequest.Create(urlEnCours);
MaReponse = MaRequest.GetResponse();
Stream streamReceive = MaReponse.GetResponseStream();
System.Text.Encoding encoding = System.Text.Encoding.GetEncoding("utf-8");
System.IO.StreamReader streamRead = new System.IO.StreamReader(streamReceive, encoding);
objSmtpMail.Body = streamRead.ReadToEnd().ToString();// " Vous avez une demande de conge de la part de votre equipier : " + Session["nom"].ToString() + " " + Session["prenom"].ToString() + "veuillez consulter votre<br> boite de reception ";
}
} |
Partager