wmaraci reklam
lidertakipci

Caught exception: Could not send request to server. CURL error 60: SSL certificate problem: unable to get local issuer certifica

4 Mesajlar 689 Okunma
advertseo
wmaraci reklam

KorogluEgmn KorogluEgmn WM Aracı Kullanıcı
  • Üyelik 17.10.2019
  • Yaş/Cinsiyet 33 / E
  • Meslek öğrenci
  • Konum İstanbul Avrupa
  • Ad Soyad E** K**
  • Mesajlar 12
  • Beğeniler 0 / 0
  • Ticaret 0, (%0)
Sendgrid ile mail göndermeye çalışıyorum ama
Caught exception: Could not send request to server. CURL error 60: SSL certificate problem: unable to get local issuer certificate
bu sorunu alıyorum bunu nasıl çözebilirim?
 

 

wmaraci
reklam

MithatGuner MithatGuner RubikHost.com Kullanıcı
  • Üyelik 14.06.2018
  • Yaş/Cinsiyet 24 / E
  • Meslek Founder
  • Konum İstanbul Avrupa
  • Ad Soyad M** G**
  • Mesajlar 125
  • Beğeniler 62 / 25
  • Ticaret 5, (%100)

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);

Bunu deneyebilirsiniz yada kodları iletirseniz öyle yardımcı olmaya çalışalım.
 

 

KorogluEgmn KorogluEgmn WM Aracı Kullanıcı
  • Üyelik 17.10.2019
  • Yaş/Cinsiyet 33 / E
  • Meslek öğrenci
  • Konum İstanbul Avrupa
  • Ad Soyad E** K**
  • Mesajlar 12
  • Beğeniler 0 / 0
  • Ticaret 0, (%0)
Sendgrid'in kendi kodlarını kullanıyorum:

$email = new \SendGrid\Mail\Mail();
$email->setFrom("mail", "Example User");
$email->setSubject("Sending with SendGrid is Fun");
$email->addTo("mail", "User");
$email->addContent("text/plain", "and easy to do anywhere, even with PHP");
$email->addContent(
"text/html", "and easy to do anywhere, even with PHP"
);
$sendgrid = new \SendGrid(getenv('key'));
try {
$response = $sendgrid->send($email);
print $response->statusCode() . "\n";
print_r($response->headers());
print $response->body() . "\n";
} catch (Exception $e) {
echo 'Caught exception: '. $e->getMessage() ."\n";
}

Localhost'ta çalıştığım için hatayı veriyor olabilir mi?
 

 

eka7a eka7a openix.io Kullanıcı
  • Üyelik 18.06.2013
  • Yaş/Cinsiyet 38 / E
  • Meslek Yazılımcı
  • Konum Bursa
  • Ad Soyad E** K**
  • Mesajlar 651
  • Beğeniler 109 / 313
  • Ticaret 2, (%100)
Curl kodları arasına CURLOPT_CAINFO değerini ekleyerek sertifika yüklemeyi deneyin.
 

 

Openix.io | $9.90 PositiveSSL | $12.90 RapidSSL
wmaraci
wmaraci
wmaraci
Konuyu toplam 1 kişi okuyor. (0 kullanıcı ve 1 misafir)
Site Ayarları
  • Tema Seçeneği
  • Site Sesleri
  • Bildirimler
  • Özel Mesaj Al