SMTP connection problem

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

SMTP connection problem

Postby JanM » June 17th, 2013, 5:08 pm

Hello,

I am testing PHP Tools for Visual Studio 2010. When trying to send an email using SwiftMailer I get an exception:

Connection to mysmtphost:587 Timed Out


It seems like there is a problem connecting to SMTP server.

I have XAMPP 1.8.1 installed, when I use XAMPP Apache module there is no problem sending an email, but when using Visual Studio and PHP Tools (with XAMPP Apache module disabled) I am getting the above error.

Any ideas how to solve this problem?
JanM
 
Posts: 6
Joined: June 17th, 2013, 4:53 pm

Re: SMTP connection problem

Postby Jakub Misek » June 18th, 2013, 10:12 am

Hello,

I'm glad you're trying our tools.

This issue is related to the server configuration. So you should check whether actual PHP is configured correctly for use with SwiftMailer.

There might be two or more installations of PHP (Tools | Options | PHP Tools | Interpreters). Here you can also check whether the installation supports debugging and to check its configuration file.

For advanced users, there is another option. You can force Visual Studio to run project on your Apache server. Open your project properties (Project | .. Properties) and setup Use Custom Web Server (http://www.devsense.com/doc/phptools/debug/remote-debug). In such case the project on your apache server would start, you just have to ensure debugging capabilities are installed correctly.

Please let me know if it works for you, or if you would have any more details. Thanks!
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: SMTP connection problem

Postby JanM » July 2nd, 2013, 12:51 pm

I changed the Start Action > Start URL setting to "http://{my vhost name for current project}" and now there is no problem with sending e-mails.

"my vhost name for current project" is taken from XAMPP Apache config (the file {xampp path}/apache/conf/extra/httpd-vhosts.conf) as I used before working with PHP Tools. Of course I have to still run Apache on XAMPP.

Thanks for your help.
JanM
 
Posts: 6
Joined: June 17th, 2013, 4:53 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 48 guests

cron

User Control Panel

Login

Who is online

In total there are 48 users online :: 0 registered, 0 hidden and 48 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 48 guests