[PHP] Re: PEAR Mail $obj->send()

2011-07-08 Thread Brian Smither
>>Instead of 'auth'=> true, I used 'auth' => "PLAIN" as 
>> suggested by a user comment on the Mail documentation page.)

$obj = Mail::factory('smtp',
  array ('host' => $host,
'port' => $port,
'auth' => true,
'username' => $username,
'password' => $password));

(Variables are set. $host = "smtp.gmail.com", $port = "465")


>Do you have a mail server running on localhost?

No.

>If you do not have a local MTA then you need to change the
>params so it uses a remote mail server.

It does.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: New/changing subject... was [PHP] Re: PEAR mail

2004-11-08 Thread Greg Donald
On Mon, 8 Nov 2004 12:08:30 -0500 (EST), Jim Wharton
<[EMAIL PROTECTED]> wrote:
> I'm truly sorry about that. What's even more frustrating is making a
> simple mistake and having a bunch of people jump down your throat about
> it. Point taken. Apology offered.

I just pretend like I'm posting to vger.kernel.org.. seems to keep
most people from yelling at me too much.


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: New/changing subject... was [PHP] Re: PEAR mail

2004-11-08 Thread Jim Wharton
Matthew Weier O'Phinney said:

>
> Actually, you *did* change the subject. Read what was said in that
> paragraph:
>
> [P]lease don't reply to an existing message in an existing thread
> (even if you change the subject) because you're new question will
> become a part of the old thread.
>
> If you use a threaded mail/news reader, as many people do, your messages
> will be grouped based on the original topic sent:

I'm a mutt user typically. I know this.

> So it's rather
> frustrating to open up a thread on PEAR Mail and discover something
> about PHP's drawing functions inside it.

I'm truly sorry about that. What's even more frustrating is making a
simple mistake and having a bunch of people jump down your throat about
it. Point taken. Apology offered.

I am sorry though. Any more correspondance on this particular issue needs
to be directed to my personal email address - not the list. (That is,
unless, you feel the need to publically teach me a lesson.)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: New/changing subject... was [PHP] Re: PEAR mail

2004-11-08 Thread Matthew Weier O'Phinney
* Jim Wharton <[EMAIL PROTECTED]>:
> Ben Ramsey said:
> >
> > Is this somehow related to the "PEAR mail" thread? I don't see the
> > connection. I think you're trying to ask a new question. When doing
> > so, please don't reply to an existing message in an existing thread
> > (even if you change the subject) because you're new question will
> > become a part of the old thread. ALWAYS start a brand new message; a
> > descriptive subject is also helpful. You'll get a better response
> > and more help this way.
> >
> > Thanks!
>
> Yeah, sorry, I am aware of that. I wasn't sure of the list's address,
> so I replied to an existing message. I simply forgot to change the
> subject line.

Actually, you *did* change the subject. Read what was said in that
paragraph: 

[P]lease don't reply to an existing message in an existing thread
(even if you change the subject) because you're new question will
become a part of the old thread.

If you use a threaded mail/news reader, as many people do, your messages
will be grouped based on the original topic sent:

timestamp sender subject
---
10:00am   <> PEAR Mail
10:05am   <>  -> Re: PEAR Mail
10:07am   <> -> Re: PEAR Mail
10:06am   <>  -> Something about something else
10:08am   <>  -> Re: PEAR Mail

What's more, such readers also have the ability to 'collapse' threads
and show message counts -- so you can visually save space in your box,
and see if certain threads have received new messages. So it's rather
frustrating to open up a thread on PEAR Mail and discover something
about PHP's drawing functions inside it.

If you want to start a new thread, but don't know the list address...
Look at another post's To: or CC: headers; you'll likely find it there.
Then put that address in your address book so you don't need to look
next time.

-- 
Matthew Weier O'Phinney   | mailto:[EMAIL PROTECTED]
Webmaster and IT Specialist   | http://www.garden.org
National Gardening Association| http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PEAR mail

2004-11-08 Thread Matthew Weier O'Phinney
* Marc Serra <[EMAIL PROTECTED]>:
> i'm using Mail PEAR package and i want to send a mail to a recipient and 
> to some other in Cc.
> So i try to add Cc in header but it failed and mail didn't been 
> delivered to Cc. It was only delivered to adress specified in From field.
>
> I use that code :
>
>
> $hdrs = array(
> "From"=> "[EMAIL PROTECTED]",   
> "Cc" => "[EMAIL PROTECTED]"
 ^
Need a comma at the end of that line.

> "Subject" => "Tests"
> );
> $mime = new Mail_mime($crlf);   
> $mime->setHTMLBody(stripslashes($html));
> $body = $mime->get();
> $hdrs = $mime->headers($hdrs);
> $mail =& Mail::factory('smtp',$params); 
> $mail->send($recipients, $hdrs, $body);

What is $recipients? Is it an array with both [EMAIL PROTECTED] and
[EMAIL PROTECTED] or a comma-separated string with both addresses?

Those are the two accepted forms for the first argument to the send()
method. The common pitfall I run into is that I forget to add the Cc
and/or Bcc elements to it before sending -- which means they do not get
delivered.

-- 
Matthew Weier O'Phinney   | mailto:[EMAIL PROTECTED]
Webmaster and IT Specialist   | http://www.garden.org
National Gardening Association| http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] New/changing subject... was [PHP] Re: PEAR mail

