Rank: Newbie
Groups: Registered
Joined: 6/29/2020(UTC)
Posts: 0
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!
Rank: Administration
Groups: Administrators
Joined: 11/11/2010(UTC) Posts: 1,153
Thanks: 9 times Was thanked: 55 time(s) in 55 post(s)
Code:
oSmtp->Subject=_bstr_t(Sub.c_str());
Rank: Newbie
Groups: Registered
Joined: 6/29/2020(UTC)
Posts: 0
OMG! it works!
Thank you so much😀
Edited by user Tuesday, June 30, 2020 1:19:27 AM(UTC)
| Reason: Not specified
Forum Jump
EmailArchitect Support
Email Component Development
- EASendMail SMTP Component - .NET Version
- EASendMail SMTP Component - Windows Store Apps
- EASendMail SMTP ActiveX Object
- EAGetMail POP3 & IMAP4 Component - .NET Version
- EAGetMail POP3 & IMAP4 ActiveX Object
Exchange Server and IIS SMTP Plugin
- DomanKeys/DKIM for Exchange Server and IIS SMTP
- Disclaimer and S/MIME for Exchange Server and IIS
EmailArchitect Email Server
- EmailArchitect Email Server (General)
- EmailArchitect Email Server Development
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.