Help with PHP script and SENDMAIL- NEED HELP ASAP!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nadinelk
Forum Newbie
Posts: 1
Joined: Wed Feb 17, 2010 11:10 am

Help with PHP script and SENDMAIL- NEED HELP ASAP!

Post by nadinelk »

Hi there, I'm very very new to PHP. I have an e-catalog that has a "sharing" function where it emails a friend if you want to share it. The link to the e-catalog is here: http://akteo.us/boccia-catalog01/index.html.

The share requires me uploading a share.php file which worked fine but I use Yahoo webhosting and I have to integrate Yahoo!'s SENDMAIL script into the php script and have no idea how to do it so it works right.

Here is the link to the php script that can be downloaded (it is the generic one that I am using but this is basically it): http://www.pagegangster.com/share-your- ... blication/

and here is the instruction from Yahoo! about there script. I also don't know which part of this code I need to change/customize: http://help.yahoo.com/l/us/yahoo/smallb ... hp-17.html

Please help. Let me know if you need more info.
Thanks!!!!
lshaw
Forum Commoner
Posts: 69
Joined: Mon Apr 20, 2009 3:40 pm
Location: United Kingdom

Re: Help with PHP script and SENDMAIL- NEED HELP ASAP!

Post by lshaw »

Are you allowed to used yahoo!'s SMTP server directly? If so use ini set:

Code: Select all

ini_set("SMTP","plus.smtp.mail.yahoo.com"); //I think that is the smtp server
ini_set("smtp_port","25"); //that is not the right port
then use the mail function

This will only work if you have access to your php.ini file
Post Reply