Help with mail() function.
Moderator: General Moderators
Help with mail() function.
What I am trying to do is send an email to about 100 yahoogroups addresses (to post my ad). I know I have to do it only a few at a time, which isn't the problem. Since I signed up for these yahoogroups from a personal address, I can only post to these groups from this account. I have tried using the mail() function to do this, yet even when I change "From:" in the headers it won't work. Is there any way to actually send emails from my account on my domain or to "fake" yahoogroups into thinking I am actually sending it from that address?
Sending an un-solicited email to hundreds of email address which contains any type of advert is SPAM, and you really should read the Yahoo! Terms and Conditions before you do it otherwise they could hit you with the Legals.
SPAM or not though Yahoo! will probably prevent mass-emailing like I said previously.
SPAM or not though Yahoo! will probably prevent mass-emailing like I said previously.
I don't think you understand. Check it out at yahoogroups.com. People sign up for these lists to, by there own free will and choice, and I subscribe to this list myself. They want the information (it's not unsolicited). Basically anyone that is part of a specific group can email each other. It's easy to unsubscribe. I can't explain it that well, but you will have to figure it out yourself. I personally hate SPAM and would never do anything that is related to SPAM. It is a wrongful practice.
Okay, I am posting to multiple groups who are looking for business opportunities and others who are looking for free offers. The two are sepearate. Also, for some reason yahoogroups will only allow someone to post to a few groups at a time. It would make things easier if I could send the messages in small groups. I have done it before with outlook but it some what of a pain. It's not torture, but I am also trying to learn php so this might be useful in the future.
it's likely your isp will not allow you to send emails with arbitrary sender-addresses. You probably have to use the smtp-server of the isp that handles email-address you've signed up with at yahoo.
http://phpmailer.sourceforge.net/ might help you as it implements its own smtp-client. You can specify which host it should connect to to send the emails. Use the same settings as in your mail-client. But you need fsocket-support on the php-server for that.
http://phpmailer.sourceforge.net/ might help you as it implements its own smtp-client. You can specify which host it should connect to to send the emails. Use the same settings as in your mail-client. But you need fsocket-support on the php-server for that.