954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

smtp setting

I have one website name e.g. www.mydomain.com
Now i want to configure smtp setting in my local pc.
Below is the phpini code i have set.
Here i have not used any username and password.

[mail function]
; For Win32 only.
SMTP = mail.mydomain.com
smtp_port = 25


And it is working.. Strange !!!!
How this can work?
I mean if this is the only required info then anyone can set this detail and can use my domain's smtp.
What is the reason behind working of it?

If i want to use my gmail account info for smtp. Is it works?
what is the steps to follow?

Any help will be appreciated.

vibhaJ
Posting Shark
931 posts since Apr 2010
Reputation Points: 161
Solved Threads: 183
 

Did you try with some other systems with the same one. I hope it will not work. somewhat your system is already configured to receive email from your server.

To utilize gmail account try the code with phpmailer and gmail.

http://www.tutorialized.com/view/tutorial/Sending-e-mails-via-SMTP-with-PHPmailer-and-Gmail/52515

rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239
 

I got below error when i connect with different machine.

Warning: mail() [function.mail]: SMTP server response: 550-(TEST-PC) [xx.xx.xx.xx]:50406 is currently not permitted to relay 550-through this server. Perhaps you have not logged into the pop/imap server 550-in the last 30 minutes or do not have SMTP Authentication turned on in your 550 email client. in C:\wamp\www\email.php on line 9


I think my working pc's ip address is allowed on thatmydomain.com.
How can i check on mydomain.com?

vibhaJ
Posting Shark
931 posts since Apr 2010
Reputation Points: 161
Solved Threads: 183
 

and when i use above link for sending mail from gmail account, i got below error.

SMTP -> ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (24)
SMTP Error: Could not connect to SMTP host. Mailer Error: SMTP Error: Could not connect to SMTP host.
vibhaJ
Posting Shark
931 posts since Apr 2010
Reputation Points: 161
Solved Threads: 183
 

anybody knows how to integrate gmail account information ???

vibhaJ
Posting Shark
931 posts since Apr 2010
Reputation Points: 161
Solved Threads: 183
 

Yeah Error will come, but you can find the error message on google to know the settings. Because you are not simply accessing the gmail account, there is some configuration too. So please go thru the php mailer documentation clearly to know that.

rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: