i want to send a mail from vb.net 1.0. I have done some code for that as follows.
Try myMessage = New System.Web.Mail.MailMessage With myMessage .To = sendTo .From = From .Subject = Subject .Body = Body .BodyFormat = System.Web.Mail.MailFormat.Text SMTPServer = "smtp.rediffmailpro.com" If CC <> "" Then .Cc = CC If BCC <> "" Then .Bcc = "" End With System.Web.Mail.SmtpMail.Send(myMessage)
I have a rediffmailpro domain. When in "From mail id" I used my domain id its sending mail to any mail id i.e to gmail, yahoo etc. but when trying from other mail id's like gmail or yahoo its not giving error but mails also not sent.
please help me.. TIA.