FAQ — C++에 대한 Aspose.Email FOSS

FAQ — C++에 대한 Aspose.Email FOSS

라이센스

C++ 사용을 위한 Aspose.Email FOSS 라이센스는 무엇입니까?

MIT 라이센스. 라이선스 키가 필요하지 않습니다. 개인, 상업 및 오픈 소스 프로젝트에서 자유롭게 사용합니다. 유일한 의무는 저작권 메시지와 라이언스 텍스트를 소프트웨어의 복사본에 포함하는 것입니다.

상업용 제품에 사용할 수 있나요?

예. MIT 라이센스는 소유권 응용 프로그램에 포함된 무제한 상업적 사용을 허용하며, 왕실 수수료는 없습니다.


설치

C++에 대한 Aspose.Email FOSS를 어떻게 설치할 수 있습니까?

저장소를 클론하고 CMake 하위 디렉토리로 추가하십시오 :

git clone https://github.com/aspose-email-foss/Aspose.Email-FOSS-for-Cpp.git

당신의 안에서 CMakeLists.txt:

add_subdirectory(Aspose.Email-FOSS-for-Cpp)
target_link_libraries(your_target PRIVATE AsposeEmailFoss::AsposeEmailFoss)

어떤 컴파일러 버전이 지원되는가?

모든 C++17 컴파일러: GCC 9+, Clang 10+ 또는 MSVC 2019+.이 도서관은 Windows, Linux 및 macOS에 구축됩니다.

외부 의존성이 있습니까?

No. 도서관은 0 외부 의존성을 가지고 있습니다.그것은 C++ 표준 도서를 사용합니다.


지원 형식

어떤 이메일 형식이 지원되는가?

형식읽기글쓰기
MSG (Outlook 메시지)예 예예 예
EML (RFC 5322 / MIME)예 예예 예
CFB (Compound File Binary)의 발음을 CFD [en]예 예예 예

MSG와 EML 사이에 변환할 수 있습니까?

예. EML 파일을 다운로드합니다. mapi_message::load_from_eml() MSG와 함께 저장할 수 있는 mapi_message::save().다른 방향으로 변환하는 방법 mapi_message::from_file() 추적한 후에 save_to_eml().


API 사용법

MSG 파일을 어떻게 읽나요?

사용하기 mapi_message::from_file() 또는 mapi_message::from_stream():

#include <fstream>
#include <iostream>
#include "aspose/email/foss/msg/mapi_message.hpp"

int main()
{
    std::ifstream input("sample.msg", std::ios::binary);
    auto message = aspose::email::foss::msg::mapi_message::from_stream(input);
    std::cout << message.subject() << '\n';
}

어떻게 새로운 MSG 파일을 scratch에서 만들 수 있습니까?

사용하기 mapi_message::create() 메시지를 만들고, 필드를 설정하고 저장하십시오 :

#include <fstream>
#include "aspose/email/foss/msg/mapi_message.hpp"

int main()
{
    auto message = aspose::email::foss::msg::mapi_message::create("Hello", "Body");
    message.set_sender_name("Alice");
    message.set_sender_email_address("alice@example.com");

    std::ofstream output("hello.msg", std::ios::binary);
    message.save(output);
}

저렴한 CFB 컨테이너에 어떻게 접근할 수 있습니까?

사용하기 cfb_reader CFB 파일을 열고 디렉토리 나무를 통과하십시오 :

#include "aspose/email/foss/cfb/cfb_reader.hpp"

auto reader = aspose::email::foss::cfb::cfb_reader::from_file("file.msg");
auto storages = reader.storage_ids();
auto streams = reader.stream_ids();

또한, 당신은 경로를 통해 항해 할 수 있습니다. resolve_path() 또는 이름으로 아이를 찾을 수 있습니다. find_child_by_name().

어떻게 CFB 파일을 작성할 수 있습니까?

건설 A cfb_document, 스토리지 및 스트림을 추가하고, 그 다음에 시리얼을 사용하여 cfb_writer:

#include "aspose/email/foss/cfb/cfb_writer.hpp"

auto bytes = aspose::email::foss::cfb::cfb_writer::to_bytes(document);
// Or write directly to a file:
aspose::email::foss::cfb::cfb_writer::write_file(document, "output.cfb");

알려진 제한

이 도서관은 IMAP, SMTP 또는 POP3를 지원합니까?

No. Aspose.Email FOSS for C++는 지역 파일만 읽고 쓰지 않습니다.이 메일 서버에 연결되지 않습니다.

TNEF (winmail.dat) 지원이 있습니까?

No. 운송 중립 캡슐 형식은 파르세드 또는 생성되지 않습니다.

일정 또는 API가 있습니까?

No. 일정 특정 MAPI 속성은 일반적으로 속성이있는 방법을 통해 액세스 할 수 있지만, 특별한 일정 API가 없습니다.

현재 출시 버전은 무엇입니까?

버전 0.1.0 - 첫 번째 공개 출시. API는 나중에 발행 될 수 있습니다.

 한국어