Mail function |
Mail function |
tudsy |
Feb 13 2021, 07:03 AM
Post
#1
|
Advanced Member Group: Members Posts: 246 Joined: 30-September 14 Member No.: 21,611 |
Hi
I am trying to test out sending HTML in an email with no luck. Here is the code in test.php. test.php ( 1.35k ) Number of downloads: 595 |
CharlesEF |
Feb 25 2021, 03:50 PM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
I haven't forgotten about you. I have to catch up on many things. I tested the code on my web server and now I get an error 500, my host provider forced PHP 7.4.13 on me and I didn't know it. Anyway, give me a few days or you can just use a library, like PHPMailer.
|
tudsy |
Feb 27 2021, 05:44 AM
Post
#3
|
Advanced Member Group: Members Posts: 246 Joined: 30-September 14 Member No.: 21,611 |
Hi Thanks for that. Its not urgent. Thanks. I haven't forgotten about you. I have to catch up on many things. I tested the code on my web server and now I get an error 500, my host provider forced PHP 7.4.13 on me and I didn't know it. Anyway, give me a few days or you can just use a library, like PHPMailer. |
tudsy |
Mar 1 2021, 05:27 AM
Post
#4
|
Advanced Member Group: Members Posts: 246 Joined: 30-September 14 Member No.: 21,611 |
Hi
I am now using PHPMailer to send out emails. But I am getting an error. [01-Mar-2021 10:18:16 UTC] PHP Warning: Creating default object from empty value in /home/ecovibdc/public_html/workfromhome/Emailcomm/Comm1.php on line 92 [01-Mar-2021 10:18:16 UTC] PHP Fatal error: Uncaught Error: Call to undefined method stdClass::setFrom() in /home/ecovibdc/public_html/workfromhome/Emailcomm/Comm1.php:100 Stack trace: #0 {main} thrown in /home/ecovibdc/public_html/workfromhome/Emailcomm/Comm1.php on line 100 The php file that I use PHPMailer is Comm1.php. Hi Thanks for that. Its not urgent. Thanks. I haven't forgotten about you. I have to catch up on many things. I tested the code on my web server and now I get an error 500, my host provider forced PHP 7.4.13 on me and I didn't know it. Anyway, give me a few days or you can just use a library, like PHPMailer. Comm1.php ( 4.88k ) Number of downloads: 378 |
tudsy |
Mar 2 2021, 08:28 AM
Post
#5
|
Advanced Member Group: Members Posts: 246 Joined: 30-September 14 Member No.: 21,611 |
Hi
I have solved the below problem. The program works now but I get this error in the delivery of email: This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: second@ecovib2d.com.au Sender from address in blocked list I am using second@ecovib2d.com.au as my test email address. Thanks. Hi I am now using PHPMailer to send out emails. But I am getting an error. [01-Mar-2021 10:18:16 UTC] PHP Warning: Creating default object from empty value in /home/ecovibdc/public_html/workfromhome/Emailcomm/Comm1.php on line 92 [01-Mar-2021 10:18:16 UTC] PHP Fatal error: Uncaught Error: Call to undefined method stdClass::setFrom() in /home/ecovibdc/public_html/workfromhome/Emailcomm/Comm1.php:100 Stack trace: #0 {main} thrown in /home/ecovibdc/public_html/workfromhome/Emailcomm/Comm1.php on line 100 The php file that I use PHPMailer is Comm1.php. Hi Thanks for that. Its not urgent. Thanks. I haven't forgotten about you. I have to catch up on many things. I tested the code on my web server and now I get an error 500, my host provider forced PHP 7.4.13 on me and I didn't know it. Anyway, give me a few days or you can just use a library, like PHPMailer. Comm1.php ( 4.88k ) Number of downloads: 378 Comm1.php ( 4.88k ) Number of downloads: 377 |
tudsy |
May 20 2021, 12:04 AM
Post
#6
|
Advanced Member Group: Members Posts: 246 Joined: 30-September 14 Member No.: 21,611 |
Hi
Just an update. I will use an existing (off the shelf) platform to send html emails to my list. Thanks for your efforts so far. Hi I have solved the below problem. The program works now but I get this error in the delivery of email: This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: second@ecovib2d.com.au Sender from address in blocked list I am using second@ecovib2d.com.au as my test email address. Thanks. Hi I am now using PHPMailer to send out emails. But I am getting an error. [01-Mar-2021 10:18:16 UTC] PHP Warning: Creating default object from empty value in /home/ecovibdc/public_html/workfromhome/Emailcomm/Comm1.php on line 92 [01-Mar-2021 10:18:16 UTC] PHP Fatal error: Uncaught Error: Call to undefined method stdClass::setFrom() in /home/ecovibdc/public_html/workfromhome/Emailcomm/Comm1.php:100 Stack trace: #0 {main} thrown in /home/ecovibdc/public_html/workfromhome/Emailcomm/Comm1.php on line 100 The php file that I use PHPMailer is Comm1.php. Hi Thanks for that. Its not urgent. Thanks. I haven't forgotten about you. I have to catch up on many things. I tested the code on my web server and now I get an error 500, my host provider forced PHP 7.4.13 on me and I didn't know it. Anyway, give me a few days or you can just use a library, like PHPMailer. Comm1.php ( 4.88k ) Number of downloads: 378 Comm1.php ( 4.88k ) Number of downloads: 377 |
Lo-Fi Version | Time is now: 24th April 2024 - 12:06 AM |