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.





Sending Mail Using Smtp Authentication To Send Emails


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 Complete Forum Thread with Replies

Related Forum Messages:
How To Send Using SMTP With Authentication
I want to write a script than can send emails using remote smtp server with authentication (TLS, SSL ,..), I tried to use PEAR Mail but it didn't work with TLS authentication, is that possible using PHP?

View Replies !
Mass Mailing - Sending SMTP Emails Via PHP Page
I am sending SMTP emails via my PHP page, I am sending about 20 SMTP emails (stress testing) one after another, these emails are sent via a FOR loop (has one MySQL seek for email address in each loop)(with NO forced delay what so ever). Code:

View Replies !
SMTP Authentication & Mail()
Being able to send emails through PHP is a fundamental part of the site, so I've been searching around and trying to come up with some code to authenticate with the SMTP server to send the email.

What I have at the moment is code found on the Internet to perform this task using the PEAR module. I assume this module is installed as the php.ini 'include_path' setting is c:php4pear. Code:

View Replies !
Mail() And SMTP Authentication
It would seem BT Internet have just turned on SMTP mail authentication although they have been talking about it for years as I now get the following error message using the mail function on my local machine which worked fine a couple of weeks ago.

Warning: mail() [function.mail]: SMTP server response: 530 authentication required - Your email could not be sent. To fix this you must make a simple change to your email (known as SMTP authentication). For advice visit www.btyahoo.com/smtp or call 0800 328 9968

Needless to say "Advice" relates to Outlook Express and little else, certainly not PHP.
Anyone know the changes I need to make and where, parameters for the mail() function or in the php.ini file perhaps. Naturally I know the information relating to mail username and password.

View Replies !
Use Mail() When The SMTP Server Needs Authentication?
Is it possible to use mail() when the SMTP server needs authentication?

View Replies !
Email: SMTP Authentication - PHP Warning: Mail()
I am running Apache/PHP on Windows 2000. How do we set up authentication for outgoing mail, since my yahoo server requires that? My current settings in php.ini are the following:

SMTP=smtp.mail.yahoo.com
smtp_port=25
sendmail_from=me@myemail.com
;sendmail_path=
Call the mail() function:
mail("the@ddress.com", "Test", "Message");

And finally, the error message output when it fails:

