issasalimi@gmail.com
5 years ago
Hi there,

I wanna develop the Sending mail by oSmtp in C++ code just by adding "cin/getline" in my project!
Does anyone know how can I use cin/getline in oSmtp following the example :

oSmtp->LicenseCode = _T("TryIt");
string MailTo;
string Sub;
oSmtp->FromAddr = _T("MailFrom");
oSmtp->AddRecipientEx(_T("iss....@gmail.com"), 0);
cout<<"Enter Subject: ";
cin>>Sub;
oSmtp->Subject=Sub; //but it doesn't work!

thanks in advance!
ivan
  • ivan
  • 100% (Exalted)
  • Administration
5 years ago


oSmtp->Subject=_bstr_t(Sub.c_str());
issasalimi@gmail.com
5 years ago
OMG! it works!
Thank you so much😀

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.