मैं कैसे PHPMailer साथ एसएमटीपी का उपयोग करने जानते हैं:PHPMailer डिफ़ॉल्ट कॉन्फ़िगरेशन एसएमटीपी
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Host = "mail.yourdomain.com"; // sets the SMTP server
$mail->Username = "[email protected]"; // SMTP account username
$mail->Password = "yourpassword"; // SMTP account password
और यह ठीक काम करता है। लेकिन मेरा सवाल है:
डिफ़ॉल्ट रूप से इन सेटिंग्स का उपयोग करने के लिए मैं PHPMailer को कैसे कॉन्फ़िगर कर सकता हूं, ताकि जब भी मैं मेल भेजना चाहता हूं तो मुझे उन्हें निर्दिष्ट करने की आवश्यकता नहीं है?
यदि यह वर्डप्रेस के बारे में है -> wordpress \ wp-include \ class-phpmailer.php फ़ाइल – swapnesh