I تشغيل VPS التي تستضيف العديد من المجالات. وقد تم إرسال البريد من هذه المجالات دائما صعبة. لقد استخدمت لفترة طويلة WP SMTP المساعد الإلكتروني لورد للتغلب على هذه, ولكن أردت أن تحصل على الإصلاح الصحيح. After much reading I found a proper solution
The problem 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.
رمز لمواقع غير وورد
1 2 3 4 5 | $message = ‘Your message here’; $sender = ‘you@yourdomain.com’; $headers = ‘From: ’ . $sender . “\r\n” . ‘Reply-To: ’ . $sender . “\r\n” . ‘Return-Path: ’ . $sender; $subject = ‘Your Subject’; $success = mail(‘recepient@mail’, $subject, $message, $headers, “-f ” . $sender); |
ملحوظة, الجزء الرئيسي هو الجزء الأخير, the extra value AFTER the headers. This is the extra parameters part and we specify the sender again with a ‑f command
For more info on this there is a good article at Pupunzi
لورد
Simply add the following code to your theme’s functions.php or create a custom plugin with the code
1 2 3 4 5 6 7 8 9 10 | class email_return_path { function __construct() { add_action( ‘phpmailer_init’, array( $this, ‘fix’ ) ); } function fix( $phpmailer ) { $phpmailer->Sender = $phpmailer->From; } } new email_return_path(); |
بفضل Kinamo للمعلومات
أعتقد أننا فقدنا شيء ما? دعنا نعلم بتعليقك بالأسفل. إذا كنت ترغب في الاشتراك يرجى استخدام الرابط الاشتراك في القائمة في اعلى اليمين. يمكنك أيضا مشاركة هذا مع أصدقائك باستخدام الروابط الاجتماعية أدناه. في صحتك.
اترك رد