2004-11-08 Thread Jim Wharton
Ben Ramsey said:
>
> Is this somehow related to the "PEAR mail" thread? I don't see the
> connection. I think you're trying to ask a new question. When doing so,
> please don't reply to an existing message in an existing thread (even if
> you change the subject) because you're new question will become a part
> of the old thread. ALWAYS start a brand new message; a descriptive
> subject is also helpful. You'll get a better response and more help this
> way.
>
> Thanks!

Yeah, sorry, I am aware of that. I wasn't sure of the list's address, so I
replied to an existing message. I simply forgot to change the subject
line.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: PEAR mail

2004-11-08 Thread Ben Ramsey
Is this somehow related to the "PEAR mail" thread? I don't see the 
connection. I think you're trying to ask a new question. When doing so, 
please don't reply to an existing message in an existing thread (even if 
you change the subject) because you're new question will become a part 
of the old thread. ALWAYS start a brand new message; a descriptive 
subject is also helpful. You'll get a better response and more help this 
way.

Thanks!
Jim Wharton wrote:
I'm not very familiar with php's drawing abilities. I have found out how
to get it to create multipoint polygons.
What I am trying to do is implement something along the lines of LOGO.
(You know, that old language that told a robotic turtle to draw on the
floor)
Seriously, I currently have an inherited Java program that takes traverse
information (strings that look like this: BAS(L66D24R66U24)) and createds
this: Left:66 Down:24 Right: 66 Up:24 and draws it out to the screen.
These are building drawings made by field appraisers (for the local
property appraisers office).
I would really like to drop the Java stuff as I don't really use it. What
I would really like to do is somehow turn these strings into coordinates
so I can draw them using PHP's polygon function.

--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
---
Atlanta PHP - http://www.atlphp.org/
The Southeast's premier PHP community.
---
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: PEAR mail

2004-11-08 Thread Jim Wharton
I'm not very familiar with php's drawing abilities. I have found out how
to get it to create multipoint polygons.

What I am trying to do is implement something along the lines of LOGO.
(You know, that old language that told a robotic turtle to draw on the
floor)

Seriously, I currently have an inherited Java program that takes traverse
information (strings that look like this: BAS(L66D24R66U24)) and createds
this: Left:66 Down:24 Right: 66 Up:24 and draws it out to the screen.
These are building drawings made by field appraisers (for the local
property appraisers office).

I would really like to drop the Java stuff as I don't really use it. What
I would really like to do is somehow turn these strings into coordinates
so I can draw them using PHP's polygon function.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PEAR mail

2004-11-08 Thread Ben Ramsey
Marc Serra wrote:
   $hdrs = array(
   "From"=> "[EMAIL PROTECTED]",   
   "Cc" => "[EMAIL PROTECTED]"
   "Subject" => "Tests"
   );
In your $hdrs array, you're missing a comma separating Cc from Subject. 
That's probably causing the problem. It should be:

$hdrs = array(
"From" => "[EMAIL PROTECTED]",
"Cc" => "[EMAIL PROTECTED]",
"Subject" => "Tests"
);
--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
---
Atlanta PHP - http://www.atlphp.org/
The Southeast's premier PHP community.
---
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PEAR Mail/smtp sending problem

2004-05-30 Thread Khan
Christopher J. Mackie wrote:
I'm following the PEAR docs to use Mail/SMTP. Below is the code I use,
swiped directly from the docs--I've changed the authorization data to
protect privacy, but otherwise it's identical (and email sent from a client
on this same machine using the same settings works fine).  I'm running PHP
4.3.6 ISAPI on Win2k3 Server, IIS6.0.
No errors are generated back to me, but the messages aren't going through.
I can't see the smtp server logs, so I don't know what's failing.
I'm new to PHP:  what am I missing? Is there a way that I can examine on my
end the errors that are presumably being generated at the SMTP server?
you have Pear dedicated mailing list at http://pear.php.net/ Maybe 
someone will answer you sooner there.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PEAR::MAIL Problem

2004-02-24 Thread Justin Patrin
Stanley chan wrote:

> Dear Listmates,
> 
> I am using PEAR::MAIL and my code includes the below;
> 
> // Send Email Out
> $mailCfg = array(
>   "host"  => "127.0.0.1",
>   "port"  => "25",
>   "auth"  => false
>   );
> $mailRecipient = $hashValue["emailaddress"];
> $mailHeader = array(
>   "From"  => "[EMAIL PROTECTED]",
>   "To"=> $mailRecipient,
>   "Subject"   => "Test Message"
>   );
> $mailBody = $myContent;   
> $mailMgr =& Mail::factory("smtp", $mailCfg);
> $mailResult = $mailMgr->send($mailRecipient,
> $mailHeader, $mailBody);
> 
> It is found that the variable $mailResult is always
> true but the email cannot be received whenever. 
> 
> On the other hand, in the same machine, I can use the
> native function mail() very well. It works well.
> 
> So I doubt the problem of PEAR::MAIL. Should I
> consider anything?
> 
> My server is using Qmail and sendmail command is a
> shortcut of Qmail executes (standard way).
> 
> Please help.
> 
> -stan
> 
> 
> _
> 必殺技、飲歌、小星星...
> 浪漫鈴聲  情心連繫
> http://us.rd.yahoo.com/evt=22281/*http://ringtone.yahoo.com.hk/

I would suggest using the sendmail or mail backends to PEAR::Mail
instead of smtp since those seem to work fine on your machine.

$mailMgr = Mail::factory('mail');

--
paperCrane 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php