mail problems

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Venkat

    #1

    mail problems

    I have win-2003.

    body ="Test body";

    MailMessage mail = new MailMessage();
    mail.From = "Test_From" ;
    mail.To = "name@domai n-name.com";
    mail.Subject = "Mail-Html format";
    mail.Body = body;
    mail.BodyFormat = MailFormat.Html ;
    SmtpMail.SmtpSe rver= "domain_ser ver" ;

    if I mention the smtp server name then the mails go correctly, only if it is
    our domain name. if i mention @hotmail or @yahoo, it fails sending the mails
    and puts up saying unable to access cdo.message object.

    any one knows how to send mails to other domain names also? Is any
    configuration necessary in the client side/relay server to achieve this?

    Thanks,
    venakt.
  • Leonard Danao

    #2
    Re: mail problems

    sounds liek your SMTP server only relays within your domain check the config
    on the server
    "Venkat" <Venkat@discuss ions.microsoft. com> wrote in message
    news:5A5830FC-32E7-4146-AA10-1E7B9B4699E9@mi crosoft.com...[color=blue]
    > I have win-2003.
    >
    > body ="Test body";
    >
    > MailMessage mail = new MailMessage();
    > mail.From = "Test_From" ;
    > mail.To = "name@domai n-name.com";
    > mail.Subject = "Mail-Html format";
    > mail.Body = body;
    > mail.BodyFormat = MailFormat.Html ;
    > SmtpMail.SmtpSe rver= "domain_ser ver" ;
    >
    > if I mention the smtp server name then the mails go correctly, only if it[/color]
    is[color=blue]
    > our domain name. if i mention @hotmail or @yahoo, it fails sending the[/color]
    mails[color=blue]
    > and puts up saying unable to access cdo.message object.
    >
    > any one knows how to send mails to other domain names also? Is any
    > configuration necessary in the client side/relay server to achieve this?
    >
    > Thanks,
    > venakt.[/color]


    Comment

    Working...