Új hozzászólás Aktív témák
-
fordfairlane
veterán
válasz
TomyLeeBoy
#14929
üzenetére
Hiányzik egy $mail->SMTPSecure = 'ssl';
-
válasz
TomyLeeBoy
#14929
üzenetére
Így próbáld (innen):
<?php
require 'PHPMailerAutoload.php';$mail = new PHPMailer;
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'smtp1.example.com;smtp2.example.com'; // Specify main and backup server
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'jswan'; // SMTP username
$mail->Password = 'secret'; // SMTP password
$mail->SMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted$mail->From = 'from@example.com';
$mail->FromName = 'Mailer';
$mail->addAddress('josh@example.net', 'Josh Adams'); // Add a recipient
$mail->addAddress('ellen@example.com'); // Name is optional
$mail->addReplyTo('info@example.com', 'Information');
$mail->addCC('cc@example.com');
$mail->addBCC('bcc@example.com');$mail->WordWrap = 50; // Set word wrap to 50 characters
$mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments
$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name
$mail->isHTML(true); // Set email format to HTML$mail->Subject = 'Here is the subject';
$mail->Body = 'This is the HTML message body <b>in bold!</b>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';if(!$mail->send()) {
echo 'Message could not be sent.';
echo 'Mailer Error: ' . $mail->ErrorInfo;
exit;
}echo 'Message has been sent';
Új hozzászólás Aktív témák
- Xiaomi 17 Ultra - jó az optikája
- Google Pixel topik
- Fejhallgató erősítő és DAC topik
- Parfüm topik
- PlayStation 5
- Gyúrósok ide!
- Itt a Galaxy S26 széria: az Ultra fejlődött, a másik kettő alig
- Kecskemét és környéke adok-veszek-beszélgetek
- AMD K6-III, és minden ami RETRO - Oldschool tuning
- Mozilla Firefox
- További aktív témák...
- Samsung Galaxy S23 FE 128GB,Újszerű,Dobozaval,12 hónap garanciával
- Apple iPhone 13 128GB, Kártyafüggetlen, 1 Év Garanciával
- Samsung Galaxy S23 Ultra 256GB,Használt,Adatkabel,12 hónap garanciával
- Apple iPhone 13 128GB, Kártyafüggetlen, 1 Év Garanciával
- Samsung Galaxy Tab A9+ 128GB,Újszerű,Dobozaval,12 hónap garanciával
- Gamer PC-Számítógép! Csere-Beszámítás! I5 10400F / GTX 1070 8GB / 16GB DDR4 / 512 Nvme SSD
- BESZÁMÍTÁS! Részletfizetés 0% THM ÚJ AMD RYZEN 8500G/7600/8700G/7800X3D processzor 3 év 27% áfa
- iPhone 16 Pro Max 256GB 92% (1év Garancia)- AKCIÓ
- iking.hu Apple MacBook Pro 16 (2021) 16GB / 512GB használt, szép állapot 82% akku 353 ciklus
- Telefon felvásárlás!! Samsung Galaxy S25, Samsung Galaxy S25 Plus, Samsung Galaxy S25 Ultra
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
