Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Adding SMTP Info


Does anyone know how to add SMTP info e.g. server, login, password to a mail() script for authentication purposes?




View Complete Forum Thread with Replies

Related Forum Messages:
Sends SMTP Mail From Database Info
I've got this script that I want to use to send SMTP mail from a form that allows the user to select recipients from a dropdown list that is created using database info and send a message.  Two of the selections in the dropdown list are groups.  My script works fine when the user selects only one recipient.  I run into trouble when the user selects one of the two groups.

The message ends up getting sent numerous times to the people in the group. I received the message 9 times.  I think the script is looping more times than it should.  Does this make sense so far?  Here's the script that receives the form data and connects to the DB to get the recipient email addresses and then sends the message: Code:

View Replies !
Adding SSL To SMTP Script
I have a mailing list that I'm using to send out emails only to discover that its going to junk, so I want to send them through gmail using smtp. But gmail requires SSL in order to use, so I want to modify the code and add ssl. I've pasted the part of the code which connects to the server, I can post the whole file per request Code:

View Replies !
Adding Smtp To Mail Script
I been trying to figure this out but I just cannot seem to get it
I need to take this PHP Code:

View Replies !
Adding Info
I've got a forum and I want to so that when a user adds a HTML line such as a link <a href="http://www.yahoo.com">Yahoo.com</a> it add's <font color="BLACK"> into it like this when it goes into my MYSQL database <a href="http://www.yahoo.com"><font color="BLACK">Yahoo.com</a> How would I do this?

View Replies !
(Adding/getting Info From MySQL Db)
I need to be able to login to add names and coordinates (X and Y) into a MySQL database from a webpage and from another page, allow people to type in a name to seach for their coordinates. the coordinates can be -/+ (negative or possitive).

I'm just not sure of how to do it, I'm not that far in the learning process yet. Any help would be greatly appreciated. I have created the database (no rows or anything). I also have phpMyAdmin installed.connection string: PHP Code:

View Replies !
Reading Unix Group Info And User Info
how one reads group/user info of *nix servers using PHP? Is it possible at all? I need to authenticate people on a secure local website by looking at their group and user rights.

View Replies !
Putting Info Into A DB / Passing Info Between Pages
I have run into an issue...I have posted previously, but my scenario has changed.

Here is the situation...

If a user clicks on a link ('abc123' for example) I want to insert into my database some predefined information about 'abc123' - I have assigned a value that is echoed in future pages for 'abc123'.

So, what I need is some mechanism to, when a user clicks 'abc123', have a pre-defined username and password be entered into the database. I need this so future pages can utilize the session values.

View Replies !
No Mysql Info Through Info();
I am trying to install mantis, and I get errors when I try to run the install script saying that mysql is not configured to run on php.

I call the phpinfo() function and I see nothing relating to mysql.

I open the php.ini file, and, to be honest, it looks alright.

the extension_dir points to /usr/lib/php4 which includes the mysql.so extension.

Furthermore, I located the mysql.sock file and pointed the default socket to it, but nothing. what exactly am I missing? Code:

View Replies !
Free SMTP Server Called Free SMTP Server
I downloaded a free SMTP server called Free SMTP server. And I have a PHP script that looks like this:

$to="My Email Address";
$subject="Yo!";
$message="Hi!";
mail($to, $subject, $message) or die("Failed");

View Replies !
Help About POP/SMTP
I want to develop a mail interface for my client. Clinet will provide
mail server and my php pages will get mails from that server and show
to individual users

please tell me what library should i use to enable POP/SMTP, as my web
is AJAX based and i am using XOAD and NAJAX as development tool.


View Replies !
SMTP In PHP 4 And 5
Right now I use an SMTP library to send out automated e-mails from my
applications. We're looking to upgrade to PHP 5, and PHP 5 doesn't like
the SMTP library I'm using. Anyone have an SMTP library that they like
to use, that's compatible in PHP 4 and 5? It needs to be able to do
authentication and attachments.

View Replies !
PHP 5 & SMTP
Anyone know if PHP 5 has built in support for communicating with SMTP
servers that require a username and password?