[02-Mar-2003 12:01:31] PHP Warning: mail() [http://www.php.net/function.mail]: SMTP server response: 530 authentication required - for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html in c:apachehtdocsmail.php on line 11

View Replies !
Sending Smtp Mail
Error: 220-We do not authorize the use of this system to transport unsolicited,

View Replies !
How To Send Mail With SMTP
What I want to do, is create an email form, where the user can select emails by groups from a database. So based on what group the user selects, I'm guessing I'll use SQL select query to select the appropriate user emails and print them out to the address line of the form. But I need to know the actual coding for SMTP. Is it much more complicated than the mail() function?

View Replies !
Send Mail But No Smtp
I would like to send mail from my php script. I have all that set up etc and works when i use on a server with smtp configured, however the server i am going to use this on does not have access to any smtp server, local or remote. Are there any alternatives options that i can use or is smtp the only way?

View Replies !
Mail() Sending Two Same Emails
<?php
$mymail = '*******';
$mymail2 = "******";
$cc = $_POST['subject'];
$FrOm = $_POST['email'];
$BoDy .= 'First Name: ';
$BoDy .= $_POST['first_name'];
$BoDy .= "";
$BoDy .= 'Last Name: ';
$BoDy .= $_POST['last_name'];
$BoDy .= "";
$BoDy .= 'Email: ';
$BoDy .= $_POST['email'];
$BoDy .= "";
$BoDy .= 'Message: ';
$BoDy .= $_POST['message'];
$BoDy .= "";
$send = mail("$mymail", "$cc", "$BoDy", "From: $FrOm");
$send2 = mail("$mymail2", "$cc", "$BoDy", "From: $FrOm");

if ( $_POST['subject'] == "Lunches"){
$send2; }
if($send2){
echo '<html><head>';
echo '<meta http-equiv="refresh" content="0;URL=contactus_return.html">';
echo '</head><body>Sending, Please hold...';
echo '</body></html>';
}

else {
($send); }
if($send) {
echo '<html><head>';
echo '<meta http-equiv="refresh" content="0;URL=contactus_return.html">';
echo '</head><body>Sending, Please hold...';
echo '</body></html>';
}
?>

When there is Lunches or any other value it sends both emails mymail and mymail2 are active and both send emails. Where is my mistake?

View Replies !
How To Send Mail Using Googlemail SMTP Server ?
how I can send mail through a php script, using my googlemail account..

View Replies !
Use Any Other Smtp Server And Port To Send My Mail
I cant send a simple mail from my pc. I dont know smtp server name and port of my ISP. Cant I use any other smtp server and port to send my mail. Wud u pls tell me the name as well as the port of such smtp server. What is the name n port of yahoo.

View Replies !
Mail Function Not Sending Emails.
im starting to doubt my ability to read the php manual. Somehow this thing is not sending emails. Any thoughts why? (Yes i did change mymail@mail.com into an actual email address. mail('mymail@mail.com', 'My Subject', 'my message');

View Replies !
Configure PHP To Use A Remote SMTP Server For Sending Mail On Linux
On Linux, can you configure a remote SMTP server to send mail? I set SMTP = mySMTPserver under [mail function] in PHP.ini; I also stopped sendmail service on my local machine. There are no mails send out. If I run the local sendmail service, mails are sent out.

View Replies !
Mail() Function Sending Emails Trapped By IMF
I am using the simple mail() fucntion in a php script but the emails
that are being generated and being trapped by Microsoft Exchange server
2003 Inteligent message filter as having an SCL rating of 7 or 8, the
highest possible being 9.

This is causing me problems getting the emails delivered to people!

View Replies !
Mail Function Sending Double Emails
I have a script I'm using to send me e-mails when someone registers for an event I'm holding. But it's sending the e-mails twice. How can I fix this? Can anyone help? My host uses qmail. I get no errors reported. Here is the function as I'm using it:

mail('address1@host, address2@host', $subject, $messageproper, "From: "$yourname" <$email>
X-Sender: My site name" );

I have a value passed to the variables "yourname", "subject", "messageproper", "email" from a form I've set up.

Any ideas what's causing the double emails and how to solve this problem?

View Replies !
SMTP Server - Create A Php Script Thazt Send An Mail
i'm trynig to create a php script thazt send an mail does someone know how to set the smtp server

smtpserver=smtp1 and it is remote server not on my machine.
Itried but i've got this[color=blue][color=green]
>>Failed to connect to mailserver at "localhost" port 25, verify your[/color][/color]
"SMTP" >>and "smtp_port" setting in php.ini or use ini_set()

View Replies !
Can Mail() Send Rich Text Emails?
As subject says, does anyone have an idea if it's possible to send rich text emails using mail()?? If it's, does anyone have an example?

View Replies !
Stopped My Regular Mail() Function From Sending Out Automatic Confirmation Emails.
My Website host has installed suexec on Apache and this has stopped my regular mail() function from sending out automatic confirmation emails when a user submits a form for membership. I am not sure how to change my script to make this work again.

View Replies !
SMTP Server Response: 503 This Mail Server Requires Authentication
I get this any time I try to send an email to someone that IS NOT in the domain of the company:

Warning: mail() [function.mail]: SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server. in corpevent.php on line 21

I have it setup like this (I removed the email address domain...but its correct in the code):

// INI Settings //
ini_set(sendmail_from,"info@domain.com");
ini_set(SMTP,"mail.domain.com");
ini_set(smtp_port,"25");

$headers  = "MIME-Version: 1.0";
$headers .= "Content-type: text/html; charset=iso-8859-1";
$headers .= "From: info@domain.com";

$to = $_POST['txtEmail'];
mail($to,"Your Email",$theEmail,$headers);

Why am I not allowed to send an email to anyone that doesn't have a "domain.com" at the end of the email?

View Replies !
Mail() Function - Using The Mail() Function To Send Emails To Members Of A Website
I am using the mail() function to send emails to members of a website. For some reason when I include words such as "free" or "winner" the mail does not send to any of the addresses - it just seems to disappear in space. I figured this out by trial and error - once I removed those words, it worked. I am running cPanel on the server and have no problem sending emails as long as they don't use those words. It seems to be blocking certain words - ones that I assume spammers would use.

View Replies !
Mail Problem - Warning: Mail() [function.mail]: SMTP Server Response: 550 Invalid Recipient:
Whenever the recipient's email address includes a hyphen ( - ), I get the following error message...

Warning: mail() [function.mail]: SMTP server response: 550 Invalid recipient:

I should stress that this only seems to occur when the hyphen is in the URL portion of the address, i.e example@perfect-example.com

The current code works along the lines of...

mail ($_POST['email'], 'Email subject is here', $body, $headers);

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 !
Apache2Triad SMTP Authentication Problem
You know now a days all ISP using SMTP authentication for sending and
receiving email through them.

so we also need to configure Apache2Triad SMTP Authentication for
sending mail but how?

View Replies !
Mail() [function.mail]: SMTP Server Response: 550 Not Local Host Gmail.com
I do a mail() and get:

Warning: mail() [function.mail]: SMTP server response: 550 not local host gmail.com, not a gateway in C:xamppxampphtdocs estsitemail.php on line 7


<?php
ini_set("SMTP","rlwatkins.com");
ini_set("sendmail_from","hunter@rlwatkins.com");
mail("huntercjcarroll@gmail.com","hello me","spamtastic","From: hunter@rlwatkins.com");
?>

what is wrong with this, how do i set it so that i can send to something other than localhost?

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 501 Syntax Error
When I try this under windows :

mail("User <user@example.com>",$subject, "", $headers);

I get this error :

Warning: mail() [function.mail]: SMTP server response: 501 Syntax error,
parameters in command "RCPT TO:<User <user@example.com>>" unrecognized
or missing in

It seems to add it's own <> characters. If I run the same script under Linux it works fine !?

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 501 5.5.4 Invalid Address
I receive this error:


PHP Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in D:clientsebiblecommentary.comconcordia-seminary.caconcordia-seminary.ca\_demo
egister.php on line 464

Both of my mail() uses fail, and I'm not sure why. I've followed the same syntax before on this my server and not had a problem.

My code is below: ....

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 550 5.7.1
I'm making e-mailing with php script and i setup mailtraq mailserver this thing is just a lil confusing to me first thing i want to know if i can use apache instead of this as mail server second when i wrote my script with that mail function i received an error this is it :

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for monalisa20042006@yahoo.com in D:wampwww1stmail.php on line 2

what's that mean if this means that the mail server not configured right...SO third how to use or configure this server to use as my mail server. Code:

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 553
my php.ini mail section is setup as follows:

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

then in my php script:
<?php
mail("joecool@hotmail.com", "Testing", "Line 1
Line 2
Line 3", "From: tom@hotmail.com") or die("email error");
?>

i have also run mercury mail but i keep getting this error:

Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in C:Program Filesxampphtdocsest.php on line 2

on all tutorials that i went, the mail function is written this way what is wrong?

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 !
Sending Out 26,000 Emails - How!?!
I need to send out 26,000 emails - on a regular basis...

however, this consumes quite some time and I need to find a way to execute the PHP scriptm, without a timeout and without the user ahving to wait for it (at a rate of 10 emails/second, it's still 70 minutes).

View Replies !
Sending 2 Emails At Once
I'm using the following line in a PHP script, to send a visitor an email from my web page. The $_POST['email'] variable is whatever they enter as their email address into a form:

mail ($_POST['email'], 'Title ', $body);

I also would like the same script to send a little email to me at the same time, with a short message to myself - not the main body variable shown above. Could anyone please explain what I should add into the above code? All I really want is to receive their email address.

View Replies !
Sending Emails
My Hosting Service only allows me to send 250 emails/hour so I send an email every 15 seconds when sending a newsletter. I use a cron job to start the script at 9am and it should keep this script running until it finishes 10 000 emails(newsletter subscribers). After sending each email I log this in a MySQL db. And in my monitor I see that it stops after sending a various number of emails: 100, 400, 1000, 2300 or whatever(it never send all the 10000 emails).

I have set up the maximum execution time variable to 0. Still, I have no idea: why does my emailing script stop? I've watched it myself a couple of times. It shows me no error. The browser just stops from loading after sending a number of emails. (error_reporting is set to 53 - no notices - notices shouldn't stop the script) Also, I have set the abort_user_ignore variable to true.

View Replies !
Sending Too Many Emails
I have a script that takes information from one table (ufJoin) and using its results grabs information from two other tables (users and feeds). Using the information gathered then utilizes a pre-made function and sends an email. For example:

ufJoin contains userid 1 and feedid 1. So the script looks in the users table for the userid matching 1 and takes their email addresses. The script then looks in the feeds table for the feedid matching 1 and takes its url. The table ufJoin will contain more than one entry per user. Meaning, more than one URL is to be used. The URLs found are then attached to a pre-made function and emailed. It sends a new email for every URL instead of just the one! How can I stop this from happening?

View Replies !
Send An Email Through A SMTP Server
Anyone got a block of code that will send an email through a SMTP server using php? Keep in mind this SMTP server requires a username and password.

View Replies !
Emails Blocked By Certain Mail Hosts? (mail() Function)
I'm using mail($address,$subjectheading,$message,"From:
me@mysite.com") to send emails from my site. For the most part, it
works okay (for example, I receive the mail in my Yahoo box). But when
I check my university email, the message is not delivered. I thought
maybe it was because I had included my web address in the subject
heading and that it was being filtered out, but I removed that from
the subject and it still fails to get through. I'm making a wedding
site for some friends now and they want to be able to email everyone
on their guest list at once, but I'm afraid the same will happen to
some of these addresses as well. Any comments/suggestions on what may
be blocking the mail and how I can get around it? I'm not trying to
send out any kind of mass ad mailings or anything. Just to people on a
mailing list for this site.

View Replies !
Sending HTML Emails In PHP
I have a form that my customers can complete, and based on their answers, a results page will display. There are many if/elses in the page to display the proper results based on their answers. This works beautifully.

Now my problem:
I'd like to send them an email with their answers. I'm using the mail() function, and it works fine sending them the email in HTML format when I put static text in there like "Hello World!". However, I need to be able to perform if/then statements and include files into that email based on their answers. I can't get the includes to work at all.

Can anyone offer me some insight here?

View Replies !
Sending Emails From My Computer
I'm trying to make a newsletter and here is my code. PHP Code:

View Replies !
Sending Multiple Emails
I have a little problem with sending multiple e-mails to multiple people. I can't just add recipients onto the "To:" because each e-mail will be different for each person I am sending to.

I have a page sending me multiple variables that relate to different users. Then I go through those variables with a loop, get the related e-mail address, get other info related to that person and other info relating to that variable out of the database and try to send it. It seems to do it and I even get a mailsent - i.e. $mailsent = mail(); - of 1 for all of them, but only the first email ever gets sent. PHP Code:

View Replies !
Sending Lots Of Emails
Is there anything I should note when sending emails to lots of people from a database. i.e. do I need to stop the script to allow the server to send the mails or anything like that?

I am running PHP on Linux, and am looking to send out approximately 12,000 emails. I'm using a web form to populate the email, then just the normal mail function to send, looping round once for each email (i.e. a separate call to mail() ).

View Replies !
Sending Emails In Arabic
I been creating and sending emails in english using the the code given below,
$to = $user_email; Code:

View Replies !
Sending Emails (locally).
is anyone familiar with WAMP5 or the like? for building and testing php/mysql applications locally.

This is basically how I build my site, and it would save a lot of trouble if I could build and properly test emails locally and not need to upload to my web host just for it to work. I use the mail() function.

View Replies !
Server Isn't Sending Emails
It's not a problem with a specific email service. There are people from hotmail, gmail, aol, yahoo and a few others who haven't received the validation link, but others with the same email service have. I have signed up with 2 of my gmail accounts and my hotmail account and I received the validation email each time, and it never shows up in the spam folder.

When I set-up the domain on the server I did nothing to the mail server settings, I just left it with the default settings and it seemed to be working fine, but obviously not. I don't know jack about mail servers, so is there something I need to do to make sure all email are being sent? Code:

View Replies !
Sending Emails With Delay
i have 300 subscribers. According to my hostings provider mail policy, i can send 200 emails in one hour. So its 18sec/1email.

So what are my possibilities?

1. I can send emails using set_time_limit(0) + sleep(20).
2. Set some cronjob.

Using first method, would force me to have browser window opened for ~1.5h... Not an option. So i guess using cronjobs would be the best thing to do here. But how to invoke/destroy cronjobs from a PHP script. I dont have any shell acc and safe_mode is on.

View Replies !
Sending 1000 Emails ?
I have a small problem :

i want to send emails to 1000 users ( or more , and i will do it very fluently ) , i just want to use pure PHP .

What should i do to solve this problem ?

If i send 1000 mails at a time , will there have any problems ?

View Replies !
Sending Bulk Emails
I'm trying to send a lot of emails from my PHP script. I'm using PHPmailer. I tried to send 1000 emails but only managed to send about 600 of them. So my question for the forum is How do I send lots of emails? Are there different methods? I do not want to send one email with 1000 email addresses. I want to send 1000 unique emails.

View Replies !
Sending Blank Emails
I have the following code

$to=$email;
$from="thankyou@m.com";
$body="dfasdfasdfd safdsaf";
$title="Thank You for shopping at M.com";
$success = mail($to,$from,$title,$body,"From:$from
Reply-To:thankyou@m.com");

for some reason it is not sending the email. I don't get any error but if I do echo $success - then it's blank. Did i do something wrong?

View Replies !
Hotmail Sending My Emails
Ive been working on getting email sent that don't send directly to junk mail for a while now. So far i have my emails getting sent to the inbox of gmail , outlook, yahoo accounts. However im still having trouble with HOTMAIL. Ive been reading around and there seems to be increased settings for hotmail but have yet to be able to configure my system for these.

View Replies !
Sending Email Feature Using SMTP And Server Setting
I am trying to create a sending email feature in PHP. Let's somebody sign up and an email will be sent to them notifying them about their account.

Do you have any tutorial for this sending email feature?

View Replies !
How Do U Send Emails
i'm writing this new Job Card system... every time a new job is entered or an old one modified an email must be sent to the head of dept on form submission with all the details for that job.does anyone know how?

View Replies !
Send Two Emails
I just wanna know what's the php code to send two emails in a same time: I have this code:

$email1 = "....etc....";
$headers1 = ".... etc...";
$subject1 = "....etc...";
$message1 = "....etc...";

$email2 = "....etc....";
$headers2 = ".... etc...";
$subject2 = "....etc...";
$message2 = "....etc...";

mail($email1, $subject1, $message1, $headers1) or die('Failed');
mail($email2, $subject2, $message2, $headers2) or die('Failed');
...

View Replies !
Send Email To An External Smtp Server ?
I am running VBulletin board, the web forum on a linux machine running apache. How to config php so that it can send email thru an external smtp server instead of local sendmail. My external smtp server is running on an NT machine.

View Replies !

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