Advertisement

11.23.2008 at 10:06PM PST, ID: 23929940 | Points: 500
[x]
Attachment Details

sending mail with Idsmtp.

Asked by chudmarek in C++ Builder, Miscellaneous Programming, C++ Programming Language

Tags:

Hello,

I am trying to create a section in my app where users can email me. I am using c++ builder 6 and idSMTP.

            IdSMTP->Host = "www.mywebdomain.com";
            IdSMTP->UserId = "info@mywebdomain.com.au";
            IdSMTP->Password = "mypass";
            IdSMTP->Port = 25;
            //IdSMTP->AuthenticationType = atLogin;
            idmessage->From->Address = email;
            idmessage->Recipients->EMailAddresses = "info@mywebdomain.com.au";
            idmessage->Subject = "SUBJECT";
            idmessage->Body->Text = "BODY";

            //try{
                log->Lines->Add("Connecting");
                IdSMTP->Connect();
                log->Lines->Add("Connected");
                log->Lines->Add("Sending");
                IdSMTP->Send(idmessage);
                log->Lines->Add("Mail successfully sent");
          //  }catch(...)
           // {
           //     ShowMessage(ex);
                //log->Lines->Add("FAILURE");
           // }

Now I've been in touch with my host and they have informed me that i need to receive first....so....i thought that I could get around that with the username/pass fields and auth type.

Any help appreciated.Start Free Trial
[+][-]11.26.2008 at 11:47AM PST, ID: 23045030

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.26.2008 at 02:18PM PST, ID: 23046272

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.26.2008 at 04:23PM PST, ID: 23047021

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.26.2008 at 10:39PM PST, ID: 23047984

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.27.2008 at 09:35AM PST, ID: 23051314

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.27.2008 at 09:40AM PST, ID: 23051345

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.29.2008 at 02:56PM PST, ID: 23061178

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.03.2009 at 02:19AM PST, ID: 23284631

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080924-EE-VQP-38 - Hierarchy / EE_QW_2_20070628