Title: SMTP classes!
Last modified: August 22, 2016

---

# SMTP classes!

 *  [nantokuko](https://wordpress.org/support/users/nantokuko/)
 * (@nantokuko)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/smtp-classes/)
 * Dear,
    i have a wordpress site at [http://www.asantabrigida.com](http://www.asantabrigida.com/it);
   It’s wordpress 3.8.2 with Vierra theme: [themeforest.net/item/vierra-responsive-hotel-wordpress-theme/5992155](http://themeforest.net/item/vierra-responsive-hotel-wordpress-theme/5992155);
   The provider (www.aziendeitalia.it) has specified that the function phpmail is
   disabled, and suggested to install your great plugin. If i send a test mail, 
   i receive it. But if i send a mail from the contact form, i don’t receive nothing.
   I called the help-desk of provider, and they told me i have to modify my send.
   php, and to use SMTP classes(???)
 * My send.php file is quite simple:
 *     ```
       <?php
       session_start();
   
           $email_to = get_option('de_email'); // change with your email
           $name     = $_POST['name'];
           $email    = $_POST['email'];
           $subject   = $_POST['subject'];
           $message    = $_POST['message'];
   
           $headers  = "From: $email\r\n";
           $headers .= "Reply-To: $email\r\n";
   
           if(mail($email_to, $subject, $message, $headers)){
               echo "success";
           }
           else{
               echo "failed";
           }
       ?>
       ```
   
 * How can i modify this file, to make it work with your plugin?
    I can give also
   to you username and password to enter in wordpress admin area. **PLEASE HELP 
   ME…**
 * [https://wordpress.org/plugins/webriti-smtp-mail/](https://wordpress.org/plugins/webriti-smtp-mail/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [webriti](https://wordpress.org/support/users/priyanshumittal/)
 * (@priyanshumittal)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/smtp-classes/#post-5252329)
 * I think you should wordpress specific wp_mail function
 * Read more regarding this function [](http://codex.wordpress.org/Function_Reference/wp_mail)

Viewing 1 replies (of 1 total)

The topic ‘SMTP classes!’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/webriti-smtp-mail_837aba.svg)
 * [Webriti SMTP Mail](https://wordpress.org/plugins/webriti-smtp-mail/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webriti-smtp-mail/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webriti-smtp-mail/)
 * [Active Topics](https://wordpress.org/support/plugin/webriti-smtp-mail/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webriti-smtp-mail/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webriti-smtp-mail/reviews/)

## Tags

 * [mail](https://wordpress.org/support/topic-tag/mail/)

 * 1 reply
 * 2 participants
 * Last reply from: [webriti](https://wordpress.org/support/users/priyanshumittal/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/smtp-classes/#post-5252329)
 * Status: not resolved