336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

1. SMTP Server 설치 및 IIS에서 Setting.


2. php.ini에 아래와 같이 셋팅.

smtp_port = 25 

sendmail_from = admin@mydomain.com 


3. 방화벽 인바운드 25 열어주고


4. 릴레이 설정 해주고..


5. 머.. 아래처럼 테스트 함 날려주면.. okbari^^




public function email() {



if (valid_email('email@somesite.com'))

{

echo 'email is valid';

}

else

{

echo 'email is not valid';

}


// multiple recipients

$to  = 'dyang34@naver.com' . ', '; // note the comma

$to .= 'dyang34@goodlearning.net';


// subject

$subject = '메일 테스트';


// message

$message = '

<html>

<head>

  <title>아싸</title>

</head>

<body>

  <p>Here are the birthdays upcoming in August!</p>

  <table>

    <tr>

      <th>Person</th><th>Day</th><th>Month</th><th>Year</th>

    </tr>

    <tr>

      <td>Joe</td><td>3rd</td><td>August</td><td>1970</td>

    </tr>

    <tr>

      <td>ㅋㅋ 가나다</td><td>17th</td><td>August</td><td>1973</td>

    </tr>

  </table>

</body>

</html>

';


// To send HTML mail, the Content-type header must be set

$headers  = 'MIME-Version: 1.0' . "\r\n";

$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";


// Additional headers

$headers .= 'To: Mary <dyang34@naver.com>, Kelly <dyang34@goodlearning.net1>' . "\r\n";

$headers .= 'From: 굿러닝 나영욱 <dyang34@goodlearning.net>' . "\r\n";

$headers .= 'Cc: dyang34@goodlearning.net' . "\r\n";

$headers .= 'Bcc: dyang34@goodlearning.net' . "\r\n";


// Mail it

mail($to, $subject, $message, $headers);


}

Posted by 당양부부34

블로그 이미지
주요 토렌트를 블로깅하고 있습니다. 토렌트 순위 등은 다른 사이트를 찾아보세요. 주요 웹툰 순위도 게재했어요 경제를 좋아하는 일산의 행복한 프로그래머입니다.
당양부부34
Yesterday
Today
Total

달력

 « |  » 2024.3
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함