C
Carlo Goretti
Guest
Hey! Im working with a program that will make and send emails.
My Question is if anyone knows if you can get a hyperlink from a Appointment.
The hyperlink are going to be the reciever of the email. I also want to make that it only check for the appointment of the day.
Anyone have some ideas?
try
{
Outlook.Application outlookApp = new Outlook.Application();
Outlook.MailItem mailItem = (Outlook.MailItem)outlookApp.CreateItem(Outlook.OlItemType.olMailItem);
//Outlook.AppointmentItem appointmentItem = (Outlook.AppointmentItem)outlookApp.CreateItem(Outlook.OlItemType.olAppointmentItem);
mailItem.Subject = "Build Uppgradering av Skarp och test PM "+ KundNamn +" Klar. ";
mailItem.To = "carlo.goretti@live.se";
mailItem.CC = "Hanna.Lovinder@momentum.se";
mailItem.Body = "Hej," +
"\n\n" +
"Hej nu är build uppgradering klar av er skarp och test PM installation klar. " +
"\n" +
"Om man saknar sökvägar skarpa versionen:" +
KortLänkProd +
"\n\n" +
"Eller" +
LångLänkProd +
"\n\n\n\n" +
"Om man saknar sökvägar till test versionen:" +
KortLänkTest +
"\n\n" +
LångLänkTest +
"\n\n" +
"Om ni har några frågor eller stöter på några problem så får ni gärna återkomma." +
"\n\n" +
//appointmentItem.Body
"Med Vänliga Hälsningar"; //+ ReadSignature() + mailItem.HTMLBody;
//+ mailItem.HTMLBody + ReadSignature();
mailItem.Importance = Outlook.OlImportance.olImportanceLow;
mailItem.Display(false);
}
catch (Exception eX)
{
throw new Exception("cDocument: Error occurred trying to Create an Outlook Email"
+ Environment.NewLine + eX.Message);
}
Continue reading...
My Question is if anyone knows if you can get a hyperlink from a Appointment.
The hyperlink are going to be the reciever of the email. I also want to make that it only check for the appointment of the day.
Anyone have some ideas?
try
{
Outlook.Application outlookApp = new Outlook.Application();
Outlook.MailItem mailItem = (Outlook.MailItem)outlookApp.CreateItem(Outlook.OlItemType.olMailItem);
//Outlook.AppointmentItem appointmentItem = (Outlook.AppointmentItem)outlookApp.CreateItem(Outlook.OlItemType.olAppointmentItem);
mailItem.Subject = "Build Uppgradering av Skarp och test PM "+ KundNamn +" Klar. ";
mailItem.To = "carlo.goretti@live.se";
mailItem.CC = "Hanna.Lovinder@momentum.se";
mailItem.Body = "Hej," +
"\n\n" +
"Hej nu är build uppgradering klar av er skarp och test PM installation klar. " +
"\n" +
"Om man saknar sökvägar skarpa versionen:" +
KortLänkProd +
"\n\n" +
"Eller" +
LångLänkProd +
"\n\n\n\n" +
"Om man saknar sökvägar till test versionen:" +
KortLänkTest +
"\n\n" +
LångLänkTest +
"\n\n" +
"Om ni har några frågor eller stöter på några problem så får ni gärna återkomma." +
"\n\n" +
//appointmentItem.Body
"Med Vänliga Hälsningar"; //+ ReadSignature() + mailItem.HTMLBody;
//+ mailItem.HTMLBody + ReadSignature();
mailItem.Importance = Outlook.OlImportance.olImportanceLow;
mailItem.Display(false);
}
catch (Exception eX)
{
throw new Exception("cDocument: Error occurred trying to Create an Outlook Email"
+ Environment.NewLine + eX.Message);
}
Continue reading...