PHP Tutorials: Sending email (Part 3)


Using thе mail function, I ѕhοw уου hοw tο mаkе a very basic script. Wіth a small tweaking οf ουr php.ini file, wе саn send аn email frοm php very straightforwardly!

25 Responses to “PHP Tutorials: Sending email (Part 3)”

  • CoDCopsProductions says:

    @phpacademy I tried your script in the form of one php file with no form – simply setting the variables and using the mail function with the headers. When I run the script, it also produces a blank page but again – no email appears in my inbox. Weird thing is though, that it doesn’t produce an error – even if I addmittedly, don’t have any form of mail server… This’ll probably sound like a ‘noobish’ question – Sorry if it does/is ;)

  • piron416 says:

    thank you. your video was very helpful and informative. I have successfully made my php email.

  • kunsangtsang says:

    hi, thanks for this fantastic tutorial. Very simple to follow. Yet, I am stuck with this error Warning: mail() [function.mail]: Failed to connect to mailserver at “smtp…….. php. ini
    Can you please, help me get through with this? Tons of thanks in advance.

  • TheFoit says:

    after you’ve installed a SMTP mailserver and got it to work, what if you’re trying to send an email from a location that doesn’t have the same SMTP,
    Is there a universal SMTP??
    Becuz, ALex is only able to send email from his university DNS SMTP, isn’t he??
    Basically, I want to be able to send my emails from different locations with different SMTP. Can anyone help?
    THanks, fantastic Tut, ALex!

  • moowman says:

    thx very much mate, i was trying to get my mailing system work for nearly 2 days, and nothing..i was lucky i found ur tuts.. ;)
    very excellent tutorials keep up the excellent work.

    cheers!!

  • LoverToxic says:

    i have seen all parts of this tutorial and its so fantastic tutorial. thx for uer help

  • Stady234 says:

    do a Google search on your ISP SMTP…

    You should get an address that you can test.. I just got a successful test from mine.

  • madhukar1982 says:

    what if i don’t have the smtp server installed or i don’t have a domain / mail server.

  • baimaycry says:

    Thank you alex!!!!

  • jazzy6121 says:

    gr8 job ….pls keep it up

  • ddoodm says:

    This is GREAT! I like you!!!!!!!!!

  • image969 says:

    I can’t seem to find the authentication tutorial.. Did you end up not doing this one?

  • paul151253 says:

    brilliant presentational skills. How about a tut on getting a thread from a mysql database which points to an image file and loads into a table? Thanks

  • Jonas9300 says:

    Thanks for your tutorials. The only way which makes me learn webprogramming is watching and “listen” to others ^^

  • rsureshiit says:

    Hello sir ,
    I need to send the mail in the Linux using php mail function.
    I need to change any thing in php.ini file

    please help me

  • rsureshiit says:

    can any one tell how to send email in linux using php mail function.

    is there any changes need to do in php.ini file

    please help me

  • omanoman98 says:

    This tutorial was indeeeeeeeed VERY useful for myself!
    Many thanks Alex!

  • danstudlyman says:

    any luck with the msg i sent you?

  • KayferProductions says:

    I can’t find my DNS address. :( I need Help

  • danstudlyman says:

    Me again…still not working :( i sent u a msg. Can u tell me what i did incorrect? im still learning this php stuff lol

  • danstudlyman says:

    i reflect i know what im doing incorrect. I dont have a mail server and my ISP isnt replying… any suggestions? if it still doesnt work ill message u the page i did.

  • phpacademy says:

    Yes, message them to me and i’ll have a look!

  • danstudlyman says:

    i followed u step by step and it just gives me a blank page, check my email, nothing….could u tell me what i did incorrect? i can send u an email of my scripts.

  • liuhi says:

    hi can i hav ur e-mail plz

  • SupportForTheLife says:

    its fixed:)

Leave a Reply

You must be logged in to post a comment.