Forum Moderators: coopster

Message Too Old, No Replies

Can't send mail() to addresses with 2 dots after

email question (using php mail() function)

         

sansandiego

12:12 am on Jul 12, 2008 (gmt 0)

10+ Year Member



Can any one help me figure out why my emails are successful going to typical emails with one dot after the @ symbol,

like: someone@example.com

yet I am not successful sending to an email address

like: myname@sub.example.com

Thanks for any suggestions

[edited by: eelixduppy at 5:21 am (utc) on July 12, 2008]
[edit reason] exemplified [/edit]

eelixduppy

5:26 am on Jul 12, 2008 (gmt 0)



Welcome to WebmasterWorld! :)

Haven't heard of this before, are you getting any errors? is mail() returning FALSE? Have you checked your spam/bulk folder for the email? Are you setting the FROM header in the email? There are many reasons the email might not be reaching its destination. Answer the questions above and we'll see where we stand.

sansandiego

2:53 pm on Jul 15, 2008 (gmt 0)

10+ Year Member



I tested further, and realized I did get the first email I tested to this double dot email account. I just never got the rest of that days test emails to this account.

(Filter happening at the service provider level, not the individual user level.)

I found out that the email service provider for example.com filters multiple sends from a website, limiting the number of emails delivered to its users emails (to prevent spams) only allowing one or 2 a day to a recipient from: 'from=address@mysite.com'. So I changed the from: 'from=anotheraddress@mysite.com' and received 2 (tested about 5) but at least I received them in the same day, receiving a total of 3.

So it was not my code causing me not to receive emails, but the email service provider filtering.

It taught me to use a unique 'from=address@mysite.com' for each of my different types of forms, in case my user requests more than 2 or 3 things within a day, where my site needs to respond to them using mail().

And to add a

[edited by: eelixduppy at 2:55 pm (utc) on July 15, 2008]
[edit reason] exemplified [/edit]