时间:2021-07-01 10:21:17 帮助过:2人阅读
php echo email
问题背景:我想输出一个表格,并且把这个表格作为内容发email出去。$message = '
'; $message.= 'Driver: '; $message.= $firstName.' '.$lastName; $message.= ' |
Date:'.$orderTime.' |
No: 1 | Car'.$truck.':'.' '.$licNum; $message.= ' |
Kund:'.$customerName.' | Order:'.$orderNum.' |
'; $message.= 'Book number:'.$bookNumPick.' | Produktnamn:'.$productName.' |
Chassi:'; $message.= $tankName.' | Tank number:'.$chassi.' |
Place:'.$locationPick.' | Place 2:'; $message.= $portCodePick.' |
Place 3:'.$locationUnload.' | Place 4:'; $message.= $timeUnload.' |
Place 5:'.$ADRclass.' | Place 5:'.$weight.' |
Place 6:'; $message.= $locationLoad.' | Place 7:'.$loadTime.' |
Place 8:'; $message.= ' | |
'.$info.' | |
Place 9:'.$outE.' | Place 10:'.$bookNumOut.' |
Place 11:'; $message.= $portCodeOut.' |
。。。。(当中省略,可见$message)。。。。。 |
问题背景:我想输出一个表格,并且把这个表格作为内容发email出去。
问题:先上代码,
$message = '
'; $message.= 'Driver: '; $message.= $firstName.' '.$lastName; $message.= ' |
Date:'.$orderTime.' |
No: 1 | Car'.$truck.':'.' '.$licNum; $message.= ' |
Kund:'.$customerName.' | Order:'.$orderNum.' |
'; $message.= 'Book number:'.$bookNumPick.' | Produktnamn:'.$productName.' |
Chassi:'; $message.= $tankName.' | Tank number:'.$chassi.' |
Place:'.$locationPick.' | Place 2:'; $message.= $portCodePick.' |
Place 3:'.$locationUnload.' | Place 4:'; $message.= $timeUnload.' |
Place 5:'.$ADRclass.' | Place 5:'.$weight.' |
Place 6:'; $message.= $locationLoad.' | Place 7:'.$loadTime.' |
Place 8:'; $message.= ' | |
'.$info.' | |
Place 9:'.$outE.' | Place 10:'.$bookNumOut.' |
Place 11:'; $message.= $portCodeOut.' |
。。。。(当中省略,可见$message)。。。。。 |