PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Iron Speed
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old April 11th, 2008, 01:47 AM
Barnigan Barnigan is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 23 Barnigan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 31 m 3 sec
Reputation Power: 0
Autmate email

i have a search that produces a list of book that are being sold based on the users search. i need to create a way to allow the users to click on one of the books and an automatic email will be sent out to the seller. i have been trying the mail function but can't get it to work. any ideas?

Reply With Quote
  #2  
Old April 26th, 2008, 02:14 AM
hasantayyar hasantayyar is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Location: Turkey
Posts: 3 hasantayyar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 53 m 5 sec
Reputation Power: 0
Send a message via Google Talk to hasantayyar Send a message via Skype to hasantayyar
You should write down more information about your problem.

if your problem is sending mail your should look @ php[dot]net -> search mail

and if you are looking for a good solution about mail action you should search about "php mailer" i think.


and there is a good solution from php.net User Contributed Notes :


Send mail using Gmail or any other mail service and XPertMailer v.4 (to download you can search from google i can not paste the url here) :
PHP Code:
<?php

// path to 'MAIL.php' file from XPM4 package
require_once '/path-to/MAIL.php';

$m = new MAIL// initialize MAIL class
$m->From('username@gmail.com'); // set From mail address
$m->AddTo('client@destination.net'); // add To mail address
$m->Subject('Hello World!'); // set your mail subject
// set your mail message (text/html)
$m->Html('<b>HTML</b> <u>message</u>.');

// connect to MTA server 'smtp.gmail.com' port '465' via SSL ('tls' encryption)
// with authentication: 'username@gmail.com' and 'password'
// set the connection timeout to 10 seconds, the name of your
// host 'localhost' and the authentication method to 'plain'
// make sure you have OpenSSL module (extension) enable on your php configuration
$c $m->Connect('smtp.gmail.com'465'username@gmail.com''password',
'tls'10'localhost'null'plain') or die(print_r($m->Result));

// send mail relay using the '$c' resource connection
echo $m->Send($c) ? 'Mail sent !' 'Error !';

// disconnect from server
$m->Disconnect();

?>

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > Autmate email


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway