zohab Posted March 12, 2012 Share Posted March 12, 2012 Hi, I am working on php email functionality using pear with the help of below article. http://www.cyberciti.biz/tips/howto-php-send-email-via-smtp-authentication.html It is working fine. But when I change "From" address other than my domain email address then it stop working. for example $headers["From"] = '[email protected]'; -- working $headers["From"] = '[email protected]'; - not working. [email protected] is working and I am able to send email separately. Any idea about this problem. - Thanks Quote Link to comment https://forums.phpfreaks.com/topic/258738-email-with-xampp-pear-email-class/ Share on other sites More sharing options...
creata.physics Posted March 12, 2012 Share Posted March 12, 2012 This may be an issue with sendmail's configuration or php.ini configuration issue. I know in linux sendmails config settings are in /usr/sbin/sendmail.conf normally. Are you running xampp on windows or linux? Quote Link to comment https://forums.phpfreaks.com/topic/258738-email-with-xampp-pear-email-class/#findComment-1326434 Share on other sites More sharing options...
zohab Posted March 13, 2012 Author Share Posted March 13, 2012 Sorry forgot to mention in last post. I am using XAMPP 1.7 on windows 7 Quote Link to comment https://forums.phpfreaks.com/topic/258738-email-with-xampp-pear-email-class/#findComment-1326714 Share on other sites More sharing options...
creata.physics Posted March 14, 2012 Share Posted March 14, 2012 I do use xampp, but it's actually lampp since I'm on lenix. Same thing either way. I doubt it's the way your mail is configured, but i'd like to know if your smtp host is localhost or not. Quote Link to comment https://forums.phpfreaks.com/topic/258738-email-with-xampp-pear-email-class/#findComment-1327136 Share on other sites More sharing options...
zohab Posted March 28, 2012 Author Share Posted March 28, 2012 My SMTP host in not localhost Quote Link to comment https://forums.phpfreaks.com/topic/258738-email-with-xampp-pear-email-class/#findComment-1331885 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.