pinoyz

i made a program that sends an email... it work's perfectly so i decided to put some spice... i put some change font,size,styles and also i put some colors too... but when the receipients received the email it's just plain text... no color , no bullet, even style or change in size... pls help

regards




Re: Visual Basic Express Edition sending email problem...

Paul Montagna

The user recieves it and views it in the application or something like outlook express





Re: Visual Basic Express Edition sending email problem...

pinoyz

they viewed it in outlook/outlook express






Re: Visual Basic Express Edition sending email problem...

Paul Montagna

Hmm could you show us the code you use to send it please.





Re: Visual Basic Express Edition sending email problem...

pinoyz

what i remember are follow:

'Send Button

Dim Email as new System.Net.Mail.MailMessage("myemail@my.com","youremail@your.com")

Email.Subject = textbox1.text

Email.Body = Richtextbox1.text

Dim x as new System.Net.Mail.StmpClient("smtp.sample.com")

Dim net as new System.Net.NetworkCredentials("myemail@my.com","mypassword")

x.Credentials = net

x.send(Email)

'Font

Dim x as new FontDialog

if x.showdialog = Windows.forms.DialogResults.Ok then

dim s as new Font(x.Font.Fontfamily, x.Font.SizeofPoint, x.Font.Style)

Richtextbox1.SelectedFont = s

end if






Re: Visual Basic Express Edition sending email problem...

Paul Montagna

Try setting the format...

Code Snippet

Email.BodyFormat = MailFormat.HTML or MailFormat.Text


Not sure which should work.





Re: Visual Basic Express Edition sending email problem...

pinoyz

it make a HTML format but it's the same output plain text

please help






Re: Visual Basic Express Edition sending email problem...

pinoyz

bump......... is there something wrong in my code that's why it sends as plain text

Dim Email as new Sytem.Net.Mail.MailMessage("myemail@email.com", "youremail@email.com")

Email.Subject = "test"

Email.Body = RTB.text

Email.isHTMLBody = true

Dim smtp as new System.Net.Mail.SmtpClient("smtp.mail.com")

Dim credential as new System.Net.NetworkCredential("myemail","mypassword")

smtp.Credentials = Credential

smtp.send(Email)






Re: Visual Basic Express Edition sending email problem...

pinoyz

bump......