< new posts > How do I send the data to the user who sent the form to the database

Source: Internet
Author: User
=-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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.