PHP code example of rusadrako / mail

1. Go to this page and download the library: Download rusadrako/mail library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rusadrako / mail example snippets


RD_Mail::call()
	->from($mail_from, $mail_from_name)
	->subject($subject)
	->message($message)
	->send($mail_to)
	;

	->to_cc($mail_to, $mail_to_name)

	->to_bcc($mail_to, $mail_to_name)

	->attach_file($file_name_full, $file_name)

	->insert_img($id, $file_name_full, $file_name)

	->type_html()

	->type_text()

	->test($test)