Right now, as everyone knows, PHP 4 has built in support for
communicating with SMTP servers that do not require a username and
password, but in order to communicate with those that do, one needs to
do a lot of extra stuff ... and publically available classes to handle
the communication do exist.

View Replies !
POP Before SMTP
a friend using Windows wanted to send mail, but he got timeout errors
after editing php.ini Mail section

smtp = smtp.server.com
sendmail_from = friend@server.com

I realized that was because of the need to "POP before SMTP",
so I made him a function. It's working ... for his server (and
hopefully other servers too).

Can this function be improved?
Is it ok to fsockopen in blocking mode?
What about timeout values?

Here it is, hope it suits more Windows people without a mail server
and the need to POP before SMTP

<?php
function POP_authenticate($username, $password, $server) {
$socket = fsockopen($server, 110); // POP3 port
if (!$socket) {
return "Couldn't connect to $server:110
";
}

$res = fgets($socket, 512); // read +OK
if (substr(trim($res), 0, 3) != "+OK") {
return $res; // return the error
}
fputs($socket, "USER $username
"); // send user
$res = fgets($socket, 512); // read +OK
if (substr(trim($res), 0, 3) != "+OK") {
return $res;
}
fputs($socket, "PASS $password
"); // send pass
$res = fgets($socket, 512); // read +OK
if (substr(trim($res), 0, 3) != "+OK") {
return $res;
}
fputs($socket, "QUIT
"); // quit

### I don't care for errors after quitting :-)

fclose($socket);
return false;
}
?>

and this is an example on how you can use it:

<?php
$username = "netuser";
$password = "pAzw04D";
$POPserver = "pop.server.com";
### php.ini's SMTP must correspond to this server
### and sendmail_from must be from this server (??)

$msg = POP_authenticate($username, $password, $POPserver);
if ($msg === FALSE) {
mail("someone@somewhere.com", "PHP test", "Line 1
Line 2");
$msg = "mail (probably) sent.
";
}
exit($msg);
?>

View Replies !
PHP.ini And SMTP
it seems this has been discussed various times. Although I cannot
find a solution.
Ebvironment:
Win 2k
Apache 2
PHP 4.3.7

I use the module mode and not the cgi mode.
I cannot send email from this setup.
php.ini is in winnt
It has the following lines:
[mail function]
; For Win32 only.
SMTP = mailhost.where.am.com
smtp_port = 25

I tried this and I get:
SYSTEM WARNING: mail(): Failed to connect to mailserver at
&quot;localhost&quot; port 25, verify your &quot;SMTP&quot; and
&quot;smtp_port&quot; setting in php.ini or use ini_set()
PROBLEMS SENDING MAIL TO:
it takes localhost.
Apache restart
No change
Log out and log in
No change
Reboot
no change

now I search the entire harddisk for another php.ini.
No other php.ini found than the one in winnt
Now I run out of options.

View Replies !
SMTP/TLS
Does anybody know the simple way to send mail via SMTP/TLS? I know that
I can use fsockopen with "tls://" and send SMTP command manually but I
hope there is more simple manner.

View Replies !
SMTP
my php.ini setting is
SMTP = mail.aaa.com.my
smtp_port = 25
sendmail_from= xxx@aaa.com.my

$email = "xxxxx@yahoo.com";
$subject = "my subject!";
$message = "My Message!";

mail($email, $subject, $message, "From: $email");

echo "The email has been sent.";

my problem is i can only send mail to? @aaa.com.my, i cant send email to others like yahoo or hotmail.

View Replies !
Using My ISP SMTP
im sure this is a novice problem and ive found it hard to find similar sources that integrate with my form. All i want to do is link my form to send to my specified email using my ISP smtp. Here is my code:

<?php
$firstname=$_POST['FirstName'];
$lastname=$_POST['LastName'];
$email=$_POST['Email'];
$comment=$_POST['Comment'];

$toaddress = 'myemail@hotmail.com'
$subject = 'You Have A New COmment'
$mailcontent = 'First Name: '.$firstname. "" .'Last Name: '.$lastname. "" .'Email: '.$email. "" .'Comments: '.$comments. ".....

View Replies !
Setting Up Php.ini For Smtp Using Iis
I'm trying to make my web server a mail server and web server in one, kind of. I wan't my server to send out emails when requested by php using the smtp server of Microsoft iis. But one problem, I don't know how to set up IIS or php.ini to work with eachother.

I set up iis so I can recieve email through my server from a domain. But I don't know how to get it so that php uses IIS to send emails out with smtp. Does anyone know how to do this? If not, does anyone know how to make my server a windows smtp mail server that works with php?

View Replies !
Mail - SMTP ?
1) Does anyone know where we can d/load the smtp.php file ?

2) if you scroll down that screen - Theres a few examples that suggest SMTP.. however theyre either too little information - or too much information (Makes it complex, or too much info so I miss the important bits..)

View Replies !
Different SMTP On Linux
I read that you can specify a nonlocal SMPT host, for the "mail()" function, when running windows.

View Replies !
SMTP Issues
For some reason my (IIS WinXP SP2) SMTP server doesnt send messages, everything comes through from php alright, the email is generated and so on, then all the mails endup in the: C:InetpubmailrootBadmail folder, ive tried all sorts on this one and it doesnt seem to work. I have had this setup before and worked fine but i belive i was using a bundled package of apache, php and mysql, at present im using standalone installations of the above mentioned.

View Replies !
SMTP And PHP Problems
Running php version +5 and using win2k sp4 iis smtp server, set it up on port 245 cos thought isp was blocking it..? doesnt seem to be, tested scripts on another server, work fine...

So whats the problem, ive setup php.ini like so:

View Replies !
Php Mail() And SMTP
Is there any way to set up the php mail() function so that it sends a
username and password to the server? I'm on a winXP machine, and I have an
SMTP provider, but it requires me to login to use it, and for some reason I
can't find anything about it in the php.ini file.

View Replies !
Mail Via SMTP
I was wondering how I could send an email via SMTP using php.

View Replies !
Smtp Name In Php With Linux
Iam working with php on Linux, I want the Mail Server name to be changed dynamically irrespective of the php.ini settings, I tried couple of scripts from forum, it is not working instead always it is taking local host as the mail server Does any one has any clue.

View Replies !
NT4 SMTP Server
anyone know where I can get one? A imap/pop3 server would be gr8 too..

View Replies !
Smtp Connection
I am having difficulty connection to an smtp host. I am using the
following code but I don't think I fully understand what smtp host can
be used.

function setSMTPParams($host = null, $port = null, $helo = null, $auth
= null, $user = null, $pass = null)
{
if (!is_null($host)) $this->smtp_params['host'] = $host;
if (!is_null($port)) $this->smtp_params['port'] = $port;
if (!is_null($helo)) $this->smtp_params['helo'] = $helo;
if (!is_null($auth)) $this->smtp_params['auth'] = $auth;
if (!is_null($user)) $this->smtp_params['user'] = $user;
if (!is_null($pass)) $this->smtp_params['pass'] = $pass;
}

I don't fully understand that the $helo parameter is needed for.

Should I be able to access any smtp host which I own. I have two ISP
account and each have an smtp service. I use them for email. I notice
I can only use the smtp service associated with the ISP I am currently
connected to. Is that a common restriction which is the same reason I
am prevented from accessing the service from my php script?

Maybe the question I should this. What type of smtp account do I need
in order to send an email from my php script?

View Replies !
Mailing With Php, But Not Via SMTP
I have to send ALOT of emails at once, but media temple limits it to 500 emails per hour, which is why i dont want to use SMTP. is this going to take forever using just PHP, or is there a faster way?

View Replies !
Remote Smtp
I have an account registered with a free server. It's kind of like those free ones that you can register for, like hyperPHP for instance, that have PHP and MySQL. I need to use a remote gmail SMTP account to send mail, however. As you know, the default for the mail() function  is to use localhost. How can I change this so that the mail() function uses my gmail account's smtp server (smtp.gmail.com)?

I have the outgoing port, username and password. All I need to know is how to change the settings. Also, note that since this is a free server registration, I don't have access to the internal software running the server. All I have is the account.

View Replies !
How Can I Detect SMTP?
How can I detect SMTP? I have a php script that wont send out an email, no errors, so I think the SMTP is disabled? I'm not sure how that part works. This script isn't for me, and I don't know if there server will have the capabilities to send php email. So, before I tell php to send the email, I want to see if it can send an email.

So I have a few questions:

1.) How can I detect SMTP settings?
2.) How do I enable or install SMTP?
3.) Is there a way to turn SMTP on from a PHP script?

