We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,956 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

PHP mail with SMTP authentication

Hi,

i made an HTML contact form with the following fields name, email and message and i want to send it to my gmail address with SMTP authentication.

Please can anyone guide me with a step by step process? i am new to PHP.

i found the script for SMTP authentication but i am unable to configure it.

regards

Aqeel

3
Contributors
8
Replies
3 Days
Discussion Span
7 Months Ago
Last Updated
10
Views
bafaqih
Newbie Poster
5 posts since Oct 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

Did you search this forum? There should be plenty discussion threads about GMail/PHPMailer and authentication.

pritaeas
Posting Prodigy
Moderator
9,286 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,457
Skill Endorsements: 86

i have searched the forum yes there are plenty of it but still confusing for me. need a guidance.

bafaqih
Newbie Poster
5 posts since Oct 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

@bafaqih

i found the script for SMTP authentication but i am unable to configure it.

Can you at least show the link where you found this code?

LastMitch
Industrious Poster
4,146 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45

@LastMitch
here is the linkClick Here

bafaqih
Newbie Poster
5 posts since Oct 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

How do you relate the form fields with the script? it would be kind of you if you show me an alternative other than PEAR

bafaqih
Newbie Poster
5 posts since Oct 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

@bafaqih

How do you relate the form fields with the script? it would be kind of you if you show me an alternative other than PEAR

I saw the code and just download the PEAR package! I have it on my computer. I used it sometimes. It's very useful! You can just google to find another alternative with PHP mail SMTP or you can used the one from that site. It's like a regular email form!

LastMitch
Industrious Poster
4,146 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45

@LastMitch
OK, But please show me how to use the code in the link (which i just sent u), here is the HTML code.

<form action="" method="post" id="contactform">
                      <ul>
              <li>
                <label for="name">First Name <span class="red">*</span></label>
                <input id="name" name="name" class="text" />
              </li><br/>
              <li>
                <label for="email">Your email <span class="red">*</span></label>
                <input id="email" name="email" class="text" />
              </li><br/>
              <li>
                <label for="message">Message <span class="red">*</span></label>
                <textarea id="message" name="msg" rows="6" cols="50"></textarea>
              </li>
              <li class="buttons">
                <input type="image" name="imageField" id="imageField" src="images/send.gif" class="send" />
                <div class="clr"></div>
              </li>
            </ul>
        </form>
bafaqih
Newbie Poster
5 posts since Oct 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

@bafaqih

OK, But please show me how to use the code in the link (which i just sent u), here is the HTML code.

Here is a simple form to follow:

http://php.about.com/od/phpapplications/ss/form_mail.htm

Here is the code for the PEAR:

http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm

or you can used this simple form that has smtp:

http://www.9lessons.info/2009/10/send-mail-using-smtp-and-php.html

LastMitch
Industrious Poster
4,146 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0941 seconds using 2.7MB