SendMail 메일 보내기 소스 질문
캔서
센드메일을 이용해서 후원 프로그램을 제작하려고 합니다.인터넷에서는 파이어 폭스로 attachID의 뒷값을 따서 붙여넣기 하라고 해서 붙여넣기를 하였습니다.그런데 소스를딸데 네이버 로그인한 아이디로 로그인하지 않으면 메일이 전송이 안되더라고요,메일 전송소스 어떻게 따야할가요?http://mail.naver.com/pv/sendresult.jsp?attachID=csbwKAtwKAUwKx2wBqbw7rwlWqulFxKTFogmaxKwKAvlKAgZ&time=1389931105192Private Sub Command1_Click()
Winhttp.Open POST, https://nid.naver.com/nidlogin.login
Winhttp.SetRequestHeader Referer, http://static.nid.naver.com/login.nhn?svc=me&url=http%3A%2F%2Fwww.naver.com&t=20120405
Winhttp.SetRequestHeader Content-Type, application/x-www-form-urlencoded
Winhttp.Send id= & Text1.Text & &pw= & Text2.Text & &enctp=1&svctype=0&saveID=&smart_level=1
If InStr(StrConv(Winhttp.ResponseBody, vbUnicode), http://static.nid.naver.com/sso/cross-domain.nhn?sid=) Then
MsgBox 네이버 로그인 성공, vbInformation,
Else
MsgBox 네이버 로그인 실패, vbCritical,
End If
End SubPrivate Sub Command2_Click()
Winhttp.Open POST, http://mail.naver.com/json/write/send/
Winhttp.SetRequestHeader Referer, http://mail.naver.com/
Winhttp.SetRequestHeader Content-Type, application/x-www-form-urlencoded; charset=utf-8
Winhttp.Send senderName= & Text3 & &to= & Text4 & &cc=&bcc=&subject= & Text5 & &body= & Text6 & &contentType=html&charset=AUTO&sendSeparately=false&saveSentBox=true&type=new&fromMe=0&attachID=csbwKAtwKAUwKx2wBqbw7rwlWqulFxKTFogmaxKwKAvlKAgZ.&reserveDate=&reserveGMT=&reserveTime=&calendarVal=&autoSaveMailSN=&addReceiverAddress=false&attachCount=0&attachSize=0&bigfile=&sessionID=&seqNums=&priority=0&ndriveFileInfos=&lists=&serviceID=&u= & Text1
MsgBox 전송, vbInformation,
End Sub
번호 | 제 목 | 글쓴이 | 날짜 |
---|---|---|---|
2704558 | 전체 변수 선언 방법? (1) | 사자자리 | 2025-08-11 |
2704530 | 여러분 급해요.. | 시윤 | 2025-08-11 |
2704498 | 위대한 수다님들 질문하나할게요 (운영체제관련) (3) | 아리에스 | 2025-08-10 |
2704474 | 사용자명 확인하기 | 예님 | 2025-08-10 |
2704446 | 블랙리스트 (3) | 마루한 | 2025-08-10 |
2704392 | 비베 책 추천점해주세요~ | 이플 | 2025-08-09 |
2704366 | 정말 궁금해서 물어봅니다 . | agine | 2025-08-09 |
2704339 | 서버on off 질문 (1) | 2gether | 2025-08-09 |
2704312 | Microsoft Tabbed Dialog Control 6.0 질문 | 영미 | 2025-08-09 |
2704256 | 사이트 접속자... (1) | 계획자 | 2025-08-08 |
2704228 | 채팅방 사이트 로그인소스하고 채팅방 접속소스좀.. (1) | 초롱꽃 | 2025-08-08 |
2704197 | 커맨더 버튼 색깔변경 | 여자 | 2025-08-08 |
2704170 | winhttp로 웹연동을 할수 있나요? (4) | 나길 | 2025-08-07 |
2704063 | 고수분들 답변좀요 ~~~ | 볼수록매력 | 2025-08-06 |
2704036 | 커맨드버튼 입체감 살리는법 | 알찬바로 | 2025-08-06 |
2704006 | msgbox 내용 텍스트 박스로 출력하기 (2) | 조으다 | 2025-08-06 |
2703955 | 네크워크 어댑터관련 질문입니당. | 별햇님 | 2025-08-05 |
2703925 | 지금 매우 비효율적인 방법을 쓰고있는데요 쉬운방법 없을까요? (2) | 리네 | 2025-08-05 |
2703870 | 리스트에있는것을클릭하고다운하기.... | 핫자두 | 2025-08-05 |
2703838 | 어떻게 해야되나요? | 환히찬 | 2025-08-04 |