473,549 Members | 2,948 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

unable to send mail from local PC

1 New Member
I want to send a mail through php code which contains the data entered by user by feeling the web form.
My code is done...But i am not able to send the mail.
It is giving error. The error is as follows.

Warning: mail(): Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port

I tried to change the port number from 25 to 80 for example in php.ini
Also my sendmail_from = you@yourdomain
Its not working. I am new to php.
If someone have solution on this please reply ASAP.
Jul 20 '15 #1
1 1692
Bharat383
93 New Member
you can use SMTP like PHPMailer to send mail from local or
follow this url:
http://stackoverflow.com/questions/1...il-mail-server
Sep 2 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
4473
by: Wayno | last post by:
Hoping someone can help me out with this problem. First problem, is I am unable to view my php error log. In my php.ini I have my log in /var/www/logs/php_error_log. However, it has remained empty. Secondly, my sendmail works fine from command prompt. However, when trying to send mail through a php script (I have tried a couple), it says it...
1
2201
by: chalk | last post by:
xp_sendmail has died on our SQL Server, I get error "xp_sendmail: failed with mail error 0x80004005" if I try using it. I believe that the reason that this has happened is because the SQL Server service account is unable to send mail, as follows: If I log on to Outlook Web Access as the SQL Server service account (SVC_SqlServer) I am able...
4
3786
by: PawelR | last post by:
Hi, everbody. How send e-mail if smtp need authorization. If authorization is not required send email is not problem but I use SmtpMail.Send(myMail) PawelR
2
2018
by: Venkat | last post by:
I use this code : MailMessage mail = new MailMessage(); mail.From = FromAddress; mail.To = MailAddress; mail.Subject = Subject; mail.Body = MessageText; mail.BodyFormat = MailFormat.Html; if(XmlAttachmentPath.Length !=0) {
2
2204
by: Steven K | last post by:
Hello, I am using the following to send mail. It works on my web server, but not on my personal machine (which is running ASP.Net). I tried setting SmtpMail.SmtpServer to "", but get the following error: System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid. I then tried using: SmtpMail.SmtpServer...
6
3615
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a list of all of my webs, however if I attempt to open a site under and web other than localhost I receive the message: "Unable to open the Web...
0
1598
by: NowGeorge | last post by:
We execute dts packages to generate reports. We have an error using the send mail task. This is not a profile issue. It fails for the 3 users using this. Can open enterprise manager and execute the send mail task with no errors from my desktop using a local install. The dts packages require we use remote desktop connection to execute...
3
3109
by: crossroadsk | last post by:
<pre> Hi all, I'm new to Javamail concept and i got the following exceptions when i tried to send a simple mail. First exception is : using java Could not connect to SMTP host: smtp.gmail.com, port: 25; Second Exception is : java.net.SocketException: Software caused connection abort: connect
3
6003
by: sachin shah | last post by:
hi all my query is how can i send mail by using sql server, i think by unsing xp_sendmail store procedure we can do this but my problem is what paramater to be pass to this store procedure if i want to send mail from my local machine to another user, bcos i am geeting this error msg in query analyzer... query:-EXEC master..xp_sendmail...
2
1466
by: premMS143 | last post by:
Hi to all, We at Our company having our own local network in which consists around 20 users. We do not have Internet connections. Now I've created an asp.net website to share the data among the different users. Now I'm thinking that it would be better if we have an mailing facility. Please guide me how we can establish to send mail each...
0
7520
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7718
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7470
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7809
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6041
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1936
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.