Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,209,632 members, 8,006,661 topics. Date: Tuesday, 19 November 2024 at 09:31 AM

More Problems Im My Mail Script - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / More Problems Im My Mail Script (771 Views)

Im A Java Expert Here To Teach Those Who Wants To Learn. / Need Help, Howto Export All Email Addresses On Mdaemon Mail Server: (2) (3) (4)

(1) (Reply) (Go Down)

More Problems Im My Mail Script by ebenz1(m): 2:07pm On Mar 29, 2010
Pls i need someone to help me with this SMTP configuratin in my mail script(PHP)

SMTP Server: your domain name
SMTP Port: 25
SMTP Username: email address you created
SMTP Password: the password of the email account you created

pls how do i code this in my mail script in php
Re: More Problems Im My Mail Script by sayhi2ay(m): 8:24pm On Mar 29, 2010
except you are doing some kind of OOP, just using mail() function would send out emails, no need to assign values to your port and what not / configure your php.ini

mail('email', $subject, $body,
"To: Contact Name <email>\n" .
"From: Sender Name<email>\n" .
"cc: Extra Contact Name <email>\n" .
"X-Mailer: PHP 4.x"wink;
Re: More Problems Im My Mail Script by ebenz1(m): 3:07pm On Mar 30, 2010
PLS CHECK THIS CODE FOR ME. IS IT NOT CORRECT?


$date=date("d-m-y"wink;

if($date=='02-03-10')
{
while($row=mysql_fetch_array($result))
{
$email=$row[email];
$recipient = $email;

$mailsent=mail($email,$subject,$body3,$headers);
if($mailsent)
{
echo"Mail has been sent to $email<br>";
}
else
{
echo"No Mail has been sent to $email";
}

}
}
Re: More Problems Im My Mail Script by sayhi2ay(m): 3:15pm On Mar 30, 2010
syntax seem right, it is generating an error ?
Re: More Problems Im My Mail Script by ebenz1(m): 4:49pm On Mar 30, 2010
yes but now working fine. Only that i dont know how to modify the sender's name. It is writing the email username.
I dont know if i can change it to a desired name such as "heralds bulletin"
Re: More Problems Im My Mail Script by ebenz1(m): 4:52pm On Mar 30, 2010
And it only delivers to the spam folder. what can i do
Re: More Problems Im My Mail Script by sayhi2ay(m): 4:53pm On Mar 30, 2010
the from field will assign the sender's name in the code i gave,

if its going to spam, include the sender's address in your contacts' list
Re: More Problems Im My Mail Script by youngbobby(m): 6:53am On Apr 14, 2010
If it doesn't write the name in the from field instead it uses email address then

Put your email address in this manner in the sender's field

<email address here> Name here

this causes your name to be used instead of your email address when mail is delivered!

(1) (Reply)

Students! Need Help In Your Final Year Project ? / Any Idea On Aptech? / Urgent

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.