PDA

View Full Version : using QMessage problem (help)??



saeed
18th December 2011, 13:38
hi .
i want write App that send SMS for Symbian device .

QMessage message;
QMessageAddressList toList;
QMessageAddress::Type addrType(QMessageAddress::Phone);
toList.append(QMessageAddress(addrType, ui->numberEdit->text()));
message.setType(QMessage::Sms);
message.setTo(toList);
message.setBody(ui->messageEdit->text());
service->send(message);

but when i use this code doesn't work.
where is my problem in this code ?????????

please help me for solve this problem.
tanks .