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->AuthenticationTy
pe = atLogin;
idmessage->From->Address = email;
idmessage->Recipients->EMa
ilAddresse
s = "info@mywebdomain.com.au";
idmessage->Subject = "SUBJECT";
idmessage->Body->Text = "BODY";
//try{
log->Lines->Add("Connectin
g");
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