Grow your CSS skills. Land your dream job.

About contact forms and php email function

  • # August 9, 2009 at 3:11 am

    First of all, hello. I have just started to learn some php and i wanted to make use of the contact form provided here but right now i’m working locally and i can’t send mails.

    Now, i’ve read that in order to do so i need to change the SMTP address, in the phpini doc, to my ISP’s one and as i was looking for it i found out that my ISP blocked the port 25 as of August 1st.

    So my questions are:

    Is it possible to use another port so that i can send mails from my local project?
    If upload the site paying for hosting (assuming all coding is correct) will the contact form work as it is?

    Sorry if my english i awkward and thanks in advance for any and all comments.

    Grin.

    # August 9, 2009 at 3:38 am
    Quote:
    Is it possible to use another port so that i can send mails from my local project?

    I have never bothered to try and send emails from a local development. If you get a "mail sent" message and no errors then the chances are that it is working fine.

    Quote:
    If upload the site paying for hosting (assuming all coding is correct) will the contact form work as it is?

    You may want to check with your host that emails are not disabled, a few hosts do it to counteract spam, but you should be ok.

    # August 10, 2009 at 9:32 am

    Hi,

    If you’re developing under WIndows you will want to set the smtp options in php.ini.

    Code:
    smtp=smtp.yourisp.com
    smtp_port=25
    # August 21, 2009 at 4:04 pm

    It worked fine when i uploaded the whole site, thanks for the tips though.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".