View Replies !
Class.smtp.php / Php Smtp Class
For 5000 or 10000 emailers, should use class.smtp.php. Can anyone show me the example of use for class.smtp.php

View Replies !
Smtp Server
i can get the smtp server to work and send to outlook express however when i try and send to gmail or hotmail the emails won't send?

View Replies !
PHP Through SMTP On 2nd Server
One for websites and one for email, both are RedHat. I want to be able to use php mail() to submit emails from the webserver to the mail server.

i have tried different settings, but most of the settings i find refer to Windows boxes and not unix.

what settings do i have to change to make this work. The php.ini is set with:
SMTP = 'mail.server.com', but as i read this only is valid on windows installations and not unix.

View Replies !
SMTP Socket
I have a question regarding communicating with SMTP server trough sockets... Since PHP communicates with SQL throuqh sockets is it possible to communicate the same way with SMTP server?

View Replies !
Smtp Authentication
I need some one to help me with sending mail using smtp authentication to send emails in this script.

i got this far but i do not know how to setup this to sending mail using smtp authentication to send emails. Or how do i edit this so the top script work together?

View Replies !
Php.ini SMTP Errors
I have attached a zip file containing my php.ini file, my .php file and the error message that I receive back when attempting to send the form on a MAIL POST basis.

I was originally using Apache but have got rid of that and taken out the old php.ini file. I am now using WAMP and PHP Designer 2007.

If anyone could offer me some advice on this one it would be great.

I have checked and my SMTP is working all ok so there is no reason why when sending the form the email shouldnt come through.

View Replies !
Phpmailer/smtp
my phpmailer script, which emails a cart confirmation to a customer, does not work every now and then. However, I've identified when this happens, and am guessing at the problem. At work, we have wireless connectivity, and the way they have their wireless setup, I can NOT send mail, via outlook, using my websites smtp server.

The wireless connection at work FORCES me to use their smtp server in order to send mail via outlook. And this is where i have problems with phpmailer. So is this because of the same reason? Is it because the phpmailer uses smtp and the isp that i am using here at work will not allow me to use another smtp other than theirs?

View Replies !
SMTP Configuration
I'm using Wamp for php, I've little doubt to config the smtp for sending mail. I go thru by reference by wamp installation manual, still i've facing the problem. I've changed

smtpserver =mail.mydomainname.com
smpt_port=25

in both apache/bin2/php.ini file as well as php/php.ini. its working fine with in mydomain name sending to other like that gmail / yahoo or someother the following errors display. "The message could not be sent because one of the recipients was rejected by the server. The rejected email address was email-id .server response: 553 sorry you have not authenticated for relay and <emailid> is not a local address server errror 553, error number :0x0800CCc79.

View Replies !
PHP SMTP Config
I can't seem to figure this out. I have PHP5 set up with IIS6 and everything works great, except I can't get the SMTP feature in IIS to work. This is my PHP.ini configuration:

SMTP = localhost
smtp_port = 25
sendmail_from = localhost

But... I get the following error:

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in E:...email.php on line 44

View Replies !
SMTP - Masq'ing
I have a Linux server running Apache/PHP and Postfix as an MTA.

My question is about masq'ing the source address from within PHP

When sending mail from the command line it works fine,

For example, I masq my email as:

domain.com

so when using mail, mailx, mutt, etc… it works fine sourcing from: Code:

View Replies !
IMAP And SMTP
i have a webmail page, you log in you check email you log out, simple. What i want is on the front page where the log in is, is two details IMAP and SMTP i would like the PHP script to show if they are online, as they are on different servers to my other sites. So on the page i would like two images, displaying online or offline depending on the status of the mail server.

