Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

NMSMTP component using C++ builder 6

phil_walkerphil_walker Member Posts: 2
I am creating an email client using c++ builder 6, but am having problems with the NMSMTP component. I am specifying the recipients address (using the NMSMTP1->PostMessage->ToAddress->Text=Edit1->Text; command) but am getting the error - '503 no recipient(s).' when I try to send an email. The program stops when it tries to run the NMSMTP1->SendMail(); command.

Any help would be greatly appreciated.

Cheers

Phil

Comments

  • 1960Bud1960Bud Member Posts: 37
    : I am creating an email client using c++ builder 6, but am having problems with the NMSMTP component. I am specifying the recipients address (using the NMSMTP1->PostMessage->ToAddress->Text=Edit1->Text; command) but am getting the error - '503 no recipient(s).' when I try to send an email. The program stops when it tries to run the NMSMTP1->SendMail(); command.
    :
    : Any help would be greatly appreciated.
    :
    : Cheers
    :
    : Phil
    :

    The only thing I can see is that you should be using "NMSMTP1->PostMessageA->ToAddress->Text = Edit1->Text;" instead of "NMSMTP1->PostMessage->ToAddress->Text = Edit1->Text;"

    Hope This Helps!
    Bud
  • DavidSDaviesDavidSDavies Member Posts: 1
    : I am creating an email client using c++ builder 6, but am having
    : problems with the NMSMTP component. I am specifying the recipients
    : address (using the
    : NMSMTP1->PostMessage->ToAddress->Text=Edit1->Text; command) but am
    : getting the error - '503 no recipient(s).' when I try to send an
    : email. The program stops when it tries to run the
    : NMSMTP1->SendMail(); command.
    :
    : Any help would be greatly appreciated.
    :
    : Cheers
    :
    : Phil
    :
    The NMSMTP1->PostMessage->ToAddress is a TStringList, so try the following
    NMSMTP1->PostMessage->ToAddress->Add(Edit1->Text);
Sign In or Register to comment.