PHPCMS form submission Send mail

Source: Internet
Author: User

Modify Phpcms\modules\formguide Index.PHP foundforeach($mails  as $m) {SendMail ($m, L (' tips '),$this->m[' MailMessage ']); } to replace//February 29, 2012 13:22:39 Add message content with form details paragraph 1 start                                                    $f _info=$this->db->get_one (Array(' modelid ' =$formid, ' SiteID ' =$this-SiteID)); $MailSubject= ' user submits form ['.$f _info[' Name ']. Remind; $Fields= GetCache (' Formguide_field_ ').$formid, ' model '); $Fields[' username '] [' name '] = ' user name '; $Fields[' DateTime '] [' name '] = ' commit time '; $Fields[' IP '] [' name '] = ' Submit IP '; unset($data[' UserID '],$data[' DateTime ']); foreach($data  as $k=$v){                                                              $MailBody.=$Fields[$k[' name ']. ' :‘.$v.‘ <br/> '; }                                                      //February 29, 2012 13:22:39 Add message content with form details paragraph 1 end                                                    foreach($mails  as $m) {                                                              //February 29, 2012 13:22:39 Add message content with form details paragraph 2 startSendMail$m,$MailSubject,$MailBody.$this->m[' MailMessage ']); //February 29, 2012 13:22:39 Add message content with form details paragraph 2 end}

Mailbox needs to turn on SMTP server

Phpcms Background Settings > Related Settings > Basic settings > Mailbox configuration

Mail Send mode: SMTP function send
Mail server: smtp.163.com
Mail Send port: 25
Sender Address: [Email protected]
AUTH Login Authentication: Open
Verify user name: [email protected]
Mail Setup test: Receive mail test

PHPCMS form submission Send mail

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.