View Replies !
Smtp Address
I get php to send email via another, remote server. eg one that doesn't have authentication issues with other servers. I see a global called SMTP which is set to "localhost" but to do this i would need smpt authentication - eg a username and password too.

View Replies !
Setting SMTP
How do I set the SMTP path in my php.ini file to point to another server??

View Replies !
SMTP Localhost
I have this error PHP Code:

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in class.SimpleMail.php on line 70

Fatal error: Uncaught exception 'Exception' with message 'Sending mail failed.' in class.SimpleMail.php:78 Stack trace: #0 user_transact.php(76): SimpleMail->send('francesko@cot...', 'Mailing list co...', 'Hello ciccio?Ou.', 'From: francesco...') #1 {main} thrown in class.SimpleMail.php on line 78

View Replies !
Sendmail Vs Smtp
I have a newsletter script with ~9,000 subscribes. Each subscriber gets personalized email (so I cannot use Bcc field when sendind).

When I send it in a loop from php script should I use mail() function or socket connection directly to smtp server? What will be preferable form standpoint of server load vs delivery speed?

View Replies !
How Can I Set PHP To Send Email Through SMTP?
I'm gonna setup a page where i can send email to anybody as an anonymous user. it's just for education purposes keep in mind.

I already have made a form which tries to email using the action mailto:myemailaddress@whatever.com but if that person sending uses Hotmail on Linux, that simply does not work.

how do i change this form to make it work with PHP?
-i know my ISP's SMTP server (my Linux didn't come with sendmail for some stupid reason)
-the SMTP server does NOT require a name or password

View Replies !
Mail Using Remote Smtp
How can i send mail by php using a remote smtp server?

View Replies !
PHPMailer And Remote SMTP
I'm using PHPMailer to send out emails and I want to use my ISP SMTP server to send those emails since where my website is hosted, it says 'Email sent on behalf of' in the message ... yes, it's a shared hosting.

I'm using this code to send mails; PHP Code:

View Replies !
PHP SMTP E-Mail Almost Working
I wrote a PHP function to talk to SMTP servers directly and it works, it
sends the message out.

The problem I have is that gmail.com will show Unknown sender. As far as
I can tell gmail reports the sender by the "Reply-To" field. I have been
looking for information on how to get Reply-To to work but I'm not
successful. Any Ideas.

I tried:
telnet localhost 25
HELO test.com
MAIL FROM: <me@...>
RCPT TO: <me@...>
REPLY-TO: <me@...>

Server Resp for last command "221 2.7.0 Error: I can break rules, too.
Goodbye."

View Replies !
Email Acknowledgement Using SMTP
There are several codes in PHP to send Emails using SMTP or any other
technique. The normal process is that once you click the submit
button, it displays a "message sent" or "message not sent" depending
on your logging into the webserver and other facts. If the "To Address
(mail id)" is a wrong mail id also the message "message sent" popsup
of the authentication is right. Later, in the course, we receive a
mail in our webserver (senders mail id) that the message was not
delivered.

My query at this juncture is that "Can't this message not delivered to
the target To Address (mail id) not be trapped in the sending PHP
program itself". Please respond only if there are any solutions.

View Replies !
Bulk Emailing With SMTP
I'm researching ways of using PHP/mySQL to send a single HTML formatted email message with attachments to many, perhaps 1000 recipients.

From what I've read in this forum it seems a good idea to bulk mail by sending the mail message and recipient list to a SMTP server rather than repeatedly calling the mail() function. This avoids the situation where the server stops a php script from executing due to time out. What does SMTP support that makes it more effective for this sort of thing? also is the phpmailer class from Source Forge an effective php script for bulk mailing HTML formatted email to many users?

View Replies !
PHP4 POP/SMTP Email
My Employer has asked me to look at building a POP3/SMTP email system, so they can send and recieve email from within the admin area on their site. Sending emails isn't a problem for me, but the POP3 part is. does anyone know where I can get PHP4 code for this?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved