pascal_22 Posted May 23, 2012 Author Share Posted May 23, 2012 To have a link in my message to confirm, i think i have no choice to use HTML? Quote Link to comment Share on other sites More sharing options...
Jessica Posted May 23, 2012 Share Posted May 23, 2012 You can have the link as plain text and most email clients will convert it to a clickable link. I don't think the HTML is the problem though. Quote Link to comment Share on other sites More sharing options...
pascal_22 Posted May 23, 2012 Author Share Posted May 23, 2012 ok thanks.... I just saw that we can include a key when sending mail...... X-SID-PRA: contact@phpfreaks.com X-DKIM-Result: None X-Message-Status: n:0:n X-SID-Result: None X-AUTH-Result: NONE In this exemple there 'none' but some email i receive is write 'PASS' instead of 'none' Quote Link to comment Share on other sites More sharing options...
mrMarcus Posted May 23, 2012 Share Posted May 23, 2012 EnregistrementUSer() returns 1 or 0? Quote Link to comment Share on other sites More sharing options...
pascal_22 Posted May 23, 2012 Author Share Posted May 23, 2012 if (!($reponse = mysql_query("insert ..."))) { echo mysql_error(); return 0; } else { return 1; } Quote Link to comment Share on other sites More sharing options...
pascal_22 Posted May 24, 2012 Author Share Posted May 24, 2012 so i'll add the logging so i'll check if something is logged! Thanks for your help! Quote Link to comment Share on other sites More sharing options...
pascal_22 Posted May 24, 2012 Author Share Posted May 24, 2012 Hello, Here a copy/past of my new code: if (!mail($Email_A, $Titre, $Sujet, $headers )) { error_log("\n$DateEnvoi Email sent error: ".$Email_A, 3, 'logs/confirmationEmail_send_errors.log'); } else { error_log("\n$DateEnvoi Email sent succesfully: ".$Email_A, 3, 'logs/confirmationEmail_send_Success.log'); } So i just had new user and all is in SUCCESS log. But two of my new user told me that they didnt receive my mail.... So i think, the problem is not in mail function. Is it possible, that i have too much HTML (i have table....., link....)? I will try for one or 2 day to delete ALL HTML, only text.? Is it a good idea? Thanks Quote Link to comment Share on other sites More sharing options...
pascal_22 Posted May 24, 2012 Author Share Posted May 24, 2012 You can have the link as plain text and most email clients will convert it to a clickable link. I don't think the HTML is the problem though. just to be sure, i want to delete all HTML tag for testing it. for link sould i wrtite: Click to confirm www.mydomain.com to confirm OR click to confirm <a href="www.mydomain.com">Confirm my mail</a> Thanks Quote Link to comment Share on other sites More sharing options...
pascal_22 Posted May 24, 2012 Author Share Posted May 24, 2012 New thing!! Ok, deleted all HTML and i only put DIV SAmething, some members didn't receive my message!! I tried a thing.... i would like to know what do you think: I've registered at laposte.net to get a free email, because all user with email from laposte.net didn't receive my confirmation mail. So after creating my free mail, i register to my website with my new email as a new user,the result is the same: i did not receive the confirmation email on my new email at laposte.net But if i register with another email to me at hotmail.com, i receive the confirmation email, BUT if i transfer this email at laposte.net, i receive it. Conclusion: like you said, it's not HTML tag that bloc my mail, because the mail i transfer to laposte had a lot of html tags. Whatelse can bloc my mail?? thanks a lot Quote Link to comment Share on other sites More sharing options...
mrMarcus Posted May 24, 2012 Share Posted May 24, 2012 People are using free mail services (mailinator, etc) to register for your site. I don't blame them. However, you will need to build a function that does not allow them to use said email addresses when registering, or at least the one in question. Quote Link to comment Share on other sites More sharing options...
mrMarcus Posted May 24, 2012 Share Posted May 24, 2012 all user with email from laposte.net didn't receive my confirmation mail This would have been great had you mentioned it at the beginning of the thread. Your problem would have been resolved in 5 minutes instead of 5 days. Let this be a lesson. Quote Link to comment Share on other sites More sharing options...
pascal_22 Posted May 24, 2012 Author Share Posted May 24, 2012 yeah you right, but i talk about laposte.net, but sometimes it's hotmail.fr, skynet.be,club-internet.fr, sometime ymail.com Maybe they all are free but i can block all of those.... I'm pretty sure there something else.... Don't you think? Quote Link to comment Share on other sites More sharing options...
mrMarcus Posted May 24, 2012 Share Posted May 24, 2012 yeah you right, but i talk about laposte.net, but sometimes it's hotmail.fr, skynet.be,club-internet.fr, sometime ymail.com Maybe they all are free but i can block all of those.... I'm pretty sure there something else.... Don't you think? Anybody on this board would have spotted that issue in 5 seconds of seeing it. As soon as you said "free email account", I knew right away. Free email accounts always cause issues. They're best to avoid altogether. Quote Link to comment Share on other sites More sharing options...
Jessica Posted May 25, 2012 Share Posted May 25, 2012 Considering most people use a free email service, you're really limiting your users if you reject them. I ONLY use gmail, I'm not giving out my work email for anything but work, and previously I didn't even have a work email. I've never had an issue sending mail to gmail, yahoo, hotmail etc via PHP. I would think it's a problem with the host. Quote Link to comment Share on other sites More sharing options...
pascal_22 Posted May 25, 2012 Author Share Posted May 25, 2012 yeah! you are right, if i block all free email, i will block a lot of people, for now, i delete my confirmation email... for the time i find a solution... Thanks!! Have a great Week end Quote Link to comment Share on other sites More sharing options...
mrMarcus Posted May 25, 2012 Share Posted May 25, 2012 I was actually referring to disposable email accounts, ie. mailinator.com I didn't use the right context. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.