Drupal - use l or url function for mailto links

前端 未结 3 2108
挽巷
挽巷 2021-02-20 04:44

Does anyone know how to use the l() or url() function to create mailto links?

I am running drupal 6.

3条回答
  •  无人及你
    2021-02-20 04:59

    You need to use the absolute option:

    l('Mail me', 'mailto:jim@hotmail.com', array('absolute' => TRUE));
    

    will generate

    Mail Me
    

提交回复
热议问题