Jump to content

indiodoido

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

indiodoido's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. thanks MrAdam! if only i had seen your post earlier lol I've managed to do something like you did, but more complicated... The important thing is that it's finally working Thanks allot to all who posted!
  2. I found the problem... I has trying to fill the Bcc field like this: $mail->AddBCC("email1@hotmail.com, email2@hotmail.com, email3@hotmail.com"); and it seems that's not correct :s if i have to send the email to multiple addresses using Bcc, i have to do this: $mail->AddBCC("email1@hotmail.com"); $mail->AddBCC("email2@hotmail.com"); $mail->AddBCC("email3@hotmail.com"); i've managed to send the email to some teste addresses and it worked this way...but now i have a big problem, i wanted to fill the Bcc field with email addresses dynamically, just like i was doing in the first post using mail()
  3. found a tutorial on how to work with PHPMailer But even so i'm now getting the Bcc to work... :@ Here's my code: require_once('url/PHPMailer/class.phpmailer.php'); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = "localhost"; $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "blabla"; // SMTP username $mail->Password = "blabla"; // SMTP password $mail->From = "from@hotmail.com"; $mail->FromName = "fromName"; //$mail->AddAddress("sendto@gmail.com","sendto"); //$mail->AddReplyTo("from@hotmail.com", "from"); $mail->AddBCC("$bcc"); //bcc has the list of addresses $mail->IsHTML(true); $mail->Subject = "Online"; $mail->Body = "bla bla bla bla bla..."; $mail->WordWrap = 50; if(!$mail->Send()) { echo "Message was not sent"; echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "mail sent!"; } What i'm i doing wrong now?
  4. I'm not familiar to phpmailer class :S How do i work with it? Which is better, phpmailer ou SMTP?
  5. I've contacted my hosting administrator and i've found out that they disabled Cc and Bcc headers in php mail() with Suhosin Now lets i'm waiting to see if they are going to enable that option so that i can use Bcc in my project. Just one question...if they don't enable that feature, is were any other way to send emails to multiple addresses without the other users seeing the emails?
  6. I sent a email do my hosting provider and brought up this issue. I hope they can help. By the way...is there any option in php.ini that can disable the use of the Bcc option in mail()?
  7. i commented the Bcc header: //$headers .= "Bcc: $bcc" . "\r\n"; added one more email in the 'to' string: $to = 'xxxx@gmail.com, xxxx@rld-i.com'; and the email was sent to both addresses :S i'm going crazy with this!
  8. didn't display any php error's, only the my default mail failure:
  9. It gives me the "oh damm!" warning. In other words the mail() function didn't send the email :S Anyway i checked to see if the emails were send, but neither the to: email or the bcc: emails where delivered tried this too, and didn't work :S
  10. hey guy's! thanks for the reply's I added double-quotes to the bcc header: $headers .= "Bcc: $bcc" . "\r\n"; But it didn't work
  11. hi! I'm trying to send a email to multiple addresses using Bcc. Ok...seems simple, but the truth is that i'm not getting it to work Here's my code: $mails[1] = "test1@teste.com"; $mails[2] = "test2@teste.com"; $mails[3] = "test3@teste.com"; $mails[4] = "test4@teste.com"; $bcc = implode(",", $mails); $to = 'blabla@bla.com'; $subject = 'Email test'; $message = 'Welcome!'; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: Test Site <test@test.com>' . "\r\n"; $headers .= 'Bcc: $bcc' . "\r\n"; $headers .= 'X-Mailer: PHP/' . phpversion(); if( mail($to, $subject, $message, $headers) ) { echo "oh eya!"; } else { echo "oh damm!"; } I have a simple function to check which emails were submitted by the user and store them in a array. This way there won't be any empty emails. Can anyone tell me why this isn't working?
  12. hi dmccabe I do have a date and time field in my post table. But what i really would like to do is, not to order them by date, that i can do. I what to create a archive menu, so that older posts can be grouped by date. In stead of paging all my posts, i want to group them in months. Example: Post N : ... Feb 09 Post 9 : 22 Feb 09 (...) Post 1 : 01 Feb 09 Archives: Nov 08 - Dec 08 - Jan 09 <- i want to create this
  13. hi, I'm thinking on developing a simple blog in PHP & MySQL. The only thing i want in the blog is the possibility to enter posts and archive them by date (month and year). I have everything planed out, but i really don't know how to organize my posts in the blog by date For example: Archives: Dec 08 - Jan 09 - Feb 09 Can anyone tell me how to do this, or give me an example code?
  14. humm, i see... i thought it would be easier :-( ok, no problem, maybe i will just use a simple javascript countdown and then upload the website manually, much more secure ;-) thanks for the tip guys
  15. but with javascript anyone can see the link of the new website, and with php it would no be possible. isn't it possible to create a countdown with php ??
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.