Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
issasalimi@gmail.com  
#1 Posted : Monday, June 29, 2020 2:20:59 AM(UTC)
issasalimi@gmail.com

Rank: Newbie

Groups: Registered
Joined: 6/29/2020(UTC)
Posts: 0
Iran (Islamic Republic Of)

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  
#2 Posted : Monday, June 29, 2020 4:56:04 PM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,148

Thanks: 9 times
Was thanked: 54 time(s) in 54 post(s)
Code:


oSmtp->Subject=_bstr_t(Sub.c_str());
issasalimi@gmail.com  
#3 Posted : Tuesday, June 30, 2020 12:53:44 AM(UTC)
issasalimi@gmail.com

Rank: Newbie

Groups: Registered
Joined: 6/29/2020(UTC)
Posts: 0
Iran (Islamic Republic Of)

OMG! it works!
Thank you so much😀

Edited by user Tuesday, June 30, 2020 1:19:27 AM(UTC)  | Reason: Not specified

Users browsing this topic
Forum Jump  
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.106 seconds.

EXPLORE TUTORIALS

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