Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sendmail_from

Status
Not open for further replies.

higgzler

Technical User
Jul 12, 2005
3
AU
Hello,
I am trying to get a mailist list working through a script that i got called EasyLetter (heh). I have some programming experience but not alot with PHP so im a bit bamboozled. I've read other threads to try and solve my problem but still cant get it to work. I've tried putting

ini_set ("SMTP","mail.host.com");
ini_set ("sendmail_from","mail@host.com");

in my code to get it to send after receiving a sendmail_from error previously. Now my attempt to join the mailing list is timing out after 30seconds.

If its any help, the source is at
My server has regsiter_globals OFF but i have turned them on with a php.ini file - is this the right thing to do?

any help would be great..
cheers
 
just a bit of an update... the whole thing does actually work, user gets subscribed and i can send emails to the list too, but i am still getting error messages on the page when i subscribe, and when i send a newsletter
 
hi higgzler

i would suggest u not to keep Register_globals on.change to off.

it would be helpfull if i get to know wht error mesages you get.

so that i can help u

code?

keats
 
ok.thats great

may i know whether your problem is solved.

how did u solve it

keats
 
Hey guys,
Thanks for the help.

The page can be seen here ->
The sign-up works, and I can send an e-mail to everyone in the list, but errors are still shown as follows:

<b>When signing up for the list:</b>
- Fatal error: Maximum execution time of 30 seconds exceeded in C:\Domains\rdvrock.com\ on line 100


<b>When sending an e-mail to the list:</b>
Warning: mail(): SMTP server response: 503 Bad sequence of commands. You must specify the recipients of a message before you can send it in C:\Domains\rdvrock.com\ on line 139

Fatal error: Maximum execution time of 30 seconds exceeded in C:\Domains\rdvrock.com\ on line 139


I dont think I can send a html e-mail with this script anyway, i may not use it but it'd be nice to know whats going on for future reference.

Cheers,
Glen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top