Generally, when you create an account on a hosting, an email account is created that will be used to make the SMTP connection. If you do not have this account, or do not know what this account is, recommend you contact the accommodation.
Or if you have access to the administrative panel, such as Cpanel, you can create/see which account this is. Some host use ports 587, 25, or 2525 for SMTP, you should see with your hosting what would be.
One of the things that can go wrong, I don’t know if it’s your case, but it’s the SMTP host issue, it’s usually a different one from your domains, many times it’s mail.youdony.. Check with the company this tbm.
Another thing, to use the mail function, you have to perform some settings, as for example.
php_flag authmail.debug: Enables system error messages.
php_value authmail.port: Defines the port that will be used for sending ( 587 ).
php_value authmail.address: Email address that will be used.
php_value authmail.Account: Email account access user.
php_value authmail.smtp: Mail sending server.
php_value authmail.password: Password to access the email account.
All this information is in a. htaccess file in the root folder.
Take a look at these links, it might help you.
http://www.hostnet.com.br/wiki/index.php/Fun%C3%A7%C3%A3o_mail()_do_PHP
http://www.oficinadanet.com.br/artigo/1031/php__enviando_e-mail_autenticado
Valew.
Hello Eduardo, I know you have a long time this post, I would like to know how you solved. Redehost does not really allow support for the use of Phpmailer? Could you show your code with the mail() function? Cheers.
– Gonzaga Neto