mrdee 1 Report post Posted December 5, 2008 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
veerumits 0 Report post Posted December 5, 2008 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
iGuest 3 Report post Posted January 6, 2009 use the ini_set php function. ini_set("SMTP","your.Smtp.Server"); ini_set("smtp_port","25");-reply by Charlie Somerville Share this post Link to post Share on other sites
networker 0 Report post Posted January 12, 2009 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
iGuest 3 Report post Posted March 7, 2009 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
k_nitin_r 8 Report post Posted May 6, 2009 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