kiwihawk Posted December 30, 2004 Posted December 30, 2004 I've searched thru the forums, I've tried all the suggestions I can find but I cannot get the email to work! Send email to customer from admin works ok. Contact form works ok. New user registration does not work Customer ordering product does not send any email to store owner tell-a-friend does not work password reminder does not work. Guess all the good design work was for nothing. Looks like I will have to find another product unless someone has some more ideas.
boxtel Posted December 30, 2004 Posted December 30, 2004 I've searched thru the forums, I've tried all the suggestions I can find but I cannot get the email to work! Send email to customer from admin works ok. Contact form works ok. New user registration does not work Customer ordering product does not send any email to store owner tell-a-friend does not work password reminder does not work. Guess all the good design work was for nothing. Looks like I will have to find another product unless someone has some more ideas. <{POST_SNAPBACK}> well, if you enlighten us with your environment, email settings, etc, we may be able to come up with something. Treasurer MFC
kiwihawk Posted December 30, 2004 Author Posted December 30, 2004 well, if you enlighten us with your environment, email settings, etc, we may be able to come up with something. <{POST_SNAPBACK}> Running on a windows server - MySql database. My smtp is in the format mail.mydomain.co.nz What other information can I give you that would help?
boxtel Posted December 30, 2004 Posted December 30, 2004 Running on a windows server - MySql database.My smtp is in the format mail.mydomain.co.nz What other information can I give you that would help? <{POST_SNAPBACK}> I use the same environment, let me share my settings for smtp. in configuration - email options I have : E-Mail Transport Method smtp E-Mail Linefeeds CRLF Use MIME HTML When Sending Emails true Verify E-Mail Addresses Through DNS false Send E-Mails true in php.ini I have : [mail function] ; For Win32 only. ;smtp of my isp SMTP = msa.hinet.net smtp_port = 25 ; For Win32 only. sendmail_from = [email protected] ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ;sendmail_path = ** I noticed that you need to set sendmail_from to whatever or nothing is send. Treasurer MFC
kiwihawk Posted December 30, 2004 Author Posted December 30, 2004 I use the same environment, let me share my settings for smtp. in configuration - email options I have : E-Mail Transport Method smtp E-Mail Linefeeds CRLF Use MIME HTML When Sending Emails true Verify E-Mail Addresses Through DNS false Send E-Mails true in php.ini I have : [mail function] ; For Win32 only. ;smtp of my isp SMTP = msa.hinet.net smtp_port = 25 ; For Win32 only. sendmail_from = [email protected] ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ;sendmail_path = ** I noticed that you need to set sendmail_from to whatever or nothing is send. <{POST_SNAPBACK}> Where will I find the php.ini file? I run the software on a hosted server and not my own. Will I need my ISP to change it for me or can I upload my own php.ini? And if so where would I put it? Thanks so much for your help. I think we might be on the right track.
boxtel Posted December 30, 2004 Posted December 30, 2004 Where will I find the php.ini file?I run the software on a hosted server and not my own. Will I need my ISP to change it for me or can I upload my own php.ini? And if so where would I put it? Thanks so much for your help. I think we might be on the right track. <{POST_SNAPBACK}> if you are hosted then your host owns the php.ini file, you will not even have one. I would contact them directly to ask them whether they have set smtp and if not, how you can get your emails out. Treasurer MFC
kiwihawk Posted December 30, 2004 Author Posted December 30, 2004 if you are hosted then your host owns the php.ini file, you will not even have one.I would contact them directly to ask them whether they have set smtp and if not, how you can get your emails out. <{POST_SNAPBACK}> Will do that immediately. Thank you very much for your help. BTW you have a very beautifully designed site. By any chance would you be willing to share the header. I have been trying to get similar tabs working without much success.
boxtel Posted December 30, 2004 Posted December 30, 2004 if you are hosted then your host owns the php.ini file, you will not even have one.I would contact them directly to ask them whether they have set smtp and if not, how you can get your emails out. <{POST_SNAPBACK}> by the way, the admin email function uses a different function to send emails. I have no idea why that is but it uses the email class from the mail.php file. there it says: $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', $from, $subject); in order confirmation email a different approach is used: in checkout_process: tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); Treasurer MFC
kiwihawk Posted December 30, 2004 Author Posted December 30, 2004 by the way, the admin email function uses a different function to send emails.I have no idea why that is but it uses the email class from the mail.php file. there it says: $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', $from, $subject); in order confirmation email a different approach is used: in checkout_process: tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); <{POST_SNAPBACK}> Would it then be possible to copy the admin email function into checkout_process to overcome the problem. The admin emails are working so obviously $mimemessage etc works whereas tep_mail etc doesnt. I will still try the php.ini solution first but maybe the other could be considered as an alternative fix. Thanks....
boxtel Posted December 30, 2004 Posted December 30, 2004 Will do that immediately. Thank you very much for your help. BTW you have a very beautifully designed site. By any chance would you be willing to share the header. I have been trying to get similar tabs working without much success. <{POST_SNAPBACK}> sure, I posted this some time ago in the contribution section : http://www.oscommerce.com/community/contributions,1023 my version was from nov 5 I think but there have been additions to it. If you run into trouble with it, just mention it and I can send you the latest version. Treasurer MFC
♥Vger Posted December 30, 2004 Posted December 30, 2004 Even on a shared server, if site security is set to High, you may have a local copy of the php.ini file which you will have access to. Try looking for a directory pathway something like etc/php in your FTP folders. The only problem with this local copy of php.ini is that it does tend to get overwritten when a hosting company applies upgrades to the servers. Vger
boxtel Posted December 30, 2004 Posted December 30, 2004 Would it then be possible to copy the admin email function into checkout_process to overcome the problem. The admin emails are working so obviously $mimemessage etc works whereas tep_mail etc doesnt. I will still try the php.ini solution first but maybe the other could be considered as an alternative fix. Thanks.... <{POST_SNAPBACK}> ok, check the php.ini issue first, if that does not resolve it we'll look into the mail workaround. Treasurer MFC
kiwihawk Posted January 1, 2005 Author Posted January 1, 2005 sure, I posted this some time ago in the contribution section :http://www.oscommerce.com/community/contributions,1023 my version was from nov 5 I think but there have been additions to it. If you run into trouble with it, just mention it and I can send you the latest version. <{POST_SNAPBACK}> Tried out your tabs contribution and it works and looks great. Now for the big "ask". Where these tabs designed in Photoshop and would you have the psd files that you could share. I'm no designer and am having trouble recreating the tabs in my custom colors and still having them look as great as yours.
boxtel Posted January 1, 2005 Posted January 1, 2005 Tried out your tabs contribution and it works and looks great.Now for the big "ask". Where these tabs designed in Photoshop and would you have the psd files that you could share. I'm no designer and am having trouble recreating the tabs in my custom colors and still having them look as great as yours. <{POST_SNAPBACK}> actually no, I do not have the psd files as these images came with another contribution and I simply used them to combine them into the catagory listing. I tried to merge them into psd some time ago. I'll check what I have and post it as a contribution if it is valuable. Treasurer MFC
kiwihawk Posted January 1, 2005 Author Posted January 1, 2005 actually no, I do not have the psd files as these images came with another contribution and I simply used them to combine them into the catagory listing.I tried to merge them into psd some time ago. I'll check what I have and post it as a contribution if it is valuable. <{POST_SNAPBACK}> The default images are great, but unfortunately the wrong color for me. I tried to change them in Photoshop, but the quality in my work was sadly missing!
kiwihawk Posted January 5, 2005 Author Posted January 5, 2005 ok, check the php.ini issue first, if that does not resolve it we'll look into the mail workaround. <{POST_SNAPBACK}> Asked my ISP to make the change to the php.ini and this was his response: The referenced php.in file is a system-wide configuration file. Any and all changes made to that file apply to all sites making use of PHP on that system. As such, making a change to that file for the referenced parameters would simply not be feasible, since it is a shared server environment.However, you might try to invoke PHP's built-in ini_set() function; which allows for the customization of PHP system variables on a particular domain/site So looks like I need an alternative. Are you able to help me some more?
kiwihawk Posted January 5, 2005 Author Posted January 5, 2005 ok, check the php.ini issue first, if that does not resolve it we'll look into the mail workaround. <{POST_SNAPBACK}> One other thing he suggested was: "one thing you may want to check is the path to the sendmail function. It should be, /usr/sbin/sendmail" Could this be inserted somewhere to help?
Guest Posted January 5, 2005 Posted January 5, 2005 dont use aliases in the admin area No Customer Service <[email protected]> Yes [email protected]
kiwihawk Posted January 5, 2005 Author Posted January 5, 2005 dont use aliases in the admin areaNo Customer Service <[email protected]> Yes [email protected] <{POST_SNAPBACK}> Already done that, but thanks for the suggestion. Its got something to do with it not being able to find the mail server. Somewhere I need to tell it to look for mail.mydomain.co.nz. It cant be put in the php.ini so it needs to go somewhere else.
Guest Posted January 5, 2005 Posted January 5, 2005 there is an email test contribution, also your mail server may require smtp with authentication (another contribution). if all else fails get another host.
kiwihawk Posted January 10, 2005 Author Posted January 10, 2005 ok, check the php.ini issue first, if that does not resolve it we'll look into the mail workaround. <{POST_SNAPBACK}> Ok, I set up the smtp contribution and the same results as before with the php mail: send email to customers from admin: ok contact form : ok new registration: not working order confirmation to customer: not working tellafriend: not working I need badly to overcome this problem as its the only thing stopping me from going 'live'. Any suggestions from anyone?
Guest Posted January 30, 2005 Posted January 30, 2005 Ok, I set up the smtp contribution and the same results as before with the php mail: send email to customers from admin: ok contact form : ok new registration: not working order confirmation to customer: not working tellafriend: not working I need badly to overcome this problem as its the only thing stopping me from going 'live'. Any suggestions from anyone? <{POST_SNAPBACK}> i would try a different hosting/server company. i use lunarpages and it has oscommerce built in their system through fantastico. you might give them a try. my settings are: email transport method: sendmail email linefeeds: LF Use MIME HTML when sending emails: false verify email addresses through DNS: false Send emails: true
Recommended Posts
Archived
This topic is now archived and is closed to further replies.