The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Mail function
tudsy
post 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.Attached File  test.php ( 1.35k ) Number of downloads: 595
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
CharlesEF
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
tudsy
post 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.




QUOTE(CharlesEF @ Feb 26 2021, 06:20 AM) *

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.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
tudsy
post 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.







QUOTE(tudsy @ Feb 27 2021, 08:14 PM) *

Hi

Thanks for that.

Its not urgent.

Thanks.




QUOTE(CharlesEF @ Feb 26 2021, 06:20 AM) *

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.


Attached File  Comm1.php ( 4.88k ) Number of downloads: 378
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
tudsy
post 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.





QUOTE(tudsy @ Mar 1 2021, 07:57 PM) *

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.







QUOTE(tudsy @ Feb 27 2021, 08:14 PM) *

Hi

Thanks for that.

Its not urgent.

Thanks.




QUOTE(CharlesEF @ Feb 26 2021, 06:20 AM) *

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.


Attached File  Comm1.php ( 4.88k ) Number of downloads: 378


Attached File  Comm1.php ( 4.88k ) Number of downloads: 377
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
tudsy
post 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.










QUOTE(tudsy @ Mar 2 2021, 10:58 PM) *

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.





QUOTE(tudsy @ Mar 1 2021, 07:57 PM) *

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.







QUOTE(tudsy @ Feb 27 2021, 08:14 PM) *

Hi

Thanks for that.

Its not urgent.

Thanks.




QUOTE(CharlesEF @ Feb 26 2021, 06:20 AM) *

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.


Attached File  Comm1.php ( 4.88k ) Number of downloads: 378


Attached File  Comm1.php ( 4.88k ) Number of downloads: 377


User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 24th April 2024 - 12:06 AM