# Trouble sending email from Flash

**URL:** <https://forum.kirupa.com/t/trouble-sending-email-from-flash/259567>\
**Category:** flash\
**Created:** [May 6, 2008, 7:25pm UTC](https://forum.kirupa.com/t/trouble-sending-email-from-flash/259567 "2008-05-06T19:25:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![uncle\_phil](https://avatars.discourse-cdn.com/v4/letter/u/8baadc/32.png) [@uncle\_phil](https://forum.kirupa.com/u/uncle_phil)\
**Post date:** [May 6, 2008, 7:25pm UTC](https://forum.kirupa.com/t/trouble-sending-email-from-flash/259567/1 "2008-05-06T19:25:23Z")

</div>

I just did this tutorial [http://www.kirupa.com/developer/actionscript/flash\_php\_email.htm](http://www.kirupa.com/forum/../developer/actionscript/flash_php_email.htm)  
and when it came time to send the mail it wasn’t working.

So I tested the php script by itself on my localhost (so I could see if there was an error) and it came up with an error message saying “ **Warning** : mail() [[function.mail](http://localhost/Freelance/Idle%20Hands/BoB/flash%20files/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 \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_(path to email.php file) on line 13.”

does anyone know what I should do from here? Also, this is just my local server, what would i do on the client’s server that it’s going to?

Thanks a lot!
