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