> For the complete documentation index, see [llms.txt](https://kants.gitbook.io/xeant/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kants.gitbook.io/xeant/xe/untitled.md).

# Mail

## 이미지 파일 첨부 이메일 발

{% code title="contact.controller.php" %}

```php
$obj->email = 'proant777@naver.com';
$obj->subject = '김경희님의 메일 입니다. ';
$content_all = 'dfdafsdfasfasdfsadfasdfasfd';

$oMail = new Mail();
$oMail->setContentType("plain");
$oMail->setTitle($obj->subject);
$oMail->setContent(htmlspecialchars($content_all));
$oMail->setSender($obj->email."(".$_SERVER['REMOTE_ADDR'].")", $obj->email);

$to_mail_address = 'proant777@naver.com'; 
// 받는 사람
$from_mail_address = 'proant777@gmail.com';

$oMail->setReceiptor( $from_mail_address, $to_mail_address );

$st = $oMail->send();

```

{% endcode %}
