PDA

View Full Version : sendmail/smtp


Quintopia
03-03-2002, 03:51 PM
Whenever I send an email in php the email sent says it comes from "Nobody" at "nobody@quintopia.net", and the first line of the body of the email is the address I wanted it to come from. I can't make it say its coming from any specific email address with:

mail("targetemail@email.com","Subject","Content","Myemail@quintopia.net);
where "Myemail@quintopia.net" is the email I want it to come from.

Is this the wrong syntax, or is it something with HR's SMTP??
How can I fix?

Quintopia
03-03-2002, 03:53 PM
here's the code I tried to post, it cut the end off. . .
mail("targetemail@email.com","Subject","Content","Myemail@quintopia.net");

Quintopia
03-03-2002, 04:36 PM
Never mind, I was forgetting to add the "From: ". Anyway, what I really want to know is if its possible to send to a list of users and not to send the emails one at a time in a loop. . .

JoeF
03-03-2002, 04:45 PM
You might try:
mail("one@user.com;two@user.com;three@user.com",etcetc)

Which may or may not work

sylow
03-03-2002, 05:28 PM
Look at the header options of mail function at php.net
especially one BCC option
good luck