Set up email sending hosting redeHost

Asked

Viewed 1,525 times

1

I have a website hosted on the network, when configuring it in PHP Mailer, it did not work, I contacted the network support, I was told that PHP Mailer is blocked on their servers, that should use the mail function().

I was able to configure and send only text, however when I put attached file, it does not send because it needs authentication.

Does anyone already set up the email in this host? or has an example of the mail() function that is authenticated, and allows attachment?

  • 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.

2 answers

2

I got the "flea behind the ear" with the position of the support of the redeHost, and tried to talk to another attendant!

To my surprise, the solution was totally different, because as I suspected, the other technician had spoken blackcurrant.

Solution: exchange the mail.dominio.com.br SMTP for smtpexc01.redehost.com.br

  • Unfortunately here we have to go through this kind of situation, bad attendants, but it is the fault of the company, not prepare and/ or filter your employees properly.

  • Eduardo, you could post how your configuration was, because I have the same problem with redehost.

1

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.

  • The door that the support of the redeRost suggested me was 587 same. I gave a studied in the code, however I could not associate with a need to attach file... Please help me, I’m new to web development

  • That’s right, kk forgot to say tbm about you pinging the email host to see if it returned anything. In this house, it seems to me that they have a specific email server.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.