0

Hey ppl, i'm quite new to the whole programming thing so bear with me.
I want to use a RichTextBox as a body for a email. How do i get the textBox to accept images.

:-|

2
Contributors
4
Replies
5
Views
10 Years
Discussion Span
Last Post by Mayo
0

Hey ppl, i'm quite new to the whole programming thing so bear with me.
I want to use a RichTextBox as a body for a email. How do i get the textBox to accept images.

:-|

Cooooool, never mind about the image in TextBox, got that right.
But now i realy need help.......
I want to insert all information from the textBox into a mail message's
body, including the pictures.
Please assist me here.......
:-|

0

To send the email, not to sure aboutt he picture.

// create mail message object
MailMessage mail = new MailMessage();
mail.From = "";           // put the from address here
mail.To = "";             // put to address here
mail.Subject = "";        // put subject here	
mail.Body = "";           // put body of email here
SmtpMail.SmtpServer = ""; // put smtp server you will use here 
// and then send the mail
SmtpMail.Send(mail);
0

To send the email, not to sure aboutt he picture.

// create mail message object
MailMessage mail = new MailMessage();
mail.From = "";           // put the from address here
mail.To = "";             // put to address here
mail.Subject = "";        // put subject here    
mail.Body = "";           // put body of email here
SmtpMail.SmtpServer = ""; // put smtp server you will use here 
// and then send the mail
SmtpMail.Send(mail);

Thanks for the reply but i have that syntax, but i would like to know
to load it into the body.
eg. mailMsg.Body = richTextBox.ToString();
Thanx.....

0

Sorry for the noddy qeustion but,
how do i read values from a textbox line for line???????

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.