Welcome Guest, Not a member yet? Register   Sign In
Gmail - CI 2.1.0
#11

[eluser]other-side[/eluser]
that code that works and sends mail is my test.php page wich when i do localhost/test.php it reads the code and sends an email from gmail to hotmail. but that is just to test weather the smtp works or not and in the code is told to send an email to my hotmail account, my actual sign up page is were the user will type there own email address and then an email should be sent to them with a link to activate and complete there account sign up, but thats when i get the error of not being able to send,


Hope that explains better than my last post did,

test.php (works and sends email with echo Hello word, Email testing working)

signup.php (i get an error message, altho it stores there email address and activation key into my database) it just dont send them the email to confirm and activate there account

EDIT: Sorry yes the test.php works but i cant use that code in place of sign up as they need all the other stuff to be sent to them not just the Hello World, they need the activation key and a box to type there email in, hence why its no good for what i need, just good to test the set up and see if it was sending emails and no ports were blocked or anything


Thanks again bud, and i like the 8 ps
#12

[eluser]other-side[/eluser]
This is the full error message i get once i click (sign up)


Quote:A PHP Error was encountered

Severity: Warning

Message: fsockopen(): php_network_getaddresses: getaddrinfo failed: No such host is known.

Filename: libraries/Email.php

Line Number: 1689
A PHP Error was encountered

Severity: Warning

Message: fsockopen(): unable to connect to ssl://smtp.google.com:465 (php_network_getaddresses: getaddrinfo failed: No such host is known. )

Filename: libraries/Email.php

Line Number: 1689
A PHP Error was encountered

Severity: Warning

Message: fwrite() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1846
A PHP Error was encountered

Severity: Warning

Message: fgets() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1869
A PHP Error was encountered

Severity: Warning

Message: fwrite() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1846
A PHP Error was encountered

Severity: Warning

Message: fgets() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1869
A PHP Error was encountered

Severity: Warning

Message: fwrite() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1846
A PHP Error was encountered

Severity: Warning

Message: fgets() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1869
A PHP Error was encountered

Severity: Warning

Message: fwrite() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1846
A PHP Error was encountered

Severity: Warning

Message: fgets() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1869
A PHP Error was encountered

Severity: Warning

Message: fwrite() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1846
A PHP Error was encountered

Severity: Warning

Message: fwrite() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1846
A PHP Error was encountered

Severity: Warning

Message: fgets() expects parameter 1 to be resource, boolean given

Filename: libraries/Email.php

Line Number: 1869
Invalid email address:
The following SMTP error was encountered: 0 php_network_getaddresses: getaddrinfo failed: No such host is known.
Unable to send data: AUTH LOGIN
Failed to send AUTH LOGIN command. Error:
Unable to send data: MAIL FROM:

from:

The following SMTP error was encountered:
Unable to send data: RCPT TO:

to:

The following SMTP error was encountered:
Unable to send data: DATA

data:

The following SMTP error was encountered:
Unable to send data: User-Agent: CodeIgniter Date: Sat, 25 May 2013 21:31:51 +0200 To: [email protected] From: Return-Path: Subject: =?utf-8?Q?Confirm_E-mail_for_Transport_Management?= Reply-To: "[email protected]" X-Sender: [email protected] X-Mailer: CodeIgniter X-Priority: 3 (Normal) Message-ID: <[email protected]> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="B_ALT_51a111a737406" This is a multi-part message in MIME format. Your email application may not support this format. --B_ALT_51a111a737406 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Thank you for choosing Website Name. Please click here to continue the signup process. Confirmation Link:http://192.168.0.7/index.php/owner/confirm/72f5b972bf321894b061d05615254447 Contact support if you have any problems signing up.http://192.168.0.7/index.php/contact --B_ALT_51a111a737406 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thank you for choosing Website Name. Please cl= ick here to continue the signup process.=20 Confirmation Link:http://192.168.0.7/index.php/owner/confirm/72f5b972bf3218= 94b061d05615254447=20 Contact support if you have any problems signing up.http://192.168.0.7/inde= x.php/contact --B_ALT_51a111a737406--
Unable to send data: .

The following SMTP error was encountered:
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

User-Agent: CodeIgniter
Date: Sat, 25 May 2013 21:31:51 +0200
To: [email protected]
From:
Return-Path:
Subject: =?utf-8?Q?Confirm_E-mail_for_Website_Name?=
Reply-To: "[email protected]"
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0


Content-Type: multipart/alternative; boundary="B_ALT_51a111a737406"

This is a multi-part message in MIME format.
Your email application may not support this format.

--B_ALT_51a111a737406
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

Thank you for choosing Website Name. Please
click here to continue the signup process.

Confirmation
Link:http://192.168.0.7/index.php/owner/confirm/72f5b972bf321894b061d05615254447


Contact support if you have any problems signing
up.http://192.168.0.7/index.php/contact


--B_ALT_51a111a737406
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Thank you for choosing Website Name. Please cl=
ick here to continue the signup process.=20

Confirmation Link:http://192.168.0.7/index.php/owner/confirm/72f5b972bf3218=
94b061d05615254447=20

Contact support if you have any problems signing up.http://192.168.0.7/inde=
x.php/contact

--B_ALT_51a111a737406--



hope this will help you to help me Big Grin thanks
#13

[eluser]TheFuzzy0ne[/eluser]
Somewhere you're still connecting to ssl://smtp.google.com (which doesn't exist). You need to find that and replace it with ssl://smtp.gmail.com.
#14

[eluser]other-side[/eluser]
[quote author="TheFuzzy0ne" date="1369741853"]Somewhere you're still connecting to ssl://smtp.google.com (which doesn't exist). You need to find that and replace it with ssl://smtp.gmail.com.[/quote]

do you know what, i feel like a bloody idiot, you said it twice and i didnt click, i looked at what my error said loads of times and never noticed it said google not gmail, how did i understand you after a hard days work i have no idea, but it seem to do the trick, email sent and recived, thank you so very much for fixing what i really didnt see, and making me feel like an idiot haha,


TFO your a star *




Theme © iAndrew 2016 - Forum software by © MyBB