excl209 Posted May 24, 2007 Share Posted May 24, 2007 Hi, I'm a newbie php'er and i have a question... I'm creating a membership system for my website... all the code works fine... entering, updating, querying, etc... the one with it doesn't do is email all the time... The code does work - but the only time was to a @gmail account... i couldn't send to a @yahoo.com, @sbcglobal.net or @icqmail.com I know there are filters on the emails - but how do i bypass them? I'm using the mail() function. Excl209. ??? Quote Link to comment https://forums.phpfreaks.com/topic/52824-emailing-problems/ Share on other sites More sharing options...
marmite Posted May 24, 2007 Share Posted May 24, 2007 if it's mailing to gmail, it's likely that the mail() function is working fine, and it's the filters on the inboxes, as you mentioned. Have you checked the spam boxes of those inboxes? if the spam has filtered them off, you could try removing any URLs from the email (that's what triggers the spam on my inboxes anyway!) Quote Link to comment https://forums.phpfreaks.com/topic/52824-emailing-problems/#findComment-260905 Share on other sites More sharing options...
excl209 Posted May 25, 2007 Author Share Posted May 25, 2007 I checked the spam... and it wasn't in there... for any of the others... The whole reason I'm sending the email in the first place is to send the url so the user can activate their membership... Is there any way around this? special code? different ways to email? Many thanks for you help. Excl209 Quote Link to comment https://forums.phpfreaks.com/topic/52824-emailing-problems/#findComment-261266 Share on other sites More sharing options...
excl209 Posted May 25, 2007 Author Share Posted May 25, 2007 This was my code:- mail($email_address, $subject, $message, "From: MyDomain Webmaster<admin@mydomain.com>\n X-Mailer: PHP/" . phpversion()); Strange thing was... if i took out the MyDomain Webmaster... and say put in excl209... it works!! it now sends to all email addresses... strange huh? mail($email_address, $subject, $message, "From: excl209<admin@mydomain.com>\n X-Mailer: PHP/" . phpversion()); My next question is that in the name section in my inbox it says excl209<admin@mydomain.com> is there any way just to make it excl209 ?!?!? Many thanks, Excl209 Quote Link to comment https://forums.phpfreaks.com/topic/52824-emailing-problems/#findComment-261837 Share on other sites More sharing options...
per1os Posted May 26, 2007 Share Posted May 26, 2007 If you remove the <admin@mydomain.com> it should work, not sure. Give it a try and see. Quote Link to comment https://forums.phpfreaks.com/topic/52824-emailing-problems/#findComment-261915 Share on other sites More sharing options...
excl209 Posted May 26, 2007 Author Share Posted May 26, 2007 ??? If i remove it the email doesn't come through... Any other ideas? Excl209 Quote Link to comment https://forums.phpfreaks.com/topic/52824-emailing-problems/#findComment-261984 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.