Jump to content
xisto Community
mrdee

Setting An Smtp Server In Php.ini

Recommended Posts

I have a site hosted on another free hosting company's server.They also offer loads of features such as MySQL, PHP, Email and so on.I also have received a free co.cc domain.However, the email is not very reliable for receiving email.According to the hosting company they do allow you to use a socket for SMTP, and they accept a GMail server for this.The question is now: can I set the SMTP details in my .htaccess file so that PHP recognises and uses it?If so, can anyone tell me how this has to be done?All help will be greatly appreciated.

Share this post


Link to post
Share on other sites

The idea i here produce.In PHP.ini file you edit the entry smtp=smtp.my.net.serverme@localhostsmtp_port = 25sendmail_from = <YourmailID>actualy these entry are required to send the mail to any mail client from mail server.but what you expect that you want to set the SMTP details in .htaccess file then PHP recognises and uses it, i dont have any idea about it. but external entry in .htaccess file related to SMTP is lover chances.actualy all information reside on the mail server.thanks

Share this post


Link to post
Share on other sites

Of course,all this would depend on if you had permission tochange the ini file.I don't think we do here at Xisto.If you don't hace permission you won't be able tochange it in code.I know you're on another server though.Best of luck.

Share this post


Link to post
Share on other sites
Descriptive Title for Opinion/FeedbackSetting An Smtp Server In Php.iniI DONE THE SAME THING THEN ALSO MY PROBLEM IS NOT STARED-reply by monaKeywords:

Share this post


Link to post
Share on other sites

Descriptive Title for Opinion/Feedback

Setting An Smtp Server In Php.ini

 

I DONE THE SAME THING THEN ALSO MY PROBLEM IS NOT STARED -reply by mona

Keywords:


Hi!

 

Can you post the settings that you've made to the php.ini file, and the SMTP settings that you use for your email client (such as Outlook Express).

 

Often, you might also have to contact your network staff to add your server's IP address to their 'relay allowed' list, which enables to you send email outside your domain.

 

It really would help if you could describe the environment in which you've deployed your PHP application.

 

Regards,

Nitin

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.