Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (398)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
How to use PHPMailer to Send HTML Emails With Images
Useful PHP Code Snippets for Developers - Using PHPMailer To Send HTML Emails With Images
✍: Guest
IsSMTP(); $mail->Host = "smtp1.example.com;smtp2.example.com"; $mail->SMTPAuth = true; $mail->Username = 'smtpusername'; $mail->Password = 'smtppassword'; $mail->From="mailer@example.com"; $mail->FromName="My site's mailer"; $mail->Sender="mailer@example.com"; $mail->AddReplyTo("replies@example.com", "Replies for my site"); $mail->AddAddress("email@example.com"); $mail->Subject = "Test 1"; $mail->IsHTML(true); $mail->AddEmbeddedImage('logo.jpg', 'logoimg', 'logo.jpg'); // attach file logo.jpg, and later link to it using identfier logoimg $mail->Body = "Test 1 of PHPMailer html
This is a test picture:
"; $mail->AltBody="This is text only alternative body."; if(!$mail->Send()) { echo "Error sending: " . $mail->ErrorInfo;; } else { echo "Letter is sent"; } ?>
2015-06-19, 1617🔥, 0💬
Popular Posts:
How do I know what cookies a Website is sending to Mozilla Firefox 2.0? When you are visiting a Webs...
Where to find answers to frequently asked questions on Facebook? I want to know how to know how to u...
How to edit Mozilla Firefox configuration file? Mozilla Firefox has a configuration file that contro...
How to remove Microsoft Teams form my Windows 7 system? I don't want it any more. You can remove Mic...
What are URL:sfb and URL:lync15 Protocols? URL:sfb and URL:lync15 protocols are special network prot...