Results 1 to 6 of 6
  1. #1

    Default help php error sending email via localhost


    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\marc\email.php on line 9

    Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\marc\email.php on line 15

    Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\choi\email.php:9) in C:\xampp\htdocs\marc\email.php on line 16

    unsaon ni sya pag fix mga boss?

  2. #2
    Quote Originally Posted by roiancuares View Post
    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\marc\email.php on line 9
    i think kani nah error ang imo query ang naay error mao dili cya ka fetch.

    Quote Originally Posted by roiancuares View Post
    Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\marc\email.php on line 15
    sa akong na hibaw.an dili ka ka send dayon in localhost naa pa kay isetup, ang akong buhaton para ma test akong email script kay iupload nako sa webhosting kay naka setup na daan

    Quote Originally Posted by roiancuares View Post
    Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\choi\email.php:9) in C:\xampp\htdocs\marc\email.php on line 16
    im guessing ur using redirect ni gawas ni na error tungod sa mga error ni generate sa taas

    hope naka tabang ko, and i hope naa pay mas makatabang ani na prob.

  3. #3
    Quote Originally Posted by roiancuares View Post
    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\marc\email.php on line 9
    this is more like a MySQL issue, not associated with mail() function.

    Quote Originally Posted by roiancuares View Post
    Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\marc\email.php on line 15
    this means that you MAILSERVER is not running. since you're using XAMPP, you need to enable and use your Mercury Mail software. You have to figure out how to set it up and seamlessly run as a service. You can send email via mail locally as long as you have configured your mercury mail server accounts properly.

    Quote Originally Posted by roiancuares View Post
    Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\choi\email.php:9) in C:\xampp\htdocs\marc\email.php on line 16
    this is usually the error if you are trying to generate another html document where it has already been created prior to calling of email.php in line 9.

    check and review your code.
    Last edited by ChaosOrb; 02-12-2013 at 09:57 AM.

  4. #4
    Elite Member noy.juan's Avatar
    Join Date
    Mar 2010
    Gender
    Male
    Posts
    1,521
    Blog Entries
    1
    you cant sent mail from localhosts, because its wrong, the php mail function has been abused by scammers before thats why most OS are blocking any mail coming from a localhost, you could however do a workaround by enabling sendmail.exe, or have a local mail server and forward it if you are using XAMPP on windows, or use a phpmailer script from worxware and use SMTP, and use gmail as your mail server...

    is strongly recommend phpmailer-SMTP + gMAIL from worxware....

    if you can avoid it dont send email from localhosts...

  5. #5
    You can also get a web hosting account to test your mailing scripts. Some offers free hosting, enough for testing purposes.

  6. #6
    you can use phpmailer + gmail SMTP and check your php.ini be sure to have this line extension=php_openssl.dll

  7.    Advertisement

Similar Threads

 
  1. Form to Email Php error
    By roiancuares in forum Websites & Multimedia
    Replies: 4
    Last Post: 05-10-2013, 05:31 PM
  2. need help: php error
    By snowleopard in forum Programming
    Replies: 4
    Last Post: 11-26-2011, 08:06 AM
  3. Help Ondoy Victims: Send DonationS VIA Gcash for Free
    By pop-oman in forum General Discussions
    Replies: 0
    Last Post: 10-01-2009, 04:30 PM
  4. Need help... PHP Error
    By dezheavensent in forum Programming
    Replies: 6
    Last Post: 06-19-2009, 12:29 PM
  5. Send email to the future
    By xyberblue in forum Websites & Multimedia
    Replies: 4
    Last Post: 12-28-2005, 04:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top