how to Design mail body (text format)
-
i want send email from smtp but i can`t convert val(RichTextBox.propeties like color & font & siz)to mail.body format or i want convert RichTextBox.propeties to html my code Dim MA As New MailMessage MA.Subject = "hi" MA.BodyFormat = MailFormat.Text MA.Body = thes is proplem i want to send my Design in RichTextBox MA.From = "ahmedbondok1982@hotmail.com" MA.To = "hakbondok@yahoo.com" SmtpMail.SmtpServer = "smtp server" SmtpMail.Send(MA) Bad English :-D soory
Ahmed El-Badry
-
i want send email from smtp but i can`t convert val(RichTextBox.propeties like color & font & siz)to mail.body format or i want convert RichTextBox.propeties to html my code Dim MA As New MailMessage MA.Subject = "hi" MA.BodyFormat = MailFormat.Text MA.Body = thes is proplem i want to send my Design in RichTextBox MA.From = "ahmedbondok1982@hotmail.com" MA.To = "hakbondok@yahoo.com" SmtpMail.SmtpServer = "smtp server" SmtpMail.Send(MA) Bad English :-D soory
Ahmed El-Badry
Hi Ahmed, Have you tried to use
MailFormat.Html
? Text formatting can not be converted to normal text, but it can easily be changed to html. The settings of the mail client of the recipient can not be controlled anyway. But if they have set it to RichText, the client should convert html without a problem, and vice versa. JohanMy advice is free, and you may get what you paid for.
-
Hi Ahmed, Have you tried to use
MailFormat.Html
? Text formatting can not be converted to normal text, but it can easily be changed to html. The settings of the mail client of the recipient can not be controlled anyway. But if they have set it to RichText, the client should convert html without a problem, and vice versa. JohanMy advice is free, and you may get what you paid for.
I want to send mail thru office outlook 2003 with vb.net 2003 with embeded images ,but mailitem.body will except a string only.I need ur help urgently. I was once able to send a mail with embeded image using system.diagnostics.process namespace where I used body=nameofimagefile. I lost that code and link and don't seem to recapture that.Thanks Please help.
-
I want to send mail thru office outlook 2003 with vb.net 2003 with embeded images ,but mailitem.body will except a string only.I need ur help urgently. I was once able to send a mail with embeded image using system.diagnostics.process namespace where I used body=nameofimagefile. I lost that code and link and don't seem to recapture that.Thanks Please help.
Sorry my friend, I have no idea how to do that. Try to post a new question on this forum, maybe someone else has the code you need. good luck, Johan
My advice is free, and you may get what you paid for.