Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace xxx
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- }
- private void button1_Click(object sender, EventArgs e)
- {
- Redemption.RDOSession rdoSession = new Redemption.RDOSession();
- rdoSession.LogonExchangeMailbox("ali.yilmaz@nl.dsv.com", "i01223.dsv.com");
- // Create mail object and send mail
- Redemption.RDOMail m = (Redemption.RDOMail)rdoSession.GetSharedDefaultFolder("ali.yilmaz@nl.dsv.com", Redemption.rdoDefaultFolders.olFolderInbox).Items.Add("IPM.Note");
- m.Recipients.Add("Aliyilmaz995@gmail.com");
- m.Recipients.ResolveAll(null, null);
- m.Subject = "Subject";
- m.Body = "Dit is een testmailtjee ";
- m.SenderEmailAddress = "ali.yilmaz@nl.dsv.com";
- m.Send();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement