[英]How can I display the site_mail in my page.tpl.php page?
我在這里嘗試過該解決方案,但是沒有用: Drupal獲得站點范圍的電子郵件地址?
這是我的代碼(在page.tpl.php內部):
<a href="mailto:<?php variable_get('site_mail', ini_get('sendmail_from')); ?>">My name</a>
謝謝。
您只是忘記了將變量打印到頁面:)
<a href="mailto:<?php print variable_get('site_mail', ini_get('sendmail_from')); ?>">My name</a>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.