Advertisement
mendes8010

Função e-mail

Sep 9th, 2012
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  1. function wpcf7_default_mail_2_template() {
  2.         $active = false;
  3.         $subject = '[your-subject]';
  4.         $sender = '[your-name] <[your-email]>';
  5.         $body = __( 'Message body:', 'wpcf7' ) . "\n" . '[your-message]' . "\n\n" . '--' . "\n"
  6.                 . sprintf( __( 'This mail is sent via contact form on %1$s %2$s', 'wpcf7' ),
  7.                         get_bloginfo( 'name' ), get_bloginfo( 'url' ) );
  8.         $recipient = '[your-email]';
  9.         $additional_headers = '';
  10.         $attachments = '';
  11.         $use_html = 0;
  12.         return compact( 'active', 'subject', 'sender', 'body', 'recipient', 'additional_headers', 'attachments', 'use_html' );
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement