I use this code :
MailMessage mail = new MailMessage();
mail.From = FromAddress;
mail.To = MailAddress;
mail.Subject = Subject;
mail.Body = MessageText;
mail.BodyFormat = MailFormat.Html;
if(XmlAttachmentPath.Length !=0)
{
MailAttachment csiAttachment = new MailAttachment(XmlAttachmentPath);
mail.Attachments.Add(csiAttachment);
}
SmtpMail.SmtpServer= oursmtpservername
SmtpMail.Send(mail);
This works well when I pass addresses of our emailids containitn our domain
name
when I try sending mails to other than our domain ids. say yahoo or msn it
gives me cdo.ojbect error.
How do i send mails then to other domain ids.
Help me
Thanks.