=-to seek the help of the great God can be used
ISSMTP (); Use SMTP to send $mail->charset= ' UTF-8 ';//Set the character encoding of the message $mail->host = "mail.xxxxx.***"; Your enterprise Post office domain name $mail->smtpauth = true; Enable the SMTP authentication feature $mail->port = "* * *"; SMTP Port $mail->username = * * * @xxxx. * * *; Post Office User name (please fill in the full email address) $mail->password = "******"; Post Office Password $mail->from = * * * @xxxx. * *; Email sender email Address $mail->fromname = "Your name", $mail->addaddress ("$address", ""), or/or recipient address, can be replaced by any email message you want to receive, The format is addaddress ("Recipient Email", "Recipient Name")//$mail->addreplyto ("", "");//$mail->addattachment ("/var/tmp/file.tar.gz "); Add attachment//$mail->ishtml (TRUE); Set email format to HTML//whether to use HTML formatting $mail->subject = "phpmailer test mail"; Message title $mail->body = "Hello, this is Test mail"; Message content $mail->altbody = "The body in plain text for non-html mail clients"; For additional information, you can omit the IF (! $mail->send ()) {echo "Mail send failed."; echo" error Cause: ". $mail->errorinfo;exit;} echo "Mail sent successfully";? >
This code, if possible how to set it ~ Thank you very much
Reply to discussion (solution)
Reference: http://blog.csdn.net/fdipzone/article/details/8683993
Then how to set the message content to the database data sent to him =-thank you
read out the contents of the database and put it in $mail->body = ' Fill in the data read in the database '
is to write the data of the database out of the body of the code to receive the mail of the person's mailbox =-How to set
Excuse me, thank you.