I got problem in email send. When i use domain email in my php script i got mail but when i use gmail it not send and it show error.
Here is code url : http://pastebin.com/XTCB3mch
In line number 81 : $headers = “From: firstname.lastname@example.org” . PHP_EOL;
When i change it to gmail id it show error. What is the solution.
I also try PHPmailer Here is code url : http://pastebin.com/BaDVLxch
Line number 30 : $mail->From = ‘email@example.com’;
Same Problem is here also. If I change it gmail or other ac mail not sending. But if i use domain mail mail sending well.
Need Some Help….......:|
- Author has had an Item Featured
- Author had a Free File of the Month
- Has been a member for 3-4 years
- Referred between 10 and 49 users
- Exclusive Author
- Bought between 10 and 49 items
- Sold between 50 000 and 100 000 dollars
- Beta Tester
It’s maybe your SMTP server requires authentication but allows relay for local domains. You should check it with your network administrator or hosting provider.
Please check this image also , when i use to send with smtp auth.