You want to send mail using curl? Or was it just an example of setting up a proxy?
Laravel 8 uses swiftmailer and laravel 9 uses symfony mailer. So you might want to upgrade before trying to get it working, so you don't have to do it twice
Summer Sale! All accounts are 50% off this week.
Needs to send email using proxy in laravel 8. Cannot able to send email by just using mail. on client server need to add proxy then only mails are getting sent. Example $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, true); curl_setopt($ch, CURLOPT_PROXY, 'xx.xx.xx.xx:8080');
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($mail_data));
$result = curl_exec($ch);
$result = curl_error($ch) ? FALSE : $result;
curl_close($ch);
can someone help
Please or to participate in this conversation.