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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP to PHP Conversion 2

Status
Not open for further replies.

Elliott3

Programmer
Sep 5, 2002
347
CA
hi,

Line of code from an ASP:
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")

I am transcribing the site to PHP...IIS is not is not available on the new server...I have not idea where to look? Suggestions?

CES
 
if you are using a linux system, you dont need to create a mail object, from what i can gather, NOTE i am a beginner in this, but i think you can jsut use

mail(address,subject,message,headers);

setting your variables first of course,

as i said i am a beginner so i am not sure, this is just something i read

thanks
 
thanks..

This is my first time looking at PHP myself. I am testing the site at home on a windows machine but it will be on a linux box in the end.

Do yo where there is some good info on this suggestion?

CES
 
i have only been doing this myself for 2 days, using php & mysql for dummies, you will see that most of the coding is similar, with a few minor changes...

thanks
 
hmm... thread333-686258

_____________________________________________________________________
onpnt2.gif

 
Cool...I have never used mailers before and it seems like you sent me to the right spot...im on my way.
Thanks

CES
 
Elliott3:
krappleby025 is right. There is no PHP-intrinsic object to instantiate. Just invoke the mail() function.

To make the job of sending complex emails easier, there is also the PHPMailer user-defined class. It's very good.
Want the best answers? Ask the best questions: TANSTAAFL!!
 
Yes onpnt did see your reply in the ASP section, thankyou. I didnt know who would be better to answer my questions ASP/PHP..

sleipnir214, I appreciate you pointing me in the direction of the mailer class...I works great!!

Thanks to all!

CES
 
sleipnir214,

Do you have any idea why the mailer has just stoppped working?

gives the message:
Warning: fsockopen(): unable to connect to smtp1....

I am not using my own mail server...I am just using my bell sympatico email information...(for testing purposses. could they have just put a stop to it??? have you seen this before?


CES
 
I just called my ISP and there seems to be a problem with the pop server...so thanks again for your help!

CES
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top