Advertisement
Guest User

Untitled

a guest
May 21st, 2013
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace xxx
  12. {
  13. public partial class Form1 : Form
  14. {
  15. public Form1()
  16. {
  17. InitializeComponent();
  18. }
  19.  
  20. private void Form1_Load(object sender, EventArgs e)
  21. {
  22.  
  23. }
  24.  
  25. private void button1_Click(object sender, EventArgs e)
  26. {
  27. Redemption.RDOSession rdoSession = new Redemption.RDOSession();
  28. rdoSession.LogonExchangeMailbox("ali.yilmaz@nl.dsv.com", "i01223.dsv.com");
  29.  
  30. // Create mail object and send mail
  31. Redemption.RDOMail m = (Redemption.RDOMail)rdoSession.GetSharedDefaultFolder("ali.yilmaz@nl.dsv.com", Redemption.rdoDefaultFolders.olFolderInbox).Items.Add("IPM.Note");
  32. m.Recipients.Add("Aliyilmaz995@gmail.com");
  33. m.Recipients.ResolveAll(null, null);
  34. m.Subject = "Subject";
  35. m.Body = "Dit is een testmailtjee ";
  36. m.SenderEmailAddress = "ali.yilmaz@nl.dsv.com";
  37. m.Send();
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement