2017-03-07 5 views
1

저는 mailgun-js를 사용하여 이메일 확인 프로그램을 만들고 메일 클라이언트에 Mailgun을 사용하고 있습니다.Mailgun-js가 301 오류를 던지고 있습니다.

내 데이터에 대한이 사용하고 있습니다

{"from":"[email protected]", 
"to":"[email protected]", 
"subject":"Verify your email", 
"text":"Hello,<br> Please click on the link to verify your email.<br><a href=https://mail-verification-baruchkogan.c9users.io/verify/borisbaruch kogan/Zr6expRlUhnKrXzBHg9X1gyT9laFSl1w91wrESv4B25tWnBDSphp8wKLTbeV4cFf>Click here to verify</a>" 
} 

을 그리고이 기능을 호출 : 리턴

mailgun.messages().send(data, function (error, body) { 
if(error) {console.log('mailgun error: ', error)} 
console.log(body); } 

이 : 내가 잘못

mailgun error: { [Error: 

<title>301 Moved Permanently</title> 
301 Moved Permanently 

nginx ] statusCode: 301 } undefined` 

을 뭐하는 거지?

답변

0

mailgun 초기화에 domain을 설정했는지 확인하십시오.