Eden-PHP / Mail

Eden POP3, IMAP and SMTP component
MIT License
183 stars 84 forks source link

How to check SSL certificate (self signed etc.) #36

Open petericebear opened 7 years ago

petericebear commented 7 years ago

Is there a way for imap / pop, to disable the SSL certificate check for like self-signed certificates etc.?

lgg commented 7 years ago

@petericebear did you resolve this?

cblanquera commented 6 years ago
$imap = eden('mail')->imap(
    'imap.gmail.com', 
    'your_email@gmail.com', 
    '[YOUR PASSWORD]', 
    143, 
    false);

$pop3 = eden('mail')->pop3(
    'pop.gmail.com', 
    'your_email@gmail.com', 
    '[YOUR PASSWORD]', 
    110, 
    false);

Under the assumption that ports 143 and 110 are insecure (https://www.fastmail.com/help/technical/ssltlsstarttls.html) you can set the SSL check off. Though it's really not a checker. Really it's fsockopen based.