문제

How would I connect to POP3 via e-mail so that I can check if a file has been sent to an e-mail address so I can rename that file with the e-mail address it was sent from? I can do the end part by using SMTP & Mailer to send it back but because the actual project I'm working on moves away from e-mail client half way through I have no way to check which user sent it unless I rename the file with the e-mail it is sent from

Thanks in advance for the help!

도움이 되었습니까?

해결책

You would need the php_imap module installed on the server, then use the functions it exposes to connect to the mailbox and check for email

The PHP.net documentation for the module has some good examples, both official and in the comments

http://php.net/manual/en/book.imap.php

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top