sendgrid / docs

Repository of Twilio SendGrid's product documentation.
https://sendgrid.com/docs
MIT License
236 stars 972 forks source link

the file I sent to my email is not coming #4955

Closed gurkan-baykan closed 5 years ago

gurkan-baykan commented 5 years ago

foreach($params as $key => $deger ) { $sabit = \GENEL::DOSYA['earsiv'];

$dosya_adi = $sabit['yol'].$deger['file_name'].'.pdf'; $pdf_binary=file_get_contents($dosya_adi);

$pdf_base=base64_encode($pdf_binary);

 $data["personalizations"][]["to"][] = ["email" => $deger['eposta'] ];
 $data["subject"] = "E-ARSİV FATURA PDF GÖRÜNTÜSÜ";
  $data["from"]=["email"=>"example@gmail.com"];
   $data["content"][0]=[ "type"=>"text/html", "value"=> "jghjhgj"];
    $data["attachment"][]=["Content" => $pdf_base,"Type" =>"application/pdf","Filename" 
      =>$deger['file_name'].'.pdf,"Disposition"=>"attachment","ContentId"=>"base".$key];

                        }    
Whatthefoxsays commented 5 years ago

Hello hurkan-sert,

We're sorry you're running into this issue! Since this isn't directly documentation related, we recommend you contact our support team. You can access support contact options by logging into https://support.sendgrid.com.

SendGrid Docs Team