Esempio n. 1
0
</textarea><br/>
									<input type="submit" id="submit" name="submit" value="<?php 
            _e('Send Message', 'ml');
            ?>
" />
								</fieldset>
							</form>
						</div>
					<?php 
        } else {
            $displayName_array = explode(" ", $cp_name);
            $displayName = htmlentities(utf8_decode($displayName_array[0]));
            $header = "MIME-Version: 1.0\n";
            $header .= "Content-Type: text/plain; charset=\"utf-8\"\n";
            $header .= "From:" . encodeMailHeader($cp_name) . "<" . $cp_email . ">\n";
            $email_subject = "[" . get_settings('blogname') . "] " . encodeMailHeader($cp_name);
            $email_text = "From......: " . $cp_name . "\n" . "Email.....: " . $cp_email . "\n" . "Url.......: " . $cp_url . "\n\n" . $cp_message;
            if (@mail(get_settings('admin_email'), $email_subject, $email_text, $header)) {
                echo "<h2>" . __('Hey', 'ml') . " " . $displayName . ",</h2><p>" . __('thanks for your message! I\'ll get back to you as soon as possible.', 'ml') . "</p>";
            }
        }
        ?>
				<?php 
    }
    ?>
			</div>
		<?php 
}
?>
</div>
<?php 
Esempio n. 2
0
</textarea></p>
					<p><input type="submit" name="submit" value="<?php 
            _e('Submit', 'flower-power');
            ?>
" class="button" tabindex="6" /></p>
				</fieldset>
			</form>

		<?php 
        } else {
            $displayName_array = explode(" ", $bx_name);
            $displayName = htmlentities(utf8_decode($displayName_array[0]));
            $header = "MIME-Version: 1.0\n";
            $header .= "Content-Type: text/plain; charset=\"utf-8\"\n";
            $header .= "From:" . encodeMailHeader($bx_name) . "<" . $bx_email . ">\n";
            $email_subject = "[" . get_option('blogname') . "] " . encodeMailHeader($bx_subject);
            $email_text = __("From......: ", 'flower-power') . $bx_name . "\n" . __("Email.....: ", 'flower-power') . $bx_email . "\n" . __("Url.......: ", 'flower-power') . $bx_url . "\n\n" . "..........................................................\n" . __("Subject...: ", 'flower-power') . $bx_subject . "\n" . "..........................................................\n\n" . $bx_message;
            if (@mail(get_option('admin_email'), $email_subject, $email_text, $header)) {
                printf(__("<h2>Hey %s,</h2><p>thanks for your message! I'll get back to you as soon as possible.</p>", 'flower-power'), $displayName);
            }
        }
        ?>

	<?php 
    }
    ?>

<?php 
}
?>
Esempio n. 3
0
</textarea></p>
                            <p><input type="submit" name="submit" id="submit" value="<?php 
            _e('Submit');
            ?>
" class="button" tabindex="6" /></p>
                        </fieldset>
                    </form>

        <?php 
        } else {
            $displayName_array = explode(' ', $bx_name);
            $displayName = htmlentities(utf8_decode($displayName_array[0]));
            $header = "MIME-Version: 1.0\n";
            $header .= "Content-Type: text/plain; charset=\"utf-8\"\n";
            $header .= 'From:' . encodeMailHeader($bx_name) . '<' . $bx_email . ">\n";
            $email_subject = '[' . get_settings('blogname') . '] ' . encodeMailHeader($bx_subject);
            $email_text = 'From......: ' . $bx_name . "\n" . 'Email.....: ' . $bx_email . "\n" . 'Url.......: ' . $bx_url . "\n\n" . '..........................................................' . "\n" . 'Subject...: ' . $bx_subject . "\n" . '..........................................................' . "\n\n" . $bx_message;
            if (@mail(get_settings('admin_email'), $email_subject, $email_text, $header)) {
                echo '<h2>Hey ', $displayName, ',</h2><p>thanks for your message! I\'ll get back to you as soon as possible.</p>';
            }
        }
        ?>

    <?php 
    }
    ?>

<?php 
}
?>