Kangry.com [insert cool graphic here]
home | Topics | Logout | Search | Contact | ?? Kangry ?? | Bandwitdh
Topics:
DVR
nvrec
Mplayer
Links
Misc
Commands
Humor

Name

Password

New user

uploaded files
(linux_command_line)-> (Parent)->sendmail from php (mosso/rackspace) submited by Russell Fri 10 Sep 10
Edited Mon 13 Feb 12
Web kangry.com
php example to send mail from rackspace cloud This is good because it does a check for email validity before it sends. How_do_I_test_PHP_SMTP_functionality (new link to same file)

In case I can't find it next time It is pasted Below: WARNING THE < and > codes will not render corectly, use view source and copy
-----cut here-----
"; $to = "Nobody "; $subject = "Test email using PHP SMTP\r\n\r\n"; $body = "This is a test email message"; $host = "mail.emailsrvr.com"; $username = "webmaster@example.com"; $password = "yourPassword"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { echo("

" . $mail->getMessage() . "

"); } else { echo("

Message successfully sent!

"); } ?> ----cut-here----



Add comment or question...:
Subject:
Submited by: NOT email address. Leave blank for anonymous    (Spam Policy)

Enter Text: (text must match image for posting)




This file (the script that presented the data, not the data itself) , last modified Wednesday 03rd of December 2014 09:40:39 AM
your client: CCBot/2.0 (http://commoncrawl.org/faq/)
current time: Tuesday 25th of April 2017 06:07:37 PM