Grundfunktionalität zum Senden von E-Mails
This commit is contained in:
		
							
								
								
									
										34
									
								
								modules/Mail/Views/MailCompose.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								modules/Mail/Views/MailCompose.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,34 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
function kompass_print_mail_compose()
 | 
			
		||||
{
 | 
			
		||||
	global $dbHandler;
 | 
			
		||||
	?>
 | 
			
		||||
 | 
			
		||||
    <form method="post" action="admin.php?page=kompass-mail" style="width: 80%; margin: auto">
 | 
			
		||||
 | 
			
		||||
	    <table style="width: 100%">
 | 
			
		||||
		    <input type="hidden" name="action" value="send-email" />
 | 
			
		||||
		    <tr>
 | 
			
		||||
			    <td><?= __('From: ', BDP_LV_PLUGIN_SLUG); ?></td>
 | 
			
		||||
			    <td><input type="text" name="mail-from" style="width: 100%"></td>
 | 
			
		||||
		    </tr>
 | 
			
		||||
		    <tr>
 | 
			
		||||
			    <td><?= __('To: ', BDP_LV_PLUGIN_SLUG); ?></td>
 | 
			
		||||
			    <td><input type="text" name="mail-to" style="width: 100%"></td>
 | 
			
		||||
		    </tr>
 | 
			
		||||
		    <tr>
 | 
			
		||||
			    <td><?= __('Subject: ', BDP_LV_PLUGIN_SLUG); ?></td>
 | 
			
		||||
			    <td><input type="text" name="mail-subject" style="width: 100%"></td>
 | 
			
		||||
		    </tr>
 | 
			
		||||
	    </table>
 | 
			
		||||
	    <?php
 | 
			
		||||
        wp_editor( '', 'gutenberg_content', array(
 | 
			
		||||
            'textarea_name' => 'mail-text',
 | 
			
		||||
    //		'media_buttons' => false, // Deaktivieren der Medien-Upload-Schaltfläche
 | 
			
		||||
        ) );
 | 
			
		||||
        submit_button(__('Send email', BDP_LV_PLUGIN_SLUG));
 | 
			
		||||
        ?>
 | 
			
		||||
    </form>
 | 
			
		||||
<?php
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user