DIY মিডিয়া হোম লোগো

আপনার নিজের হোম থিয়েটার এবং হাই ফাই সেটআপ নকশা ও নির্মাণের জন্য চূড়ান্ত সাইট.

0পিএইচপি সঠিকভাবে sendmail ব্যর্থ dmarc

আমি একটি চালানো ভিপিএস which hosts sev­er­al domains. Send­ing mail from these domains has always been tricky. আমি দীর্ঘ ব্যবহার করেছি ডাব্লু SMTP এর Mail plu­gin for word­press to work around this, but I wanted to get a prop­er fix. After much read­ing I found a prop­er solution

The prob­lem is that the “from” address and the “return to” address have to match and unless you know how to fully do the code they wont.

অ ওয়ার্ডপ্রেস সাইটের জন্য কোড

$message = 'Your message here';
$sender = 'you@yourdomain.com';
$headers = 'From: ' . $প্রেরক . "\R  N" . 'Reply-To: ' . $প্রেরক . "\R  N" . 'Return-Path: ' . $প্রেরক;
$subject = 'Your Subject';
$সাফল্য = মেইল('recepient@mail', $বিষয়, $বার্তা, $হেডার, "-চ " . $প্রেরক);

 
নোট, মূল অংশ চূড়ান্ত অংশ, the extra value AFTER the head­ers. This is the extra para­met­ers part and we spe­cify the sender again with a ‑f command

For more info on this there is a good art­icle at Pupun­zi

ওয়ার্ডপ্রেস এর জন্য

Simply add the fol­low­ing code to your theme’s functions.php or cre­ate a cus­tom plu­gin with the code

বর্গ email_return_path {
   ফাংশন __construct() {
  ADD_ACTION( 'phpmailer_init', শ্রেণীবিন্যাস( $এই, 'fix' ) );   
   }

ফাংশন ফিক্স( $PHPMailer ) {
    $phpmailer->Sender = $phpmailer->From;
}
}
নতুন email_return_path();

ধন্যবাদ Kin­amo টিপ জন্য

উত্তর দিন