Kód: Vybrať všetko
$send_mail = new class_phpmailer();
$send_mail->IsSMTP();
$send_mail->SMTPAuth = true;
$send_mail->SMTPSecure = "ssl";
$send_mail->Host = $this->buffer['m_smtp'];
$send_mail->Port = 465;
$send_mail->Username = $this->buffer['m_meno'];
$send_mail->Password = $this->buffer['m_heslo'];
$send_mail->From = $this->buffer['m_mail'];
$send_mail->FromName = $this->buffer['m_nick'];
$send_mail->Subject = $predmet;
$send_mail->AltBody = $teloMailu;
$send_mail->WordWrap = $this->buffer['m_zalomenie'];
$send_mail->MsgHTML("mOJ PRVY mail");
$send_mail->AddAddress($sendTo,$meno);
$send_mail->IsHTML(true);
if(!$send_mail->Send()) {
echo "Mailer Error: " . $send_mail->ErrorInfo;
} parametre>
M_SMTP - smtp.gmail.com
M_MENO - [email protected]
M_HESLO- moje hejslo na prihlasenie sa do mailu
M_MAIL -[email protected]
M_NICK - NestastnyOdosielatel
sendTO - mail prijemcu
meno - meno prijemcu
Prosom poradte co mam prepisat aby to fungovalo